CloudServiceData Class

Definition

A class representing the CloudService data model. Describes the cloud service.

public class CloudServiceData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.CloudServiceData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.CloudServiceData>
type CloudServiceData = class
    inherit TrackedResourceData
    interface IJsonModel<CloudServiceData>
    interface IPersistableModel<CloudServiceData>
Public Class CloudServiceData
Inherits TrackedResourceData
Implements IJsonModel(Of CloudServiceData), IPersistableModel(Of CloudServiceData)
Inheritance
Implements

Constructors

CloudServiceData(AzureLocation)

Initializes a new instance of CloudServiceData.

Properties

AllowModelOverride

(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.

Configuration

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

ConfigurationUri

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.

Extensions

List of extensions for the cloud service.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Location

The geo-location where the resource lives.

(Inherited from TrackedResourceData)
Name

The name of the resource.

(Inherited from ResourceData)
NetworkProfile

Network Profile for the cloud service.

OSSecrets

Specifies set of certificates that should be installed onto the role instances.

PackageUri

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.

ProvisioningState

The provisioning state, which only appears in the response.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
Roles

List of roles for the cloud service.

StartCloudService

(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.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
Tags

Resource tags.

(Inherited from TrackedResourceData)
UniqueId

The unique identifier for the cloud service.

UpgradeMode

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.

Zones

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

Explicit Interface Implementations

IJsonModel<CloudServiceData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CloudServiceData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CloudServiceData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CloudServiceData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CloudServiceData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to