Megosztás a következőn keresztül:


Cloud Services - Get

Display information about a cloud service.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}?api-version=2022-09-04

URI Parameters

Name In Required Type Description
cloudServiceName
path True

string

Name of the cloud service.

resourceGroupName
path True

string

Name of the resource group.

subscriptionId
path True

string

Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client Api Version.

Responses

Name Type Description
200 OK

CloudService

OK

Other Status Codes

CloudError

Error

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Get Cloud Service with Multiple Roles and RDP Extension

Sample request

GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}?api-version=2022-09-04

Sample response

{
  "name": "{cs-name}",
  "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}",
  "type": "Microsoft.Compute/cloudServices",
  "location": "eastus2euap",
  "properties": {
    "configuration": "{ServiceConfiguration}",
    "upgradeMode": "Auto",
    "roleProfile": {
      "roles": [
        {
          "name": "ContosoFrontend",
          "sku": {
            "name": "Standard_D1_v2",
            "tier": "Standard",
            "capacity": 2
          }
        },
        {
          "name": "ContosoBackend",
          "sku": {
            "name": "Standard_D1_v2",
            "tier": "Standard",
            "capacity": 2
          }
        }
      ]
    },
    "osProfile": {
      "secrets": []
    },
    "networkProfile": {
      "loadBalancerConfigurations": [
        {
          "name": "contosolb",
          "properties": {
            "frontendIpConfigurations": [
              {
                "name": "contosofe",
                "properties": {
                  "publicIPAddress": {
                    "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip"
                  }
                }
              }
            ]
          }
        }
      ]
    },
    "extensionProfile": {
      "extensions": [
        {
          "name": "RDPExtension",
          "properties": {
            "autoUpgradeMinorVersion": false,
            "provisioningState": "Succeeded",
            "rolesAppliedTo": [
              "*"
            ],
            "publisher": "Microsoft.Windows.Azure.Extensions",
            "type": "RDP",
            "typeHandlerVersion": "1.2",
            "settings": "<PublicConfig><UserName>userazure</UserName><Expiration>01/12/2022 16:29:02</Expiration></PublicConfig>"
          }
        }
      ]
    },
    "provisioningState": "Succeeded",
    "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947"
  },
  "systemData": {
    "createdAt": "2020-01-01T17:18:19.1234567Z",
    "lastModifiedAt": "2020-01-01T17:18:19.1234567Z"
  }
}

Definitions

Name Description
ApiError

Api error.

ApiErrorBase

Api error base.

CloudError

An error response from the Compute service.

CloudService

Describes the cloud service.

CloudServiceExtensionProfile

Describes a cloud service extension profile.

CloudServiceExtensionProperties

Extension Properties.

CloudServiceNetworkProfile

Network Profile for the cloud service.

CloudServiceOsProfile

Describes the OS profile for the cloud service.

CloudServiceProperties

Cloud service properties

CloudServiceRoleProfile

Describes the role profile for the cloud service.

CloudServiceRoleProfileProperties

Describes the role properties.

CloudServiceRoleSku

Describes the cloud service role sku.

CloudServiceSlotType

Slot type for the cloud service. Possible values are

Production

Staging

If not specified, the default value is Production.

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

Auto

Manual

Simultaneous

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.

CloudServiceVaultAndSecretReference

Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.

CloudServiceVaultCertificate

Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance.

CloudServiceVaultSecretGroup

Describes a set of certificates which are all in the same Key Vault.

Extension

Describes a cloud service Extension.

InnerError

Inner error details.

LoadBalancerConfiguration

Describes the load balancer configuration.

LoadBalancerConfigurationProperties

Describes the properties of the load balancer configuration.

LoadBalancerFrontendIpConfiguration

Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.

LoadBalancerFrontendIpConfigurationProperties

Describes a cloud service IP Configuration

SubResource
SystemData

The system meta data relating to this resource.

ApiError

Api error.

Name Type Description
code

string

The error code.

details

ApiErrorBase[]

The Api error details

innererror

InnerError

The Api inner error

message

string

The error message.

target

string

The target of the particular error.

ApiErrorBase

Api error base.

Name Type Description
code

string

The error code.

message

string

The error message.

target

string

The target of the particular error.

CloudError

An error response from the Compute service.

Name Type Description
error

ApiError

Api error.

CloudService

Describes the cloud service.

Name Type Description
id

string

Resource Id.

location

string

Resource location.

name

string

Resource name.

properties

CloudServiceProperties

Cloud service properties

systemData

SystemData

The system meta data relating to this resource.

tags

object

Resource tags.

type

string

Resource type.

zones

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.

CloudServiceExtensionProfile

Describes a cloud service extension profile.

Name Type Description
extensions

Extension[]

List of extensions for the cloud service.

CloudServiceExtensionProperties

Extension Properties.

