Delen via


ArmComputeModelFactory.CloudServiceData Method

Definition

Initializes a new instance of CloudServiceData.

public static Azure.ResourceManager.Compute.CloudServiceData CloudServiceData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, System.Collections.Generic.IEnumerable<string> zones = default, Uri packageUri = default, string configuration = default, Uri configurationUri = default, bool? startCloudService = default, bool? allowModelOverride = default, Azure.ResourceManager.Compute.Models.CloudServiceUpgradeMode? upgradeMode = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.CloudServiceRoleProfileProperties> roles = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.CloudServiceVaultSecretGroup> osSecrets = default, Azure.ResourceManager.Compute.Models.CloudServiceNetworkProfile networkProfile = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.CloudServiceExtension> extensions = default, string provisioningState = default, string uniqueId = default);
static member CloudServiceData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * seq<string> * Uri * string * Uri * Nullable<bool> * Nullable<bool> * Nullable<Azure.ResourceManager.Compute.Models.CloudServiceUpgradeMode> * seq<Azure.ResourceManager.Compute.Models.CloudServiceRoleProfileProperties> * seq<Azure.ResourceManager.Compute.Models.CloudServiceVaultSecretGroup> * Azure.ResourceManager.Compute.Models.CloudServiceNetworkProfile * seq<Azure.ResourceManager.Compute.Models.CloudServiceExtension> * string * string -> Azure.ResourceManager.Compute.CloudServiceData
Public Shared Function CloudServiceData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional zones As IEnumerable(Of String) = Nothing, Optional packageUri As Uri = Nothing, Optional configuration As String = Nothing, Optional configurationUri As Uri = Nothing, Optional startCloudService As Nullable(Of Boolean) = Nothing, Optional allowModelOverride As Nullable(Of Boolean) = Nothing, Optional upgradeMode As Nullable(Of CloudServiceUpgradeMode) = Nothing, Optional roles As IEnumerable(Of CloudServiceRoleProfileProperties) = Nothing, Optional osSecrets As IEnumerable(Of CloudServiceVaultSecretGroup) = Nothing, Optional networkProfile As CloudServiceNetworkProfile = Nothing, Optional extensions As IEnumerable(Of CloudServiceExtension) = Nothing, Optional provisioningState As String = Nothing, Optional uniqueId As String = Nothing) As CloudServiceData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

zones
IEnumerable<String>

List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.

packageUri
Uri

Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.

configuration
String

Specifies the XML service configuration (.cscfg) for the cloud service.

configurationUri
Uri

Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.

startCloudService
Nullable<Boolean>

(Optional) Indicates whether to start the cloud service immediately after it is created. The default value is true. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.

allowModelOverride
Nullable<Boolean>

(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is false.

upgradeMode
Nullable<CloudServiceUpgradeMode>

Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are <br /><br />Auto<br /><br />Manual <br /><br />Simultaneous<br /><br /> If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.

roles
IEnumerable<CloudServiceRoleProfileProperties>

Describes the role profile for the cloud service.

osSecrets
IEnumerable<CloudServiceVaultSecretGroup>

Describes the OS profile for the cloud service.

networkProfile
CloudServiceNetworkProfile

Network Profile for the cloud service.

extensions
IEnumerable<CloudServiceExtension>

Describes a cloud service extension profile.

provisioningState
String

The provisioning state, which only appears in the response.

uniqueId
String

The unique identifier for the cloud service.

Returns

A new CloudServiceData instance for mocking.

Applies to