Name Type Description
autoUpgradeMinorVersion

boolean

Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.

forceUpdateTag

string

Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not

protectedSettings

object

Protected settings for the extension which are encrypted before sent to the role instance.

protectedSettingsFromKeyVault

CloudServiceVaultAndSecretReference

Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.

provisioningState

string

The provisioning state, which only appears in the response.

publisher

string

The name of the extension handler publisher.

rolesAppliedTo

string[]

Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.

settings

object

Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.

type

string

Specifies the type of the extension.

typeHandlerVersion

string

Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.

CloudServiceNetworkProfile

Network Profile for the cloud service.

Name Type Description
loadBalancerConfigurations

LoadBalancerConfiguration[]

List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.

slotType

CloudServiceSlotType

Slot type for the cloud service. Possible values are

Production

Staging

If not specified, the default value is Production.

swappableCloudService

SubResource

The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.

CloudServiceOsProfile

Describes the OS profile for the cloud service.

Name Type Description
secrets

CloudServiceVaultSecretGroup[]

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

CloudServiceProperties

Cloud service properties

Name Type Description
allowModelOverride

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.

configuration

string

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

configurationUrl

string

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.

extensionProfile

CloudServiceExtensionProfile

Describes a cloud service extension profile.

networkProfile

CloudServiceNetworkProfile

Network Profile for the cloud service.

osProfile

CloudServiceOsProfile

Describes the OS profile for the cloud service.

packageUrl

string

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

string

The provisioning state, which only appears in the response.

roleProfile

CloudServiceRoleProfile

Describes the role profile for the cloud service.

startCloudService

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.

uniqueId

string

The unique identifier for the cloud service.

upgradeMode

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

Auto

Manual

Simultaneous

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.

CloudServiceRoleProfile

Describes the role profile for the cloud service.

Name Type Description
roles

CloudServiceRoleProfileProperties[]

List of roles for the cloud service.

CloudServiceRoleProfileProperties

Describes the role properties.

Name Type Description
name

string

Resource name.

sku

CloudServiceRoleSku

Describes the cloud service role sku.

CloudServiceRoleSku

Describes the cloud service role sku.

Name Type Description
capacity

integer

Specifies the number of role instances in the cloud service.

name

string

The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.

tier

string

Specifies the tier of the cloud service. Possible Values are

Standard

Basic

CloudServiceSlotType

Slot type for the cloud service. Possible values are

Production

Staging

If not specified, the default value is Production.

Name Type Description
Production

string

Staging

string

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

Auto

Manual

Simultaneous

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.

Name Type Description
Auto

string

Manual

string

Simultaneous

string

CloudServiceVaultAndSecretReference

Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.

Name Type Description
secretUrl

string

Secret URL which contains the protected settings of the extension

sourceVault

SubResource

The ARM Resource ID of the Key Vault

CloudServiceVaultCertificate

Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance.

Name Type Description
certificateUrl

string

This is the URL of a certificate that has been uploaded to Key Vault as a secret.

CloudServiceVaultSecretGroup

Describes a set of certificates which are all in the same Key Vault.

Name Type Description
sourceVault

SubResource

The relative URL of the Key Vault containing all of the certificates in VaultCertificates.

vaultCertificates

CloudServiceVaultCertificate[]

The list of key vault references in SourceVault which contain certificates.

Extension

Describes a cloud service Extension.

Name Type Description
name

string

The name of the extension.

properties

CloudServiceExtensionProperties

Extension Properties.

InnerError

Inner error details.

Name Type Description
errordetail

string

The internal error message or exception dump.

exceptiontype

string

The exception type.

LoadBalancerConfiguration

Describes the load balancer configuration.

Name Type Description
id

string

Resource Id

name

string

The name of the Load balancer

properties

LoadBalancerConfigurationProperties

Properties of the load balancer configuration.

LoadBalancerConfigurationProperties

Describes the properties of the load balancer configuration.

Name Type Description
frontendIpConfigurations

LoadBalancerFrontendIpConfiguration[]

Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.

LoadBalancerFrontendIpConfiguration

Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.

Name Type Description
name

string

The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.

properties

LoadBalancerFrontendIpConfigurationProperties

Properties of load balancer frontend ip configuration.

LoadBalancerFrontendIpConfigurationProperties

Describes a cloud service IP Configuration

Name Type Description
privateIPAddress

string

The virtual network private IP address of the IP configuration.

publicIPAddress

SubResource

The reference to the public ip address resource.

subnet

SubResource

The reference to the virtual network subnet resource.

SubResource

Name Type Description
id

string

Resource Id

SystemData

The system meta data relating to this resource.

Name Type Description
createdAt

string

Specifies the time in UTC at which the Cloud Service (extended support) resource was created.
Minimum api-version: 2022-04-04.

lastModifiedAt

string

Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified.
Minimum api-version: 2022-04-04.