diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index b2c29cc57ea77..37cf24da90cd7 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -116,7 +116,7 @@ - + diff --git a/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj b/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj index d946ca140dc17..e34d88566b51e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj +++ b/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj @@ -27,7 +27,7 @@ - + diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayContainer.cs index faef73ed442af..de2e00f36d985 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string applicationGatewayName, C } var response = _restClient.Get(Id.ResourceGroupName, applicationGatewayName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ApplicationGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string applicat } var response = await _restClient.GetAsync(Id.ResourceGroupName, applicationGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ApplicationGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string applicat /// Tries to get details for this resource from the service. /// The name of the application gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ApplicationGateway TryGet(string applicationGatewayName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string applicationGatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ApplicationGateway TryGet(string applicationGatewayName, Cancella throw new ArgumentNullException(nameof(applicationGatewayName)); } - return Get(applicationGatewayName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, applicationGatewayName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ApplicationGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ApplicationGateway TryGet(string applicationGatewayName, Cancella /// Tries to get details for this resource from the service. /// The name of the application gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string applicationGatewayName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string applicationGatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string applicationGate throw new ArgumentNullException(nameof(applicationGatewayName)); } - return await GetAsync(applicationGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, applicationGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ApplicationGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string applicationGate /// Tries to get details for this resource from the service. /// The name of the application gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string applicationGatewayName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string applicationGatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string applicationGatewayName, CancellationTok throw new ArgumentNullException(nameof(applicationGatewayName)); } - return TryGet(applicationGatewayName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(applicationGatewayName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string applicationGatewayName, CancellationTok /// Tries to get details for this resource from the service. /// The name of the application gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string applicationGatewayName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string applicationGatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string applicationGatewayName throw new ArgumentNullException(nameof(applicationGatewayName)); } - return await TryGetAsync(applicationGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(applicationGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayOperations.cs index 1447477cbda36..c23c7a43bcef5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayOperations.cs @@ -55,6 +55,8 @@ public async virtual Task> GetAsync(CancellationTok try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ApplicationGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -73,6 +75,8 @@ public virtual Response Get(CancellationToken cancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ApplicationGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionContainer.cs index b67357ca0ccae..5e8c1d5fc0758 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionContainer.cs @@ -58,6 +58,8 @@ public virtual Response Get(string } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ApplicationGatewayPrivateEndpointConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -82,6 +84,8 @@ public async virtual Task> } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ApplicationGatewayPrivateEndpointConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -94,9 +98,9 @@ public async virtual Task> /// Tries to get details for this resource from the service. /// The name of the application gateway private endpoint connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ApplicationGatewayPrivateEndpointConnection TryGet(string connectionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayPrivateEndpointConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayPrivateEndpointConnectionContainer.GetIfExists"); scope.Start(); try { @@ -105,11 +109,10 @@ public virtual ApplicationGatewayPrivateEndpointConnection TryGet(string connect throw new ArgumentNullException(nameof(connectionName)); } - return Get(connectionName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ApplicationGatewayPrivateEndpointConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -121,9 +124,9 @@ public virtual ApplicationGatewayPrivateEndpointConnection TryGet(string connect /// Tries to get details for this resource from the service. /// The name of the application gateway private endpoint connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayPrivateEndpointConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayPrivateEndpointConnectionContainer.GetIfExists"); scope.Start(); try { @@ -132,11 +135,10 @@ public async virtual Task TryGetAsy throw new ArgumentNullException(nameof(connectionName)); } - return await GetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ApplicationGatewayPrivateEndpointConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -148,7 +150,7 @@ public async virtual Task TryGetAsy /// Tries to get details for this resource from the service. /// The name of the application gateway private endpoint connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string connectionName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayPrivateEndpointConnectionContainer.CheckIfExists"); scope.Start(); @@ -159,7 +161,8 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance throw new ArgumentNullException(nameof(connectionName)); } - return TryGet(connectionName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(connectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -171,7 +174,7 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the application gateway private endpoint connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ApplicationGatewayPrivateEndpointConnectionContainer.CheckIfExists"); scope.Start(); @@ -182,7 +185,8 @@ public async virtual Task CheckIfExistsAsync(string connectionName, Cancel throw new ArgumentNullException(nameof(connectionName)); } - return await TryGetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionOperations.cs index 4882af58995e5..3563904760d81 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ApplicationGatewayPrivateEndpointConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(Cancell try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ApplicationGatewayPrivateEndpointConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupContainer.cs index 8f7e652d4a17c..e4db829c90a97 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string applicationSecurity } var response = _restClient.Get(Id.ResourceGroupName, applicationSecurityGroupName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ApplicationSecurityGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string ap } var response = await _restClient.GetAsync(Id.ResourceGroupName, applicationSecurityGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ApplicationSecurityGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string ap /// Tries to get details for this resource from the service. /// The name of the application security group. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ApplicationSecurityGroup TryGet(string applicationSecurityGroupName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string applicationSecurityGroupName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ApplicationSecurityGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ApplicationSecurityGroupContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ApplicationSecurityGroup TryGet(string applicationSecurityGroupNa throw new ArgumentNullException(nameof(applicationSecurityGroupName)); } - return Get(applicationSecurityGroupName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, applicationSecurityGroupName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ApplicationSecurityGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ApplicationSecurityGroup TryGet(string applicationSecurityGroupNa /// Tries to get details for this resource from the service. /// The name of the application security group. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string applicationSecurityGroupName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string applicationSecurityGroupName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ApplicationSecurityGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ApplicationSecurityGroupContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string applicati throw new ArgumentNullException(nameof(applicationSecurityGroupName)); } - return await GetAsync(applicationSecurityGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, applicationSecurityGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ApplicationSecurityGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string applicati /// Tries to get details for this resource from the service. /// The name of the application security group. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string applicationSecurityGroupName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string applicationSecurityGroupName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ApplicationSecurityGroupContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string applicationSecurityGroupName, Cancellat throw new ArgumentNullException(nameof(applicationSecurityGroupName)); } - return TryGet(applicationSecurityGroupName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(applicationSecurityGroupName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string applicationSecurityGroupName, Cancellat /// Tries to get details for this resource from the service. /// The name of the application security group. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string applicationSecurityGroupName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string applicationSecurityGroupName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ApplicationSecurityGroupContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string applicationSecurityGro throw new ArgumentNullException(nameof(applicationSecurityGroupName)); } - return await TryGetAsync(applicationSecurityGroupName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(applicationSecurityGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupOperations.cs index eea65eda849a9..ee4b5a0683996 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cancellat try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ApplicationSecurityGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancella try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ApplicationSecurityGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallContainer.cs index e730a33b83677..c30f494678e8a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string azureFirewallName, Cancellatio } var response = _restClient.Get(Id.ResourceGroupName, azureFirewallName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new AzureFirewall(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string azureFirewall } var response = await _restClient.GetAsync(Id.ResourceGroupName, azureFirewallName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new AzureFirewall(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string azureFirewall /// Tries to get details for this resource from the service. /// The name of the Azure Firewall. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual AzureFirewall TryGet(string azureFirewallName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string azureFirewallName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("AzureFirewallContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("AzureFirewallContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual AzureFirewall TryGet(string azureFirewallName, CancellationToken throw new ArgumentNullException(nameof(azureFirewallName)); } - return Get(azureFirewallName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, azureFirewallName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new AzureFirewall(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual AzureFirewall TryGet(string azureFirewallName, CancellationToken /// Tries to get details for this resource from the service. /// The name of the Azure Firewall. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string azureFirewallName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string azureFirewallName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("AzureFirewallContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("AzureFirewallContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string azureFirewallName, C throw new ArgumentNullException(nameof(azureFirewallName)); } - return await GetAsync(azureFirewallName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, azureFirewallName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new AzureFirewall(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string azureFirewallName, C /// Tries to get details for this resource from the service. /// The name of the Azure Firewall. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string azureFirewallName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string azureFirewallName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("AzureFirewallContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string azureFirewallName, CancellationToken ca throw new ArgumentNullException(nameof(azureFirewallName)); } - return TryGet(azureFirewallName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(azureFirewallName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string azureFirewallName, CancellationToken ca /// Tries to get details for this resource from the service. /// The name of the Azure Firewall. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string azureFirewallName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string azureFirewallName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("AzureFirewallContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string azureFirewallName, Can throw new ArgumentNullException(nameof(azureFirewallName)); } - return await TryGetAsync(azureFirewallName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(azureFirewallName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallOperations.cs index 1ee88bc607a41..d1613f69ab457 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken ca try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new AzureFirewall(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new AzureFirewall(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolContainer.cs index 009624ea528ca..142fcfeebf97f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string backendAddressPoolName, C } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, backendAddressPoolName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackendAddressPool(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string backendA } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, backendAddressPoolName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new BackendAddressPool(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string backendA /// Tries to get details for this resource from the service. /// The name of the backend address pool. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual BackendAddressPool TryGet(string backendAddressPoolName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string backendAddressPoolName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("BackendAddressPoolContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("BackendAddressPoolContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual BackendAddressPool TryGet(string backendAddressPoolName, Cancella throw new ArgumentNullException(nameof(backendAddressPoolName)); } - return Get(backendAddressPoolName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, backendAddressPoolName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new BackendAddressPool(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual BackendAddressPool TryGet(string backendAddressPoolName, Cancella /// Tries to get details for this resource from the service. /// The name of the backend address pool. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string backendAddressPoolName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string backendAddressPoolName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("BackendAddressPoolContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("BackendAddressPoolContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string backendAddressP throw new ArgumentNullException(nameof(backendAddressPoolName)); } - return await GetAsync(backendAddressPoolName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, backendAddressPoolName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new BackendAddressPool(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string backendAddressP /// Tries to get details for this resource from the service. /// The name of the backend address pool. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string backendAddressPoolName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string backendAddressPoolName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("BackendAddressPoolContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string backendAddressPoolName, CancellationTok throw new ArgumentNullException(nameof(backendAddressPoolName)); } - return TryGet(backendAddressPoolName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(backendAddressPoolName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string backendAddressPoolName, CancellationTok /// Tries to get details for this resource from the service. /// The name of the backend address pool. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string backendAddressPoolName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string backendAddressPoolName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("BackendAddressPoolContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string backendAddressPoolName throw new ArgumentNullException(nameof(backendAddressPoolName)); } - return await TryGetAsync(backendAddressPoolName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(backendAddressPoolName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolOperations.cs index 6de83824eb90e..033429d6290c3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationTok try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new BackendAddressPool(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackendAddressPool(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostContainer.cs index 3f51a2d4f6dfc..7f3b564bb75c9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string bastionHostName, CancellationTok } var response = _restClient.Get(Id.ResourceGroupName, bastionHostName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new BastionHost(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string bastionHostName } var response = await _restClient.GetAsync(Id.ResourceGroupName, bastionHostName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new BastionHost(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string bastionHostName /// Tries to get details for this resource from the service. /// The name of the Bastion Host. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual BastionHost TryGet(string bastionHostName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string bastionHostName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("BastionHostContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("BastionHostContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual BastionHost TryGet(string bastionHostName, CancellationToken canc throw new ArgumentNullException(nameof(bastionHostName)); } - return Get(bastionHostName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, bastionHostName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new BastionHost(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual BastionHost TryGet(string bastionHostName, CancellationToken canc /// Tries to get details for this resource from the service. /// The name of the Bastion Host. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string bastionHostName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string bastionHostName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("BastionHostContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("BastionHostContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string bastionHostName, Cance throw new ArgumentNullException(nameof(bastionHostName)); } - return await GetAsync(bastionHostName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, bastionHostName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new BastionHost(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string bastionHostName, Cance /// Tries to get details for this resource from the service. /// The name of the Bastion Host. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string bastionHostName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string bastionHostName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("BastionHostContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string bastionHostName, CancellationToken canc throw new ArgumentNullException(nameof(bastionHostName)); } - return TryGet(bastionHostName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(bastionHostName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string bastionHostName, CancellationToken canc /// Tries to get details for this resource from the service. /// The name of the Bastion Host. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string bastionHostName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string bastionHostName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("BastionHostContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string bastionHostName, Cance throw new ArgumentNullException(nameof(bastionHostName)); } - return await TryGetAsync(bastionHostName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(bastionHostName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostOperations.cs index 88bf25e6acf25..d474bdbaabef5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken canc try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new BastionHost(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = d try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new BastionHost(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionContainer.cs index 26ca11ea86b57..28b99a309fef4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string connectionName, CancellationTo } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new BgpConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string connectionNam } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new BgpConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string connectionNam /// Tries to get details for this resource from the service. /// The name of the connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual BgpConnection TryGet(string connectionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("BgpConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("BgpConnectionContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual BgpConnection TryGet(string connectionName, CancellationToken can throw new ArgumentNullException(nameof(connectionName)); } - return Get(connectionName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new BgpConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual BgpConnection TryGet(string connectionName, CancellationToken can /// Tries to get details for this resource from the service. /// The name of the connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("BgpConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("BgpConnectionContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string connectionName, Canc throw new ArgumentNullException(nameof(connectionName)); } - return await GetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new BgpConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string connectionName, Canc /// Tries to get details for this resource from the service. /// The name of the connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string connectionName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("BgpConnectionContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance throw new ArgumentNullException(nameof(connectionName)); } - return TryGet(connectionName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(connectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("BgpConnectionContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string connectionName, Cancel throw new ArgumentNullException(nameof(connectionName)); } - return await TryGetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionOperations.cs index 7719d54fe84a8..f61083e0f0576 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken ca try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new BgpConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new BgpConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorContainer.cs index 2f5811618f43f..5720ae916ad78 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorContainer.cs @@ -183,6 +183,8 @@ public virtual Response Get(string connectionMonitorName, Can } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionMonitorName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ConnectionMonitor(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -207,6 +209,8 @@ public async virtual Task> GetAsync(string connectio } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionMonitorName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ConnectionMonitor(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -219,9 +223,9 @@ public async virtual Task> GetAsync(string connectio /// Tries to get details for this resource from the service. /// The name of the connection monitor. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ConnectionMonitor TryGet(string connectionMonitorName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string connectionMonitorName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorContainer.GetIfExists"); scope.Start(); try { @@ -230,11 +234,10 @@ public virtual ConnectionMonitor TryGet(string connectionMonitorName, Cancellati throw new ArgumentNullException(nameof(connectionMonitorName)); } - return Get(connectionMonitorName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionMonitorName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ConnectionMonitor(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual ConnectionMonitor TryGet(string connectionMonitorName, Cancellati /// Tries to get details for this resource from the service. /// The name of the connection monitor. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string connectionMonitorName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string connectionMonitorName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string connectionMonito throw new ArgumentNullException(nameof(connectionMonitorName)); } - return await GetAsync(connectionMonitorName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionMonitorName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ConnectionMonitor(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -273,7 +275,7 @@ public async virtual Task TryGetAsync(string connectionMonito /// Tries to get details for this resource from the service. /// The name of the connection monitor. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string connectionMonitorName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string connectionMonitorName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorContainer.CheckIfExists"); scope.Start(); @@ -284,7 +286,8 @@ public virtual bool CheckIfExists(string connectionMonitorName, CancellationToke throw new ArgumentNullException(nameof(connectionMonitorName)); } - return TryGet(connectionMonitorName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(connectionMonitorName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -296,7 +299,7 @@ public virtual bool CheckIfExists(string connectionMonitorName, CancellationToke /// Tries to get details for this resource from the service. /// The name of the connection monitor. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string connectionMonitorName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string connectionMonitorName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorContainer.CheckIfExists"); scope.Start(); @@ -307,7 +310,8 @@ public async virtual Task CheckIfExistsAsync(string connectionMonitorName, throw new ArgumentNullException(nameof(connectionMonitorName)); } - return await TryGetAsync(connectionMonitorName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(connectionMonitorName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorOperations.cs index 54babf5913902..7716411d044f9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToke try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ConnectionMonitor(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationTok try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ConnectionMonitor(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefixContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefixContainer.cs index b31deb347f8ad..9bb89da2cab7f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefixContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefixContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string customIpPrefixName, string ex } var response = _restClient.Get(Id.ResourceGroupName, customIpPrefixName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new CustomIpPrefix(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string customIpPref } var response = await _restClient.GetAsync(Id.ResourceGroupName, customIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new CustomIpPrefix(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string customIpPref /// The name of the custom IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual CustomIpPrefix TryGet(string customIpPrefixName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string customIpPrefixName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("CustomIpPrefixContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("CustomIpPrefixContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual CustomIpPrefix TryGet(string customIpPrefixName, string expand = throw new ArgumentNullException(nameof(customIpPrefixName)); } - return Get(customIpPrefixName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, customIpPrefixName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new CustomIpPrefix(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual CustomIpPrefix TryGet(string customIpPrefixName, string expand = /// The name of the custom IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string customIpPrefixName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string customIpPrefixName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("CustomIpPrefixContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("CustomIpPrefixContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string customIpPrefixName, throw new ArgumentNullException(nameof(customIpPrefixName)); } - return await GetAsync(customIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, customIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new CustomIpPrefix(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string customIpPrefixName, /// The name of the custom IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string customIpPrefixName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string customIpPrefixName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("CustomIpPrefixContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string customIpPrefixName, string expand = nul throw new ArgumentNullException(nameof(customIpPrefixName)); } - return TryGet(customIpPrefixName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(customIpPrefixName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string customIpPrefixName, string expand = nul /// The name of the custom IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string customIpPrefixName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string customIpPrefixName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("CustomIpPrefixContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string customIpPrefixName, st throw new ArgumentNullException(nameof(customIpPrefixName)); } - return await TryGetAsync(customIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(customIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefixOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefixOperations.cs index e308c82ffc786..0095e65fdedcd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefixOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefixOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = nul try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new CustomIpPrefix(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new CustomIpPrefix(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyContainer.cs index d7936b7da4df5..cf66239eb3b56 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyContainer.cs @@ -177,6 +177,8 @@ public virtual Response Get(string ddosCustomPolicyName, Cance } var response = _restClient.Get(Id.ResourceGroupName, ddosCustomPolicyName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new DdosCustomPolicy(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -201,6 +203,8 @@ public async virtual Task> GetAsync(string ddosCustom } var response = await _restClient.GetAsync(Id.ResourceGroupName, ddosCustomPolicyName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new DdosCustomPolicy(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -213,9 +217,9 @@ public async virtual Task> GetAsync(string ddosCustom /// Tries to get details for this resource from the service. /// The name of the DDoS custom policy. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual DdosCustomPolicy TryGet(string ddosCustomPolicyName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string ddosCustomPolicyName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("DdosCustomPolicyContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("DdosCustomPolicyContainer.GetIfExists"); scope.Start(); try { @@ -224,11 +228,10 @@ public virtual DdosCustomPolicy TryGet(string ddosCustomPolicyName, Cancellation throw new ArgumentNullException(nameof(ddosCustomPolicyName)); } - return Get(ddosCustomPolicyName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, ddosCustomPolicyName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new DdosCustomPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -240,9 +243,9 @@ public virtual DdosCustomPolicy TryGet(string ddosCustomPolicyName, Cancellation /// Tries to get details for this resource from the service. /// The name of the DDoS custom policy. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string ddosCustomPolicyName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string ddosCustomPolicyName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("DdosCustomPolicyContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("DdosCustomPolicyContainer.GetIfExists"); scope.Start(); try { @@ -251,11 +254,10 @@ public async virtual Task TryGetAsync(string ddosCustomPolicyN throw new ArgumentNullException(nameof(ddosCustomPolicyName)); } - return await GetAsync(ddosCustomPolicyName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, ddosCustomPolicyName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new DdosCustomPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -267,7 +269,7 @@ public async virtual Task TryGetAsync(string ddosCustomPolicyN /// Tries to get details for this resource from the service. /// The name of the DDoS custom policy. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string ddosCustomPolicyName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string ddosCustomPolicyName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("DdosCustomPolicyContainer.CheckIfExists"); scope.Start(); @@ -278,7 +280,8 @@ public virtual bool CheckIfExists(string ddosCustomPolicyName, CancellationToken throw new ArgumentNullException(nameof(ddosCustomPolicyName)); } - return TryGet(ddosCustomPolicyName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(ddosCustomPolicyName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -290,7 +293,7 @@ public virtual bool CheckIfExists(string ddosCustomPolicyName, CancellationToken /// Tries to get details for this resource from the service. /// The name of the DDoS custom policy. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string ddosCustomPolicyName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string ddosCustomPolicyName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("DdosCustomPolicyContainer.CheckIfExists"); scope.Start(); @@ -301,7 +304,8 @@ public async virtual Task CheckIfExistsAsync(string ddosCustomPolicyName, throw new ArgumentNullException(nameof(ddosCustomPolicyName)); } - return await TryGetAsync(ddosCustomPolicyName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(ddosCustomPolicyName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyOperations.cs index 3aa3157846c43..7a906597ef7d8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new DdosCustomPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToke try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new DdosCustomPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanContainer.cs index ea0d7570ee0c1..7e9798c0ea76d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string ddosProtectionPlanName, C } var response = _restClient.Get(Id.ResourceGroupName, ddosProtectionPlanName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new DdosProtectionPlan(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string ddosProt } var response = await _restClient.GetAsync(Id.ResourceGroupName, ddosProtectionPlanName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new DdosProtectionPlan(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string ddosProt /// Tries to get details for this resource from the service. /// The name of the DDoS protection plan. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual DdosProtectionPlan TryGet(string ddosProtectionPlanName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string ddosProtectionPlanName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("DdosProtectionPlanContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("DdosProtectionPlanContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual DdosProtectionPlan TryGet(string ddosProtectionPlanName, Cancella throw new ArgumentNullException(nameof(ddosProtectionPlanName)); } - return Get(ddosProtectionPlanName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, ddosProtectionPlanName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new DdosProtectionPlan(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual DdosProtectionPlan TryGet(string ddosProtectionPlanName, Cancella /// Tries to get details for this resource from the service. /// The name of the DDoS protection plan. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string ddosProtectionPlanName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string ddosProtectionPlanName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("DdosProtectionPlanContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("DdosProtectionPlanContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string ddosProtectionP throw new ArgumentNullException(nameof(ddosProtectionPlanName)); } - return await GetAsync(ddosProtectionPlanName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, ddosProtectionPlanName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new DdosProtectionPlan(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string ddosProtectionP /// Tries to get details for this resource from the service. /// The name of the DDoS protection plan. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string ddosProtectionPlanName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string ddosProtectionPlanName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("DdosProtectionPlanContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string ddosProtectionPlanName, CancellationTok throw new ArgumentNullException(nameof(ddosProtectionPlanName)); } - return TryGet(ddosProtectionPlanName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(ddosProtectionPlanName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string ddosProtectionPlanName, CancellationTok /// Tries to get details for this resource from the service. /// The name of the DDoS protection plan. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string ddosProtectionPlanName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string ddosProtectionPlanName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("DdosProtectionPlanContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string ddosProtectionPlanName throw new ArgumentNullException(nameof(ddosProtectionPlanName)); } - return await TryGetAsync(ddosProtectionPlanName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(ddosProtectionPlanName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanOperations.cs index ffd6a352d2a0d..010f5e51785e8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationTok try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new DdosProtectionPlan(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new DdosProtectionPlan(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationContainer.cs index fa835b742bb23..b0821dbb41d99 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string dscpConfigurationName, Can } var response = _restClient.Get(Id.ResourceGroupName, dscpConfigurationName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new DscpConfiguration(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string dscpConfi } var response = await _restClient.GetAsync(Id.ResourceGroupName, dscpConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new DscpConfiguration(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string dscpConfi /// Tries to get details for this resource from the service. /// The name of the resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual DscpConfiguration TryGet(string dscpConfigurationName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string dscpConfigurationName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("DscpConfigurationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("DscpConfigurationContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual DscpConfiguration TryGet(string dscpConfigurationName, Cancellati throw new ArgumentNullException(nameof(dscpConfigurationName)); } - return Get(dscpConfigurationName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, dscpConfigurationName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new DscpConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual DscpConfiguration TryGet(string dscpConfigurationName, Cancellati /// Tries to get details for this resource from the service. /// The name of the resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string dscpConfigurationName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string dscpConfigurationName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("DscpConfigurationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("DscpConfigurationContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string dscpConfiguratio throw new ArgumentNullException(nameof(dscpConfigurationName)); } - return await GetAsync(dscpConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, dscpConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new DscpConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string dscpConfiguratio /// Tries to get details for this resource from the service. /// The name of the resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string dscpConfigurationName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string dscpConfigurationName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("DscpConfigurationContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string dscpConfigurationName, CancellationToke throw new ArgumentNullException(nameof(dscpConfigurationName)); } - return TryGet(dscpConfigurationName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(dscpConfigurationName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string dscpConfigurationName, CancellationToke /// Tries to get details for this resource from the service. /// The name of the resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string dscpConfigurationName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string dscpConfigurationName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("DscpConfigurationContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string dscpConfigurationName, throw new ArgumentNullException(nameof(dscpConfigurationName)); } - return await TryGetAsync(dscpConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(dscpConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationOperations.cs index fbdc94a7bf098..719c200a0d071 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToke try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new DscpConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationTok try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new DscpConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationContainer.cs index f0e170225a6e2..0ce5521f74997 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string authorizati } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, authorizationName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCircuitAuthorization(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(s } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, authorizationName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCircuitAuthorization(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(s /// Tries to get details for this resource from the service. /// The name of the authorization. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ExpressRouteCircuitAuthorization TryGet(string authorizationName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string authorizationName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitAuthorizationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitAuthorizationContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ExpressRouteCircuitAuthorization TryGet(string authorizationName, throw new ArgumentNullException(nameof(authorizationName)); } - return Get(authorizationName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, authorizationName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCircuitAuthorization(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ExpressRouteCircuitAuthorization TryGet(string authorizationName, /// Tries to get details for this resource from the service. /// The name of the authorization. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string authorizationName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string authorizationName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitAuthorizationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitAuthorizationContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string a throw new ArgumentNullException(nameof(authorizationName)); } - return await GetAsync(authorizationName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, authorizationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCircuitAuthorization(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string a /// Tries to get details for this resource from the service. /// The name of the authorization. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string authorizationName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string authorizationName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitAuthorizationContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string authorizationName, CancellationToken ca throw new ArgumentNullException(nameof(authorizationName)); } - return TryGet(authorizationName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(authorizationName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string authorizationName, CancellationToken ca /// Tries to get details for this resource from the service. /// The name of the authorization. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string authorizationName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string authorizationName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitAuthorizationContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string authorizationName, Can throw new ArgumentNullException(nameof(authorizationName)); } - return await TryGetAsync(authorizationName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(authorizationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationOperations.cs index a32fa749a6ac7..76f00bb1f9b8c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(C try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCircuitAuthorization(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCircuitAuthorization(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionContainer.cs index 57d7e7beb4fc5..d2d626647b84d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string connectionName } var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, connectionName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCircuitConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(stri } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCircuitConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(stri /// Tries to get details for this resource from the service. /// The name of the express route circuit connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ExpressRouteCircuitConnection TryGet(string connectionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitConnectionContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ExpressRouteCircuitConnection TryGet(string connectionName, Cance throw new ArgumentNullException(nameof(connectionName)); } - return Get(connectionName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, connectionName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCircuitConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ExpressRouteCircuitConnection TryGet(string connectionName, Cance /// Tries to get details for this resource from the service. /// The name of the express route circuit connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitConnectionContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string conn throw new ArgumentNullException(nameof(connectionName)); } - return await GetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCircuitConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string conn /// Tries to get details for this resource from the service. /// The name of the express route circuit connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string connectionName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitConnectionContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance throw new ArgumentNullException(nameof(connectionName)); } - return TryGet(connectionName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(connectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the express route circuit connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitConnectionContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string connectionName, Cancel throw new ArgumentNullException(nameof(connectionName)); } - return await TryGetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionOperations.cs index 41f2eb2515c4b..d688871500a6c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Canc try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCircuitConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken can try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCircuitConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitContainer.cs index d26ca141522e5..1e3928e4546af 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string circuitName, Cancellatio } var response = _restClient.Get(Id.ResourceGroupName, circuitName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCircuit(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string circuit } var response = await _restClient.GetAsync(Id.ResourceGroupName, circuitName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCircuit(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string circuit /// Tries to get details for this resource from the service. /// The name of express route circuit. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ExpressRouteCircuit TryGet(string circuitName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string circuitName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ExpressRouteCircuit TryGet(string circuitName, CancellationToken throw new ArgumentNullException(nameof(circuitName)); } - return Get(circuitName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, circuitName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCircuit(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ExpressRouteCircuit TryGet(string circuitName, CancellationToken /// Tries to get details for this resource from the service. /// The name of express route circuit. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string circuitName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string circuitName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string circuitName, C throw new ArgumentNullException(nameof(circuitName)); } - return await GetAsync(circuitName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, circuitName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCircuit(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string circuitName, C /// Tries to get details for this resource from the service. /// The name of express route circuit. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string circuitName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string circuitName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string circuitName, CancellationToken cancella throw new ArgumentNullException(nameof(circuitName)); } - return TryGet(circuitName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(circuitName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string circuitName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of express route circuit. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string circuitName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string circuitName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string circuitName, Cancellat throw new ArgumentNullException(nameof(circuitName)); } - return await TryGetAsync(circuitName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(circuitName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitOperations.cs index dbd6cf46fca6d..003ae3b6917d0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationTo try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCircuit(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationT try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCircuit(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringContainer.cs index f3faa29144713..20fe9530fc515 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string peeringName, Canc } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCircuitPeering(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCircuitPeering(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string /// Tries to get details for this resource from the service. /// The name of the peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ExpressRouteCircuitPeering TryGet(string peeringName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string peeringName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitPeeringContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitPeeringContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ExpressRouteCircuitPeering TryGet(string peeringName, Cancellatio throw new ArgumentNullException(nameof(peeringName)); } - return Get(peeringName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCircuitPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ExpressRouteCircuitPeering TryGet(string peeringName, Cancellatio /// Tries to get details for this resource from the service. /// The name of the peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string peeringName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string peeringName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitPeeringContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitPeeringContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string peering throw new ArgumentNullException(nameof(peeringName)); } - return await GetAsync(peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCircuitPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string peering /// Tries to get details for this resource from the service. /// The name of the peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string peeringName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string peeringName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitPeeringContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string peeringName, CancellationToken cancella throw new ArgumentNullException(nameof(peeringName)); } - return TryGet(peeringName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(peeringName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string peeringName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of the peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string peeringName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string peeringName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCircuitPeeringContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string peeringName, Cancellat throw new ArgumentNullException(nameof(peeringName)); } - return await TryGetAsync(peeringName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringOperations.cs index e8b441da43e70..11799ef028644 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringOperations.cs @@ -55,6 +55,8 @@ public async virtual Task> GetAsync(Cancell try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCircuitPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -73,6 +75,8 @@ public virtual Response Get(CancellationToken cancel try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCircuitPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionContainer.cs index 3878f0c3fecf9..7644bf88650dc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string connectionName, Cance } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string conn } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string conn /// Tries to get details for this resource from the service. /// The name of the ExpressRoute connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ExpressRouteConnection TryGet(string connectionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteConnectionContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ExpressRouteConnection TryGet(string connectionName, Cancellation throw new ArgumentNullException(nameof(connectionName)); } - return Get(connectionName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ExpressRouteConnection TryGet(string connectionName, Cancellation /// Tries to get details for this resource from the service. /// The name of the ExpressRoute connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteConnectionContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string connectionN throw new ArgumentNullException(nameof(connectionName)); } - return await GetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string connectionN /// Tries to get details for this resource from the service. /// The name of the ExpressRoute connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string connectionName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteConnectionContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance throw new ArgumentNullException(nameof(connectionName)); } - return TryGet(connectionName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(connectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the ExpressRoute connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteConnectionContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string connectionName, Cancel throw new ArgumentNullException(nameof(connectionName)); } - return await TryGetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionOperations.cs index 627c2ee9dca33..4362581648f18 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cancellatio try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellati try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionContainer.cs index bfdaec5eeaeb1..acae8cdac65d2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string crossConnectionN } var response = _restClient.Get(Id.ResourceGroupName, crossConnectionName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCrossConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string } var response = await _restClient.GetAsync(Id.ResourceGroupName, crossConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCrossConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string /// Tries to get details for this resource from the service. /// The name of the ExpressRouteCrossConnection (service key of the circuit). /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ExpressRouteCrossConnection TryGet(string crossConnectionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string crossConnectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ExpressRouteCrossConnection TryGet(string crossConnectionName, Ca throw new ArgumentNullException(nameof(crossConnectionName)); } - return Get(crossConnectionName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, crossConnectionName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCrossConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ExpressRouteCrossConnection TryGet(string crossConnectionName, Ca /// Tries to get details for this resource from the service. /// The name of the ExpressRouteCrossConnection (service key of the circuit). /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string crossConnectionName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string crossConnectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string crossC throw new ArgumentNullException(nameof(crossConnectionName)); } - return await GetAsync(crossConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, crossConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCrossConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string crossC /// Tries to get details for this resource from the service. /// The name of the ExpressRouteCrossConnection (service key of the circuit). /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string crossConnectionName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string crossConnectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string crossConnectionName, CancellationToken throw new ArgumentNullException(nameof(crossConnectionName)); } - return TryGet(crossConnectionName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(crossConnectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string crossConnectionName, CancellationToken /// Tries to get details for this resource from the service. /// The name of the ExpressRouteCrossConnection (service key of the circuit). /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string crossConnectionName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string crossConnectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string crossConnectionName, C throw new ArgumentNullException(nameof(crossConnectionName)); } - return await TryGetAsync(crossConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(crossConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionOperations.cs index 33fbbc8296f01..a4c5f28ebe8ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cancel try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCrossConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cance try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCrossConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringContainer.cs index f3932b89589d6..38c833110eae4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string peeringNa } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCrossConnectionPeering(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCrossConnectionPeering(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync /// Tries to get details for this resource from the service. /// The name of the peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ExpressRouteCrossConnectionPeering TryGet(string peeringName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string peeringName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionPeeringContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionPeeringContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ExpressRouteCrossConnectionPeering TryGet(string peeringName, Can throw new ArgumentNullException(nameof(peeringName)); } - return Get(peeringName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCrossConnectionPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ExpressRouteCrossConnectionPeering TryGet(string peeringName, Can /// Tries to get details for this resource from the service. /// The name of the peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string peeringName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string peeringName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionPeeringContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionPeeringContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string throw new ArgumentNullException(nameof(peeringName)); } - return await GetAsync(peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteCrossConnectionPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string /// Tries to get details for this resource from the service. /// The name of the peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string peeringName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string peeringName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionPeeringContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string peeringName, CancellationToken cancella throw new ArgumentNullException(nameof(peeringName)); } - return TryGet(peeringName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(peeringName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string peeringName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of the peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string peeringName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string peeringName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionPeeringContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string peeringName, Cancellat throw new ArgumentNullException(nameof(peeringName)); } - return await TryGetAsync(peeringName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringOperations.cs index 8d1fb103b5530..7664e3c7ecafa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteCrossConnectionPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToke try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteCrossConnectionPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayContainer.cs index 8ce9f71f369e0..57686e4893bf0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayContainer.cs @@ -177,6 +177,8 @@ public virtual Response Get(string expressRouteGatewayName, } var response = _restClient.Get(Id.ResourceGroupName, expressRouteGatewayName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -201,6 +203,8 @@ public async virtual Task> GetAsync(string express } var response = await _restClient.GetAsync(Id.ResourceGroupName, expressRouteGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -213,9 +217,9 @@ public async virtual Task> GetAsync(string express /// Tries to get details for this resource from the service. /// The name of the ExpressRoute gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ExpressRouteGateway TryGet(string expressRouteGatewayName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string expressRouteGatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteGatewayContainer.GetIfExists"); scope.Start(); try { @@ -224,11 +228,10 @@ public virtual ExpressRouteGateway TryGet(string expressRouteGatewayName, Cancel throw new ArgumentNullException(nameof(expressRouteGatewayName)); } - return Get(expressRouteGatewayName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, expressRouteGatewayName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -240,9 +243,9 @@ public virtual ExpressRouteGateway TryGet(string expressRouteGatewayName, Cancel /// Tries to get details for this resource from the service. /// The name of the ExpressRoute gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string expressRouteGatewayName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string expressRouteGatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRouteGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRouteGatewayContainer.GetIfExists"); scope.Start(); try { @@ -251,11 +254,10 @@ public async virtual Task TryGetAsync(string expressRouteGa throw new ArgumentNullException(nameof(expressRouteGatewayName)); } - return await GetAsync(expressRouteGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, expressRouteGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRouteGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -267,7 +269,7 @@ public async virtual Task TryGetAsync(string expressRouteGa /// Tries to get details for this resource from the service. /// The name of the ExpressRoute gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string expressRouteGatewayName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string expressRouteGatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteGatewayContainer.CheckIfExists"); scope.Start(); @@ -278,7 +280,8 @@ public virtual bool CheckIfExists(string expressRouteGatewayName, CancellationTo throw new ArgumentNullException(nameof(expressRouteGatewayName)); } - return TryGet(expressRouteGatewayName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(expressRouteGatewayName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -290,7 +293,7 @@ public virtual bool CheckIfExists(string expressRouteGatewayName, CancellationTo /// Tries to get details for this resource from the service. /// The name of the ExpressRoute gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string expressRouteGatewayName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string expressRouteGatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRouteGatewayContainer.CheckIfExists"); scope.Start(); @@ -301,7 +304,8 @@ public async virtual Task CheckIfExistsAsync(string expressRouteGatewayNam throw new ArgumentNullException(nameof(expressRouteGatewayName)); } - return await TryGetAsync(expressRouteGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(expressRouteGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayOperations.cs index d7a5fb8889fad..b16fcada341fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(CancellationTo try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRouteGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -71,6 +73,8 @@ public virtual Response Get(CancellationToken cancellationT try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRouteGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortContainer.cs index 4cd4ce116d2c9..346e1403ec3b2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string expressRoutePortName, Cance } var response = _restClient.Get(Id.ResourceGroupName, expressRoutePortName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRoutePort(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string expressRou } var response = await _restClient.GetAsync(Id.ResourceGroupName, expressRoutePortName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRoutePort(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string expressRou /// Tries to get details for this resource from the service. /// The name of ExpressRoutePort. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ExpressRoutePort TryGet(string expressRoutePortName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string expressRoutePortName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRoutePortContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRoutePortContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ExpressRoutePort TryGet(string expressRoutePortName, Cancellation throw new ArgumentNullException(nameof(expressRoutePortName)); } - return Get(expressRoutePortName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, expressRoutePortName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRoutePort(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ExpressRoutePort TryGet(string expressRoutePortName, Cancellation /// Tries to get details for this resource from the service. /// The name of ExpressRoutePort. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string expressRoutePortName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string expressRoutePortName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ExpressRoutePortContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ExpressRoutePortContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string expressRoutePortN throw new ArgumentNullException(nameof(expressRoutePortName)); } - return await GetAsync(expressRoutePortName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, expressRoutePortName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ExpressRoutePort(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string expressRoutePortN /// Tries to get details for this resource from the service. /// The name of ExpressRoutePort. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string expressRoutePortName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string expressRoutePortName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRoutePortContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string expressRoutePortName, CancellationToken throw new ArgumentNullException(nameof(expressRoutePortName)); } - return TryGet(expressRoutePortName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(expressRoutePortName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string expressRoutePortName, CancellationToken /// Tries to get details for this resource from the service. /// The name of ExpressRoutePort. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string expressRoutePortName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string expressRoutePortName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ExpressRoutePortContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string expressRoutePortName, throw new ArgumentNullException(nameof(expressRoutePortName)); } - return await TryGetAsync(expressRoutePortName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(expressRoutePortName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortOperations.cs index 8f22b773cdfe6..db73e14290ee9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortOperations.cs @@ -55,6 +55,8 @@ public async virtual Task> GetAsync(CancellationToken try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ExpressRoutePort(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -73,6 +75,8 @@ public virtual Response Get(CancellationToken cancellationToke try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ExpressRoutePort(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyContainer.cs index 006cb686c41ab..33ac5be3a8593 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string firewallPolicyName, string ex } var response = _restClient.Get(Id.ResourceGroupName, firewallPolicyName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new FirewallPolicy(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string firewallPoli } var response = await _restClient.GetAsync(Id.ResourceGroupName, firewallPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new FirewallPolicy(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string firewallPoli /// The name of the Firewall Policy. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual FirewallPolicy TryGet(string firewallPolicyName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string firewallPolicyName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("FirewallPolicyContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("FirewallPolicyContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual FirewallPolicy TryGet(string firewallPolicyName, string expand = throw new ArgumentNullException(nameof(firewallPolicyName)); } - return Get(firewallPolicyName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, firewallPolicyName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new FirewallPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual FirewallPolicy TryGet(string firewallPolicyName, string expand = /// The name of the Firewall Policy. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string firewallPolicyName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string firewallPolicyName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("FirewallPolicyContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("FirewallPolicyContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string firewallPolicyName, throw new ArgumentNullException(nameof(firewallPolicyName)); } - return await GetAsync(firewallPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, firewallPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new FirewallPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string firewallPolicyName, /// The name of the Firewall Policy. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string firewallPolicyName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string firewallPolicyName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("FirewallPolicyContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string firewallPolicyName, string expand = nul throw new ArgumentNullException(nameof(firewallPolicyName)); } - return TryGet(firewallPolicyName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(firewallPolicyName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string firewallPolicyName, string expand = nul /// The name of the Firewall Policy. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string firewallPolicyName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string firewallPolicyName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("FirewallPolicyContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string firewallPolicyName, st throw new ArgumentNullException(nameof(firewallPolicyName)); } - return await TryGetAsync(firewallPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(firewallPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyOperations.cs index 87daebc770b28..6e5ed77b35bd4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = nul try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new FirewallPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new FirewallPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupContainer.cs index 0a82b1d850efc..16372ad24de10 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string ruleCollec } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, ruleCollectionGroupName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new FirewallPolicyRuleCollectionGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync( } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, ruleCollectionGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new FirewallPolicyRuleCollectionGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync( /// Tries to get details for this resource from the service. /// The name of the FirewallPolicyRuleCollectionGroup. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual FirewallPolicyRuleCollectionGroup TryGet(string ruleCollectionGroupName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string ruleCollectionGroupName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("FirewallPolicyRuleCollectionGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("FirewallPolicyRuleCollectionGroupContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual FirewallPolicyRuleCollectionGroup TryGet(string ruleCollectionGro throw new ArgumentNullException(nameof(ruleCollectionGroupName)); } - return Get(ruleCollectionGroupName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, ruleCollectionGroupName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new FirewallPolicyRuleCollectionGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual FirewallPolicyRuleCollectionGroup TryGet(string ruleCollectionGro /// Tries to get details for this resource from the service. /// The name of the FirewallPolicyRuleCollectionGroup. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string ruleCollectionGroupName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string ruleCollectionGroupName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("FirewallPolicyRuleCollectionGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("FirewallPolicyRuleCollectionGroupContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string throw new ArgumentNullException(nameof(ruleCollectionGroupName)); } - return await GetAsync(ruleCollectionGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, ruleCollectionGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new FirewallPolicyRuleCollectionGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string /// Tries to get details for this resource from the service. /// The name of the FirewallPolicyRuleCollectionGroup. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string ruleCollectionGroupName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string ruleCollectionGroupName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("FirewallPolicyRuleCollectionGroupContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string ruleCollectionGroupName, CancellationTo throw new ArgumentNullException(nameof(ruleCollectionGroupName)); } - return TryGet(ruleCollectionGroupName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(ruleCollectionGroupName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string ruleCollectionGroupName, CancellationTo /// Tries to get details for this resource from the service. /// The name of the FirewallPolicyRuleCollectionGroup. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string ruleCollectionGroupName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string ruleCollectionGroupName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("FirewallPolicyRuleCollectionGroupContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string ruleCollectionGroupNam throw new ArgumentNullException(nameof(ruleCollectionGroupName)); } - return await TryGetAsync(ruleCollectionGroupName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(ruleCollectionGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupOperations.cs index 2c0e18840c4da..7d0cdc87acf87 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync( try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new FirewallPolicyRuleCollectionGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new FirewallPolicyRuleCollectionGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogContainer.cs index 9236ddf326e2e..14d32f6283fc7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string flowLogName, CancellationToken cance } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, flowLogName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new FlowLog(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string flowLogName, Cancel } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, flowLogName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new FlowLog(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string flowLogName, Cancel /// Tries to get details for this resource from the service. /// The name of the flow log resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual FlowLog TryGet(string flowLogName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string flowLogName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("FlowLogContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("FlowLogContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual FlowLog TryGet(string flowLogName, CancellationToken cancellation throw new ArgumentNullException(nameof(flowLogName)); } - return Get(flowLogName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, flowLogName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new FlowLog(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual FlowLog TryGet(string flowLogName, CancellationToken cancellation /// Tries to get details for this resource from the service. /// The name of the flow log resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string flowLogName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string flowLogName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("FlowLogContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("FlowLogContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string flowLogName, CancellationT throw new ArgumentNullException(nameof(flowLogName)); } - return await GetAsync(flowLogName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, flowLogName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new FlowLog(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string flowLogName, CancellationT /// Tries to get details for this resource from the service. /// The name of the flow log resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string flowLogName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string flowLogName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("FlowLogContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string flowLogName, CancellationToken cancella throw new ArgumentNullException(nameof(flowLogName)); } - return TryGet(flowLogName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(flowLogName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string flowLogName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of the flow log resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string flowLogName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string flowLogName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("FlowLogContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string flowLogName, Cancellat throw new ArgumentNullException(nameof(flowLogName)); } - return await TryGetAsync(flowLogName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(flowLogName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogOperations.cs index 3e0fdbc041e32..2d3d0a8ac500c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken cancella try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new FlowLog(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = defau try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new FlowLog(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfigurationContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfigurationContainer.cs index 359a70fc756e8..a9bebd0cd2869 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfigurationContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfigurationContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string ipConfigName, Cancellatio } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, ipConfigName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new HubIpConfiguration(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string ipConfig } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, ipConfigName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new HubIpConfiguration(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string ipConfig /// Tries to get details for this resource from the service. /// The name of the ipconfig. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual HubIpConfiguration TryGet(string ipConfigName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string ipConfigName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("HubIpConfigurationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("HubIpConfigurationContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual HubIpConfiguration TryGet(string ipConfigName, CancellationToken throw new ArgumentNullException(nameof(ipConfigName)); } - return Get(ipConfigName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, ipConfigName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new HubIpConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual HubIpConfiguration TryGet(string ipConfigName, CancellationToken /// Tries to get details for this resource from the service. /// The name of the ipconfig. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string ipConfigName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string ipConfigName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("HubIpConfigurationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("HubIpConfigurationContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string ipConfigName, C throw new ArgumentNullException(nameof(ipConfigName)); } - return await GetAsync(ipConfigName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, ipConfigName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new HubIpConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string ipConfigName, C /// Tries to get details for this resource from the service. /// The name of the ipconfig. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string ipConfigName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string ipConfigName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("HubIpConfigurationContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string ipConfigName, CancellationToken cancell throw new ArgumentNullException(nameof(ipConfigName)); } - return TryGet(ipConfigName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(ipConfigName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string ipConfigName, CancellationToken cancell /// Tries to get details for this resource from the service. /// The name of the ipconfig. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string ipConfigName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string ipConfigName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("HubIpConfigurationContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string ipConfigName, Cancella throw new ArgumentNullException(nameof(ipConfigName)); } - return await TryGetAsync(ipConfigName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(ipConfigName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfigurationOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfigurationOperations.cs index d6d323d82b0f7..412ce3137fb4f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfigurationOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfigurationOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationTok try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new HubIpConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new HubIpConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableContainer.cs index a770501ce2955..6e068b9a82e1c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string routeTableName, CancellationTo } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, routeTableName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new HubRouteTable(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string routeTableNam } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new HubRouteTable(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string routeTableNam /// Tries to get details for this resource from the service. /// The name of the RouteTable. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual HubRouteTable TryGet(string routeTableName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string routeTableName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("HubRouteTableContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("HubRouteTableContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual HubRouteTable TryGet(string routeTableName, CancellationToken can throw new ArgumentNullException(nameof(routeTableName)); } - return Get(routeTableName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, routeTableName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new HubRouteTable(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual HubRouteTable TryGet(string routeTableName, CancellationToken can /// Tries to get details for this resource from the service. /// The name of the RouteTable. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string routeTableName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string routeTableName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("HubRouteTableContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("HubRouteTableContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string routeTableName, Canc throw new ArgumentNullException(nameof(routeTableName)); } - return await GetAsync(routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new HubRouteTable(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string routeTableName, Canc /// Tries to get details for this resource from the service. /// The name of the RouteTable. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string routeTableName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string routeTableName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("HubRouteTableContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string routeTableName, CancellationToken cance throw new ArgumentNullException(nameof(routeTableName)); } - return TryGet(routeTableName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(routeTableName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string routeTableName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the RouteTable. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string routeTableName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string routeTableName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("HubRouteTableContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string routeTableName, Cancel throw new ArgumentNullException(nameof(routeTableName)); } - return await TryGetAsync(routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableOperations.cs index 52d54e329d18d..15cbab66ce6f7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken ca try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new HubRouteTable(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new HubRouteTable(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionContainer.cs index 9f53b010cf049..0aa19b7709c85 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string connectionName, } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new HubVirtualNetworkConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new HubVirtualNetworkConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string /// Tries to get details for this resource from the service. /// The name of the vpn connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual HubVirtualNetworkConnection TryGet(string connectionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("HubVirtualNetworkConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("HubVirtualNetworkConnectionContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual HubVirtualNetworkConnection TryGet(string connectionName, Cancell throw new ArgumentNullException(nameof(connectionName)); } - return Get(connectionName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new HubVirtualNetworkConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual HubVirtualNetworkConnection TryGet(string connectionName, Cancell /// Tries to get details for this resource from the service. /// The name of the vpn connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("HubVirtualNetworkConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("HubVirtualNetworkConnectionContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string connec throw new ArgumentNullException(nameof(connectionName)); } - return await GetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new HubVirtualNetworkConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string connec /// Tries to get details for this resource from the service. /// The name of the vpn connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string connectionName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("HubVirtualNetworkConnectionContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance throw new ArgumentNullException(nameof(connectionName)); } - return TryGet(connectionName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(connectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the vpn connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("HubVirtualNetworkConnectionContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string connectionName, Cancel throw new ArgumentNullException(nameof(connectionName)); } - return await TryGetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionOperations.cs index 81eecb0d50f12..959755fb64ade 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cancel try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new HubVirtualNetworkConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cance try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new HubVirtualNetworkConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleContainer.cs index 504d246b80699..60931dd48caf0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string inboundNatRuleName, string ex } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, inboundNatRuleName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new InboundNatRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string inboundNatRu } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, inboundNatRuleName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new InboundNatRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string inboundNatRu /// The name of the inbound nat rule. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual InboundNatRule TryGet(string inboundNatRuleName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string inboundNatRuleName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("InboundNatRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("InboundNatRuleContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual InboundNatRule TryGet(string inboundNatRuleName, string expand = throw new ArgumentNullException(nameof(inboundNatRuleName)); } - return Get(inboundNatRuleName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, inboundNatRuleName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new InboundNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual InboundNatRule TryGet(string inboundNatRuleName, string expand = /// The name of the inbound nat rule. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string inboundNatRuleName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string inboundNatRuleName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("InboundNatRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("InboundNatRuleContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string inboundNatRuleName, throw new ArgumentNullException(nameof(inboundNatRuleName)); } - return await GetAsync(inboundNatRuleName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, inboundNatRuleName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new InboundNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string inboundNatRuleName, /// The name of the inbound nat rule. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string inboundNatRuleName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string inboundNatRuleName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("InboundNatRuleContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string inboundNatRuleName, string expand = nul throw new ArgumentNullException(nameof(inboundNatRuleName)); } - return TryGet(inboundNatRuleName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(inboundNatRuleName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string inboundNatRuleName, string expand = nul /// The name of the inbound nat rule. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string inboundNatRuleName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string inboundNatRuleName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("InboundNatRuleContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string inboundNatRuleName, st throw new ArgumentNullException(nameof(inboundNatRuleName)); } - return await TryGetAsync(inboundNatRuleName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(inboundNatRuleName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleOperations.cs index 94a6e5ec08620..66ce2b6e71694 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = nul try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new InboundNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new InboundNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocationContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocationContainer.cs index 29ef2b3035415..46b83fb7a10a1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocationContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocationContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string ipAllocationName, string expand } var response = _restClient.Get(Id.ResourceGroupName, ipAllocationName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new IpAllocation(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string ipAllocationNa } var response = await _restClient.GetAsync(Id.ResourceGroupName, ipAllocationName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new IpAllocation(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string ipAllocationNa /// The name of the IpAllocation. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual IpAllocation TryGet(string ipAllocationName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string ipAllocationName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("IpAllocationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("IpAllocationContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual IpAllocation TryGet(string ipAllocationName, string expand = null throw new ArgumentNullException(nameof(ipAllocationName)); } - return Get(ipAllocationName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, ipAllocationName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new IpAllocation(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual IpAllocation TryGet(string ipAllocationName, string expand = null /// The name of the IpAllocation. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string ipAllocationName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string ipAllocationName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("IpAllocationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("IpAllocationContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string ipAllocationName, str throw new ArgumentNullException(nameof(ipAllocationName)); } - return await GetAsync(ipAllocationName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, ipAllocationName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new IpAllocation(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string ipAllocationName, str /// The name of the IpAllocation. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string ipAllocationName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string ipAllocationName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("IpAllocationContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string ipAllocationName, string expand = null, throw new ArgumentNullException(nameof(ipAllocationName)); } - return TryGet(ipAllocationName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(ipAllocationName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string ipAllocationName, string expand = null, /// The name of the IpAllocation. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string ipAllocationName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string ipAllocationName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("IpAllocationContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string ipAllocationName, stri throw new ArgumentNullException(nameof(ipAllocationName)); } - return await TryGetAsync(ipAllocationName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(ipAllocationName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocationOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocationOperations.cs index a48607cf25054..2634f34dd5e67 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocationOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocationOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = null, try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new IpAllocation(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationToke try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new IpAllocation(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroupContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroupContainer.cs index 8f7de558b4de7..e1247e5c86765 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroupContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroupContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string ipGroupsName, string expand = null, } var response = _restClient.Get(Id.ResourceGroupName, ipGroupsName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new IpGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string ipGroupsName, strin } var response = await _restClient.GetAsync(Id.ResourceGroupName, ipGroupsName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new IpGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string ipGroupsName, strin /// The name of the ipGroups. /// Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual IpGroup TryGet(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("IpGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("IpGroupContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual IpGroup TryGet(string ipGroupsName, string expand = null, Cancell throw new ArgumentNullException(nameof(ipGroupsName)); } - return Get(ipGroupsName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, ipGroupsName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new IpGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual IpGroup TryGet(string ipGroupsName, string expand = null, Cancell /// The name of the ipGroups. /// Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("IpGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("IpGroupContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string ipGroupsName, string expan throw new ArgumentNullException(nameof(ipGroupsName)); } - return await GetAsync(ipGroupsName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, ipGroupsName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new IpGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string ipGroupsName, string expan /// The name of the ipGroups. /// Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("IpGroupContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string ipGroupsName, string expand = null, Can throw new ArgumentNullException(nameof(ipGroupsName)); } - return TryGet(ipGroupsName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(ipGroupsName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string ipGroupsName, string expand = null, Can /// The name of the ipGroups. /// Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("IpGroupContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string ipGroupsName, string e throw new ArgumentNullException(nameof(ipGroupsName)); } - return await TryGetAsync(ipGroupsName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(ipGroupsName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroupOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroupOperations.cs index 7340824702432..0218f29950cef 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroupOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroupOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = null, Canc try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new IpGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationToken can try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new IpGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerContainer.cs index 1378566cb8424..18179bb9c1003 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string loadBalancerName, string expand } var response = _restClient.Get(Id.ResourceGroupName, loadBalancerName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new LoadBalancer(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string loadBalancerNa } var response = await _restClient.GetAsync(Id.ResourceGroupName, loadBalancerName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new LoadBalancer(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string loadBalancerNa /// The name of the load balancer. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual LoadBalancer TryGet(string loadBalancerName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string loadBalancerName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("LoadBalancerContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("LoadBalancerContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual LoadBalancer TryGet(string loadBalancerName, string expand = null throw new ArgumentNullException(nameof(loadBalancerName)); } - return Get(loadBalancerName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, loadBalancerName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new LoadBalancer(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual LoadBalancer TryGet(string loadBalancerName, string expand = null /// The name of the load balancer. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string loadBalancerName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string loadBalancerName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("LoadBalancerContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("LoadBalancerContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string loadBalancerName, str throw new ArgumentNullException(nameof(loadBalancerName)); } - return await GetAsync(loadBalancerName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, loadBalancerName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new LoadBalancer(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string loadBalancerName, str /// The name of the load balancer. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string loadBalancerName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string loadBalancerName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("LoadBalancerContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string loadBalancerName, string expand = null, throw new ArgumentNullException(nameof(loadBalancerName)); } - return TryGet(loadBalancerName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(loadBalancerName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string loadBalancerName, string expand = null, /// The name of the load balancer. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string loadBalancerName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string loadBalancerName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("LoadBalancerContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string loadBalancerName, stri throw new ArgumentNullException(nameof(loadBalancerName)); } - return await TryGetAsync(loadBalancerName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(loadBalancerName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerOperations.cs index bf8ff4e093c48..f923f4fc6e8fb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerOperations.cs @@ -64,6 +64,8 @@ public async virtual Task> GetAsync(string expand = null, try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new LoadBalancer(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -83,6 +85,8 @@ public virtual Response Get(string expand = null, CancellationToke try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new LoadBalancer(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayContainer.cs index 07c19a9eef2d1..ae9714e447059 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string localNetworkGatewayName, } var response = _restClient.Get(Id.ResourceGroupName, localNetworkGatewayName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new LocalNetworkGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string localNe } var response = await _restClient.GetAsync(Id.ResourceGroupName, localNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new LocalNetworkGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string localNe /// Tries to get details for this resource from the service. /// The name of the local network gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual LocalNetworkGateway TryGet(string localNetworkGatewayName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string localNetworkGatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("LocalNetworkGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("LocalNetworkGatewayContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual LocalNetworkGateway TryGet(string localNetworkGatewayName, Cancel throw new ArgumentNullException(nameof(localNetworkGatewayName)); } - return Get(localNetworkGatewayName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, localNetworkGatewayName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new LocalNetworkGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual LocalNetworkGateway TryGet(string localNetworkGatewayName, Cancel /// Tries to get details for this resource from the service. /// The name of the local network gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string localNetworkGatewayName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string localNetworkGatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("LocalNetworkGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("LocalNetworkGatewayContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string localNetworkGa throw new ArgumentNullException(nameof(localNetworkGatewayName)); } - return await GetAsync(localNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, localNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new LocalNetworkGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string localNetworkGa /// Tries to get details for this resource from the service. /// The name of the local network gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string localNetworkGatewayName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string localNetworkGatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("LocalNetworkGatewayContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string localNetworkGatewayName, CancellationTo throw new ArgumentNullException(nameof(localNetworkGatewayName)); } - return TryGet(localNetworkGatewayName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(localNetworkGatewayName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string localNetworkGatewayName, CancellationTo /// Tries to get details for this resource from the service. /// The name of the local network gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string localNetworkGatewayName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string localNetworkGatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("LocalNetworkGatewayContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string localNetworkGatewayNam throw new ArgumentNullException(nameof(localNetworkGatewayName)); } - return await TryGetAsync(localNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(localNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayOperations.cs index b723c19237376..babd2a2bfb0e9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationTo try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new LocalNetworkGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationT try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new LocalNetworkGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayContainer.cs index ec3fe2f72bb66..c3d28b67cdac1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string natGatewayName, string expand = n } var response = _restClient.Get(Id.ResourceGroupName, natGatewayName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NatGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string natGatewayName, } var response = await _restClient.GetAsync(Id.ResourceGroupName, natGatewayName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NatGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string natGatewayName, /// The name of the nat gateway. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual NatGateway TryGet(string natGatewayName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string natGatewayName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NatGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NatGatewayContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual NatGateway TryGet(string natGatewayName, string expand = null, Ca throw new ArgumentNullException(nameof(natGatewayName)); } - return Get(natGatewayName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, natGatewayName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NatGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual NatGateway TryGet(string natGatewayName, string expand = null, Ca /// The name of the nat gateway. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string natGatewayName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string natGatewayName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NatGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NatGatewayContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string natGatewayName, string throw new ArgumentNullException(nameof(natGatewayName)); } - return await GetAsync(natGatewayName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, natGatewayName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NatGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string natGatewayName, string /// The name of the nat gateway. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string natGatewayName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string natGatewayName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NatGatewayContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string natGatewayName, string expand = null, C throw new ArgumentNullException(nameof(natGatewayName)); } - return TryGet(natGatewayName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(natGatewayName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string natGatewayName, string expand = null, C /// The name of the nat gateway. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string natGatewayName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string natGatewayName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NatGatewayContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string natGatewayName, string throw new ArgumentNullException(nameof(natGatewayName)); } - return await TryGetAsync(natGatewayName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(natGatewayName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayOperations.cs index afefb59b8f659..c88fd70aaf1fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = null, C try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NatGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationToken try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NatGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceContainer.cs index a0e049d591f90..bcc60bd23f6c5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string networkInterfaceName, strin } var response = _restClient.Get(Id.ResourceGroupName, networkInterfaceName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkInterface(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string networkInt } var response = await _restClient.GetAsync(Id.ResourceGroupName, networkInterfaceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkInterface(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string networkInt /// The name of the network interface. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual NetworkInterface TryGet(string networkInterfaceName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string networkInterfaceName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual NetworkInterface TryGet(string networkInterfaceName, string expan throw new ArgumentNullException(nameof(networkInterfaceName)); } - return Get(networkInterfaceName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, networkInterfaceName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkInterface(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual NetworkInterface TryGet(string networkInterfaceName, string expan /// The name of the network interface. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string networkInterfaceName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string networkInterfaceName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string networkInterfaceN throw new ArgumentNullException(nameof(networkInterfaceName)); } - return await GetAsync(networkInterfaceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, networkInterfaceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkInterface(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string networkInterfaceN /// The name of the network interface. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string networkInterfaceName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string networkInterfaceName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string networkInterfaceName, string expand = n throw new ArgumentNullException(nameof(networkInterfaceName)); } - return TryGet(networkInterfaceName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(networkInterfaceName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string networkInterfaceName, string expand = n /// The name of the network interface. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string networkInterfaceName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string networkInterfaceName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string networkInterfaceName, throw new ArgumentNullException(nameof(networkInterfaceName)); } - return await TryGetAsync(networkInterfaceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(networkInterfaceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceOperations.cs index 6c388dec1db58..935420e0c1ee1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceOperations.cs @@ -58,6 +58,8 @@ public async virtual Task> GetAsync(string expand = n try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkInterface(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -77,6 +79,8 @@ public virtual Response Get(string expand = null, Cancellation try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkInterface(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationContainer.cs index 13fac431a6b96..5fc81eb3c883f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string tapConfigur } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, tapConfigurationName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkInterfaceTapConfiguration(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(s } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, tapConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkInterfaceTapConfiguration(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(s /// Tries to get details for this resource from the service. /// The name of the tap configuration. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual NetworkInterfaceTapConfiguration TryGet(string tapConfigurationName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string tapConfigurationName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceTapConfigurationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceTapConfigurationContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual NetworkInterfaceTapConfiguration TryGet(string tapConfigurationNa throw new ArgumentNullException(nameof(tapConfigurationName)); } - return Get(tapConfigurationName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, tapConfigurationName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkInterfaceTapConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual NetworkInterfaceTapConfiguration TryGet(string tapConfigurationNa /// Tries to get details for this resource from the service. /// The name of the tap configuration. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string tapConfigurationName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string tapConfigurationName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceTapConfigurationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceTapConfigurationContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string t throw new ArgumentNullException(nameof(tapConfigurationName)); } - return await GetAsync(tapConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, tapConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkInterfaceTapConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string t /// Tries to get details for this resource from the service. /// The name of the tap configuration. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string tapConfigurationName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string tapConfigurationName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceTapConfigurationContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string tapConfigurationName, CancellationToken throw new ArgumentNullException(nameof(tapConfigurationName)); } - return TryGet(tapConfigurationName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(tapConfigurationName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string tapConfigurationName, CancellationToken /// Tries to get details for this resource from the service. /// The name of the tap configuration. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string tapConfigurationName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string tapConfigurationName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkInterfaceTapConfigurationContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string tapConfigurationName, throw new ArgumentNullException(nameof(tapConfigurationName)); } - return await TryGetAsync(tapConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(tapConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationOperations.cs index 5343253f75d78..f46fccb340e82 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(C try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkInterfaceTapConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkInterfaceTapConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileContainer.cs index bb58b10061cbe..adc40e92472be 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string networkProfileName, string ex } var response = _restClient.Get(Id.ResourceGroupName, networkProfileName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkProfile(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string networkProfi } var response = await _restClient.GetAsync(Id.ResourceGroupName, networkProfileName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkProfile(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string networkProfi /// The name of the public IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual NetworkProfile TryGet(string networkProfileName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string networkProfileName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkProfileContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkProfileContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual NetworkProfile TryGet(string networkProfileName, string expand = throw new ArgumentNullException(nameof(networkProfileName)); } - return Get(networkProfileName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, networkProfileName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkProfile(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual NetworkProfile TryGet(string networkProfileName, string expand = /// The name of the public IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string networkProfileName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string networkProfileName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkProfileContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkProfileContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string networkProfileName, throw new ArgumentNullException(nameof(networkProfileName)); } - return await GetAsync(networkProfileName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, networkProfileName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkProfile(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string networkProfileName, /// The name of the public IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string networkProfileName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string networkProfileName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkProfileContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string networkProfileName, string expand = nul throw new ArgumentNullException(nameof(networkProfileName)); } - return TryGet(networkProfileName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(networkProfileName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string networkProfileName, string expand = nul /// The name of the public IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string networkProfileName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string networkProfileName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkProfileContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string networkProfileName, st throw new ArgumentNullException(nameof(networkProfileName)); } - return await TryGetAsync(networkProfileName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(networkProfileName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileOperations.cs index e321c781d253d..7e0aed5059eb4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = nul try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkProfile(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkProfile(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupContainer.cs index 3205ebbc4b950..3f03d8e022712 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string networkSecurityGroupNam } var response = _restClient.Get(Id.ResourceGroupName, networkSecurityGroupName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkSecurityGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string networ } var response = await _restClient.GetAsync(Id.ResourceGroupName, networkSecurityGroupName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkSecurityGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string networ /// The name of the network security group. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual NetworkSecurityGroup TryGet(string networkSecurityGroupName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string networkSecurityGroupName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkSecurityGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkSecurityGroupContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual NetworkSecurityGroup TryGet(string networkSecurityGroupName, stri throw new ArgumentNullException(nameof(networkSecurityGroupName)); } - return Get(networkSecurityGroupName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, networkSecurityGroupName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkSecurityGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual NetworkSecurityGroup TryGet(string networkSecurityGroupName, stri /// The name of the network security group. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string networkSecurityGroupName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string networkSecurityGroupName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkSecurityGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkSecurityGroupContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string networkSecuri throw new ArgumentNullException(nameof(networkSecurityGroupName)); } - return await GetAsync(networkSecurityGroupName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, networkSecurityGroupName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkSecurityGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string networkSecuri /// The name of the network security group. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string networkSecurityGroupName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string networkSecurityGroupName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkSecurityGroupContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string networkSecurityGroupName, string expand throw new ArgumentNullException(nameof(networkSecurityGroupName)); } - return TryGet(networkSecurityGroupName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(networkSecurityGroupName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string networkSecurityGroupName, string expand /// The name of the network security group. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string networkSecurityGroupName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string networkSecurityGroupName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkSecurityGroupContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string networkSecurityGroupNa throw new ArgumentNullException(nameof(networkSecurityGroupName)); } - return await TryGetAsync(networkSecurityGroupName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(networkSecurityGroupName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupOperations.cs index 4797102a641dd..00bfa72971a7c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupOperations.cs @@ -56,6 +56,8 @@ public async virtual Task> GetAsync(string expand try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkSecurityGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -75,6 +77,8 @@ public virtual Response Get(string expand = null, Cancella try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkSecurityGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceContainer.cs index d9620c170cd20..f04cb79e3e8d0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string networkVirtualApplia } var response = _restClient.Get(Id.ResourceGroupName, networkVirtualApplianceName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkVirtualAppliance(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string net } var response = await _restClient.GetAsync(Id.ResourceGroupName, networkVirtualApplianceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkVirtualAppliance(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string net /// The name of Network Virtual Appliance. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual NetworkVirtualAppliance TryGet(string networkVirtualApplianceName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string networkVirtualApplianceName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkVirtualApplianceContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkVirtualApplianceContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual NetworkVirtualAppliance TryGet(string networkVirtualApplianceName throw new ArgumentNullException(nameof(networkVirtualApplianceName)); } - return Get(networkVirtualApplianceName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, networkVirtualApplianceName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkVirtualAppliance(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual NetworkVirtualAppliance TryGet(string networkVirtualApplianceName /// The name of Network Virtual Appliance. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string networkVirtualApplianceName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string networkVirtualApplianceName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkVirtualApplianceContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkVirtualApplianceContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string networkVir throw new ArgumentNullException(nameof(networkVirtualApplianceName)); } - return await GetAsync(networkVirtualApplianceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, networkVirtualApplianceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkVirtualAppliance(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string networkVir /// The name of Network Virtual Appliance. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string networkVirtualApplianceName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string networkVirtualApplianceName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkVirtualApplianceContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string networkVirtualApplianceName, string exp throw new ArgumentNullException(nameof(networkVirtualApplianceName)); } - return TryGet(networkVirtualApplianceName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(networkVirtualApplianceName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string networkVirtualApplianceName, string exp /// The name of Network Virtual Appliance. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string networkVirtualApplianceName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string networkVirtualApplianceName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkVirtualApplianceContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string networkVirtualApplianc throw new ArgumentNullException(nameof(networkVirtualApplianceName)); } - return await TryGetAsync(networkVirtualApplianceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(networkVirtualApplianceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceOperations.cs index 8556e9e1a59f2..fcf642501ca17 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceOperations.cs @@ -55,6 +55,8 @@ public async virtual Task> GetAsync(string exp try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkVirtualAppliance(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -74,6 +76,8 @@ public virtual Response Get(string expand = null, Cance try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkVirtualAppliance(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherContainer.cs index 4f4de34723334..b7b62b16b5278 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string networkWatcherName, Cancellat } var response = _restClient.Get(Id.ResourceGroupName, networkWatcherName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkWatcher(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string networkWatch } var response = await _restClient.GetAsync(Id.ResourceGroupName, networkWatcherName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkWatcher(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string networkWatch /// Tries to get details for this resource from the service. /// The name of the network watcher. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual NetworkWatcher TryGet(string networkWatcherName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string networkWatcherName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkWatcherContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual NetworkWatcher TryGet(string networkWatcherName, CancellationToke throw new ArgumentNullException(nameof(networkWatcherName)); } - return Get(networkWatcherName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, networkWatcherName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkWatcher(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual NetworkWatcher TryGet(string networkWatcherName, CancellationToke /// Tries to get details for this resource from the service. /// The name of the network watcher. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string networkWatcherName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string networkWatcherName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("NetworkWatcherContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string networkWatcherName, throw new ArgumentNullException(nameof(networkWatcherName)); } - return await GetAsync(networkWatcherName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, networkWatcherName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new NetworkWatcher(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string networkWatcherName, /// Tries to get details for this resource from the service. /// The name of the network watcher. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string networkWatcherName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string networkWatcherName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkWatcherContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string networkWatcherName, CancellationToken c throw new ArgumentNullException(nameof(networkWatcherName)); } - return TryGet(networkWatcherName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(networkWatcherName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string networkWatcherName, CancellationToken c /// Tries to get details for this resource from the service. /// The name of the network watcher. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string networkWatcherName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string networkWatcherName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("NetworkWatcherContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string networkWatcherName, Ca throw new ArgumentNullException(nameof(networkWatcherName)); } - return await TryGetAsync(networkWatcherName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(networkWatcherName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherOperations.cs index 61bac40e77526..5d008c2aaa250 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken c try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new NetworkWatcher(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new NetworkWatcher(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -455,14 +459,21 @@ public virtual NetworkWatchersGetNextHopOperation StartGetNextHop(NextHopParamet } /// Gets the configured and effective security group rules on the specified VM. + /// ID of the target VM. /// The cancellation token to use. - public async virtual Task> GetVMSecurityRulesAsync(CancellationToken cancellationToken = default) + /// is null. + public async virtual Task> GetVMSecurityRulesAsync(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.GetVMSecurityRules"); scope.Start(); try { - var operation = await StartGetVMSecurityRulesAsync(cancellationToken).ConfigureAwait(false); + var operation = await StartGetVMSecurityRulesAsync(targetResourceId, cancellationToken).ConfigureAwait(false); return await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); } catch (Exception e) @@ -473,14 +484,21 @@ public async virtual Task> GetVMSecurityRulesA } /// Gets the configured and effective security group rules on the specified VM. + /// ID of the target VM. /// The cancellation token to use. - public virtual Response GetVMSecurityRules(CancellationToken cancellationToken = default) + /// is null. + public virtual Response GetVMSecurityRules(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.GetVMSecurityRules"); scope.Start(); try { - var operation = StartGetVMSecurityRules(cancellationToken); + var operation = StartGetVMSecurityRules(targetResourceId, cancellationToken); return operation.WaitForCompletion(cancellationToken); } catch (Exception e) @@ -491,15 +509,22 @@ public virtual Response GetVMSecurityRules(Cancellation } /// Gets the configured and effective security group rules on the specified VM. + /// ID of the target VM. /// The cancellation token to use. - public async virtual Task StartGetVMSecurityRulesAsync(CancellationToken cancellationToken = default) + /// is null. + public async virtual Task StartGetVMSecurityRulesAsync(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.StartGetVMSecurityRules"); scope.Start(); try { - var response = await _restClient.GetVMSecurityRulesAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return new NetworkWatchersGetVMSecurityRulesOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetVMSecurityRulesRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response); + var response = await _restClient.GetVMSecurityRulesAsync(Id.ResourceGroupName, Id.Name, targetResourceId, cancellationToken).ConfigureAwait(false); + return new NetworkWatchersGetVMSecurityRulesOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetVMSecurityRulesRequest(Id.ResourceGroupName, Id.Name, targetResourceId).Request, response); } catch (Exception e) { @@ -509,15 +534,22 @@ public async virtual Task StartGetVM } /// Gets the configured and effective security group rules on the specified VM. + /// ID of the target VM. /// The cancellation token to use. - public virtual NetworkWatchersGetVMSecurityRulesOperation StartGetVMSecurityRules(CancellationToken cancellationToken = default) + /// is null. + public virtual NetworkWatchersGetVMSecurityRulesOperation StartGetVMSecurityRules(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.StartGetVMSecurityRules"); scope.Start(); try { - var response = _restClient.GetVMSecurityRules(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return new NetworkWatchersGetVMSecurityRulesOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetVMSecurityRulesRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response); + var response = _restClient.GetVMSecurityRules(Id.ResourceGroupName, Id.Name, targetResourceId, cancellationToken); + return new NetworkWatchersGetVMSecurityRulesOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetVMSecurityRulesRequest(Id.ResourceGroupName, Id.Name, targetResourceId).Request, response); } catch (Exception e) { @@ -627,14 +659,21 @@ public virtual NetworkWatchersGetTroubleshootingOperation StartGetTroubleshootin } /// Get the last completed troubleshooting result on a specified resource. + /// The target resource ID to query the troubleshooting result. /// The cancellation token to use. - public async virtual Task> GetTroubleshootingResultAsync(CancellationToken cancellationToken = default) + /// is null. + public async virtual Task> GetTroubleshootingResultAsync(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.GetTroubleshootingResult"); scope.Start(); try { - var operation = await StartGetTroubleshootingResultAsync(cancellationToken).ConfigureAwait(false); + var operation = await StartGetTroubleshootingResultAsync(targetResourceId, cancellationToken).ConfigureAwait(false); return await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); } catch (Exception e) @@ -645,14 +684,21 @@ public async virtual Task> GetTroubleshootingRes } /// Get the last completed troubleshooting result on a specified resource. + /// The target resource ID to query the troubleshooting result. /// The cancellation token to use. - public virtual Response GetTroubleshootingResult(CancellationToken cancellationToken = default) + /// is null. + public virtual Response GetTroubleshootingResult(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.GetTroubleshootingResult"); scope.Start(); try { - var operation = StartGetTroubleshootingResult(cancellationToken); + var operation = StartGetTroubleshootingResult(targetResourceId, cancellationToken); return operation.WaitForCompletion(cancellationToken); } catch (Exception e) @@ -663,15 +709,22 @@ public virtual Response GetTroubleshootingResult(Cancella } /// Get the last completed troubleshooting result on a specified resource. + /// The target resource ID to query the troubleshooting result. /// The cancellation token to use. - public async virtual Task StartGetTroubleshootingResultAsync(CancellationToken cancellationToken = default) + /// is null. + public async virtual Task StartGetTroubleshootingResultAsync(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.StartGetTroubleshootingResult"); scope.Start(); try { - var response = await _restClient.GetTroubleshootingResultAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return new NetworkWatchersGetTroubleshootingResultOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetTroubleshootingResultRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response); + var response = await _restClient.GetTroubleshootingResultAsync(Id.ResourceGroupName, Id.Name, targetResourceId, cancellationToken).ConfigureAwait(false); + return new NetworkWatchersGetTroubleshootingResultOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetTroubleshootingResultRequest(Id.ResourceGroupName, Id.Name, targetResourceId).Request, response); } catch (Exception e) { @@ -681,15 +734,22 @@ public async virtual Task Star } /// Get the last completed troubleshooting result on a specified resource. + /// The target resource ID to query the troubleshooting result. /// The cancellation token to use. - public virtual NetworkWatchersGetTroubleshootingResultOperation StartGetTroubleshootingResult(CancellationToken cancellationToken = default) + /// is null. + public virtual NetworkWatchersGetTroubleshootingResultOperation StartGetTroubleshootingResult(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.StartGetTroubleshootingResult"); scope.Start(); try { - var response = _restClient.GetTroubleshootingResult(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return new NetworkWatchersGetTroubleshootingResultOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetTroubleshootingResultRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response); + var response = _restClient.GetTroubleshootingResult(Id.ResourceGroupName, Id.Name, targetResourceId, cancellationToken); + return new NetworkWatchersGetTroubleshootingResultOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetTroubleshootingResultRequest(Id.ResourceGroupName, Id.Name, targetResourceId).Request, response); } catch (Exception e) { @@ -799,14 +859,21 @@ public virtual NetworkWatchersSetFlowLogConfigurationOperation StartSetFlowLogCo } /// Queries status of flow log and traffic analytics (optional) on a specified resource. + /// The target resource where getting the flow log and traffic analytics (optional) status. /// The cancellation token to use. - public async virtual Task> GetFlowLogStatusAsync(CancellationToken cancellationToken = default) + /// is null. + public async virtual Task> GetFlowLogStatusAsync(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.GetFlowLogStatus"); scope.Start(); try { - var operation = await StartGetFlowLogStatusAsync(cancellationToken).ConfigureAwait(false); + var operation = await StartGetFlowLogStatusAsync(targetResourceId, cancellationToken).ConfigureAwait(false); return await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); } catch (Exception e) @@ -817,14 +884,21 @@ public async virtual Task> GetFlowLogStatusAsync(Ca } /// Queries status of flow log and traffic analytics (optional) on a specified resource. + /// The target resource where getting the flow log and traffic analytics (optional) status. /// The cancellation token to use. - public virtual Response GetFlowLogStatus(CancellationToken cancellationToken = default) + /// is null. + public virtual Response GetFlowLogStatus(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.GetFlowLogStatus"); scope.Start(); try { - var operation = StartGetFlowLogStatus(cancellationToken); + var operation = StartGetFlowLogStatus(targetResourceId, cancellationToken); return operation.WaitForCompletion(cancellationToken); } catch (Exception e) @@ -835,15 +909,22 @@ public virtual Response GetFlowLogStatus(CancellationToken c } /// Queries status of flow log and traffic analytics (optional) on a specified resource. + /// The target resource where getting the flow log and traffic analytics (optional) status. /// The cancellation token to use. - public async virtual Task StartGetFlowLogStatusAsync(CancellationToken cancellationToken = default) + /// is null. + public async virtual Task StartGetFlowLogStatusAsync(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.StartGetFlowLogStatus"); scope.Start(); try { - var response = await _restClient.GetFlowLogStatusAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return new NetworkWatchersGetFlowLogStatusOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetFlowLogStatusRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response); + var response = await _restClient.GetFlowLogStatusAsync(Id.ResourceGroupName, Id.Name, targetResourceId, cancellationToken).ConfigureAwait(false); + return new NetworkWatchersGetFlowLogStatusOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetFlowLogStatusRequest(Id.ResourceGroupName, Id.Name, targetResourceId).Request, response); } catch (Exception e) { @@ -853,15 +934,22 @@ public async virtual Task StartGetFlow } /// Queries status of flow log and traffic analytics (optional) on a specified resource. + /// The target resource where getting the flow log and traffic analytics (optional) status. /// The cancellation token to use. - public virtual NetworkWatchersGetFlowLogStatusOperation StartGetFlowLogStatus(CancellationToken cancellationToken = default) + /// is null. + public virtual NetworkWatchersGetFlowLogStatusOperation StartGetFlowLogStatus(string targetResourceId, CancellationToken cancellationToken = default) { + if (targetResourceId == null) + { + throw new ArgumentNullException(nameof(targetResourceId)); + } + using var scope = _clientDiagnostics.CreateScope("NetworkWatcherOperations.StartGetFlowLogStatus"); scope.Start(); try { - var response = _restClient.GetFlowLogStatus(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return new NetworkWatchersGetFlowLogStatusOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetFlowLogStatusRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response); + var response = _restClient.GetFlowLogStatus(Id.ResourceGroupName, Id.Name, targetResourceId, cancellationToken); + return new NetworkWatchersGetFlowLogStatusOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetFlowLogStatusRequest(Id.ResourceGroupName, Id.Name, targetResourceId).Request, response); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayContainer.cs index bf60b97e37568..531580be7502b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string gatewayName, CancellationToken } var response = _restClient.Get(Id.ResourceGroupName, gatewayName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new P2SVpnGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string gatewayName, } var response = await _restClient.GetAsync(Id.ResourceGroupName, gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new P2SVpnGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string gatewayName, /// Tries to get details for this resource from the service. /// The name of the gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual P2SVpnGateway TryGet(string gatewayName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string gatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("P2SVpnGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("P2SVpnGatewayContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual P2SVpnGateway TryGet(string gatewayName, CancellationToken cancel throw new ArgumentNullException(nameof(gatewayName)); } - return Get(gatewayName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, gatewayName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new P2SVpnGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual P2SVpnGateway TryGet(string gatewayName, CancellationToken cancel /// Tries to get details for this resource from the service. /// The name of the gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string gatewayName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string gatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("P2SVpnGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("P2SVpnGatewayContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string gatewayName, Cancell throw new ArgumentNullException(nameof(gatewayName)); } - return await GetAsync(gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new P2SVpnGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string gatewayName, Cancell /// Tries to get details for this resource from the service. /// The name of the gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string gatewayName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string gatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("P2SVpnGatewayContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string gatewayName, CancellationToken cancella throw new ArgumentNullException(nameof(gatewayName)); } - return TryGet(gatewayName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(gatewayName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string gatewayName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of the gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string gatewayName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string gatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("P2SVpnGatewayContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string gatewayName, Cancellat throw new ArgumentNullException(nameof(gatewayName)); } - return await TryGetAsync(gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayOperations.cs index a37390330ee6e..a1f007ed4cb32 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken ca try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new P2SVpnGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new P2SVpnGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureContainer.cs index 784746b7e7531..18cda13a9ab81 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string packetCaptureName, Cancellatio } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, packetCaptureName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PacketCapture(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string packetCapture } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, packetCaptureName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PacketCapture(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string packetCapture /// Tries to get details for this resource from the service. /// The name of the packet capture session. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual PacketCapture TryGet(string packetCaptureName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string packetCaptureName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PacketCaptureContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PacketCaptureContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual PacketCapture TryGet(string packetCaptureName, CancellationToken throw new ArgumentNullException(nameof(packetCaptureName)); } - return Get(packetCaptureName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, packetCaptureName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PacketCapture(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual PacketCapture TryGet(string packetCaptureName, CancellationToken /// Tries to get details for this resource from the service. /// The name of the packet capture session. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string packetCaptureName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string packetCaptureName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PacketCaptureContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PacketCaptureContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string packetCaptureName, C throw new ArgumentNullException(nameof(packetCaptureName)); } - return await GetAsync(packetCaptureName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, packetCaptureName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PacketCapture(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string packetCaptureName, C /// Tries to get details for this resource from the service. /// The name of the packet capture session. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string packetCaptureName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string packetCaptureName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PacketCaptureContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string packetCaptureName, CancellationToken ca throw new ArgumentNullException(nameof(packetCaptureName)); } - return TryGet(packetCaptureName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(packetCaptureName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string packetCaptureName, CancellationToken ca /// Tries to get details for this resource from the service. /// The name of the packet capture session. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string packetCaptureName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string packetCaptureName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PacketCaptureContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string packetCaptureName, Can throw new ArgumentNullException(nameof(packetCaptureName)); } - return await TryGetAsync(packetCaptureName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(packetCaptureName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureOperations.cs index b90a14919a592..851918b08920e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken ca try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PacketCapture(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PacketCapture(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupContainer.cs index 42c8e5ef5e268..73dc3997f8292 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string privateDnsZoneGroupName, } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, privateDnsZoneGroupName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PrivateDnsZoneGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string private } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, privateDnsZoneGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PrivateDnsZoneGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string private /// Tries to get details for this resource from the service. /// The name of the private dns zone group. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual PrivateDnsZoneGroup TryGet(string privateDnsZoneGroupName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string privateDnsZoneGroupName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PrivateDnsZoneGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PrivateDnsZoneGroupContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual PrivateDnsZoneGroup TryGet(string privateDnsZoneGroupName, Cancel throw new ArgumentNullException(nameof(privateDnsZoneGroupName)); } - return Get(privateDnsZoneGroupName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, privateDnsZoneGroupName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PrivateDnsZoneGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual PrivateDnsZoneGroup TryGet(string privateDnsZoneGroupName, Cancel /// Tries to get details for this resource from the service. /// The name of the private dns zone group. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string privateDnsZoneGroupName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string privateDnsZoneGroupName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PrivateDnsZoneGroupContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PrivateDnsZoneGroupContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string privateDnsZone throw new ArgumentNullException(nameof(privateDnsZoneGroupName)); } - return await GetAsync(privateDnsZoneGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, privateDnsZoneGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PrivateDnsZoneGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string privateDnsZone /// Tries to get details for this resource from the service. /// The name of the private dns zone group. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string privateDnsZoneGroupName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string privateDnsZoneGroupName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PrivateDnsZoneGroupContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string privateDnsZoneGroupName, CancellationTo throw new ArgumentNullException(nameof(privateDnsZoneGroupName)); } - return TryGet(privateDnsZoneGroupName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(privateDnsZoneGroupName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string privateDnsZoneGroupName, CancellationTo /// Tries to get details for this resource from the service. /// The name of the private dns zone group. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string privateDnsZoneGroupName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string privateDnsZoneGroupName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PrivateDnsZoneGroupContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string privateDnsZoneGroupNam throw new ArgumentNullException(nameof(privateDnsZoneGroupName)); } - return await TryGetAsync(privateDnsZoneGroupName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(privateDnsZoneGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupOperations.cs index db122a795b0b4..fca38b69d0372 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationTo try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PrivateDnsZoneGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationT try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PrivateDnsZoneGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointContainer.cs index 9d53060ec84d9..4c65f2953be32 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string privateEndpointName, string } var response = _restClient.Get(Id.ResourceGroupName, privateEndpointName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PrivateEndpoint(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string privateEndp } var response = await _restClient.GetAsync(Id.ResourceGroupName, privateEndpointName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PrivateEndpoint(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string privateEndp /// The name of the private endpoint. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual PrivateEndpoint TryGet(string privateEndpointName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string privateEndpointName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PrivateEndpointContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PrivateEndpointContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual PrivateEndpoint TryGet(string privateEndpointName, string expand throw new ArgumentNullException(nameof(privateEndpointName)); } - return Get(privateEndpointName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, privateEndpointName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PrivateEndpoint(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual PrivateEndpoint TryGet(string privateEndpointName, string expand /// The name of the private endpoint. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string privateEndpointName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string privateEndpointName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PrivateEndpointContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PrivateEndpointContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string privateEndpointNam throw new ArgumentNullException(nameof(privateEndpointName)); } - return await GetAsync(privateEndpointName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, privateEndpointName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PrivateEndpoint(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string privateEndpointNam /// The name of the private endpoint. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string privateEndpointName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string privateEndpointName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PrivateEndpointContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string privateEndpointName, string expand = nu throw new ArgumentNullException(nameof(privateEndpointName)); } - return TryGet(privateEndpointName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(privateEndpointName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string privateEndpointName, string expand = nu /// The name of the private endpoint. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string privateEndpointName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string privateEndpointName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PrivateEndpointContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string privateEndpointName, s throw new ArgumentNullException(nameof(privateEndpointName)); } - return await TryGetAsync(privateEndpointName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(privateEndpointName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointOperations.cs index 2941c849eb40d..4b279b3f81ea9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = nu try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PrivateEndpoint(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationT try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PrivateEndpoint(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceContainer.cs index 492014e672791..d2b292fe25dac 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string serviceName, string expan } var response = _restClient.Get(Id.ResourceGroupName, serviceName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PrivateLinkService(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string serviceN } var response = await _restClient.GetAsync(Id.ResourceGroupName, serviceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PrivateLinkService(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string serviceN /// The name of the private link service. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual PrivateLinkService TryGet(string serviceName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string serviceName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PrivateLinkServiceContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PrivateLinkServiceContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual PrivateLinkService TryGet(string serviceName, string expand = nul throw new ArgumentNullException(nameof(serviceName)); } - return Get(serviceName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, serviceName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PrivateLinkService(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual PrivateLinkService TryGet(string serviceName, string expand = nul /// The name of the private link service. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string serviceName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string serviceName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PrivateLinkServiceContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PrivateLinkServiceContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string serviceName, st throw new ArgumentNullException(nameof(serviceName)); } - return await GetAsync(serviceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, serviceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PrivateLinkService(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string serviceName, st /// The name of the private link service. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string serviceName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string serviceName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PrivateLinkServiceContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string serviceName, string expand = null, Canc throw new ArgumentNullException(nameof(serviceName)); } - return TryGet(serviceName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(serviceName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string serviceName, string expand = null, Canc /// The name of the private link service. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string serviceName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string serviceName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PrivateLinkServiceContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string serviceName, string ex throw new ArgumentNullException(nameof(serviceName)); } - return await TryGetAsync(serviceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(serviceName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceOperations.cs index bc780c84c6130..3ec9569302b7b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceOperations.cs @@ -54,6 +54,8 @@ public async virtual Task> GetAsync(string expand = try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PrivateLinkService(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -73,6 +75,8 @@ public virtual Response Get(string expand = null, Cancellati try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PrivateLinkService(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressContainer.cs index 2d2c5a3c4957b..25a37eab867ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string publicIpAddressName, string } var response = _restClient.Get(Id.ResourceGroupName, publicIpAddressName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PublicIPAddress(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string publicIpAdd } var response = await _restClient.GetAsync(Id.ResourceGroupName, publicIpAddressName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PublicIPAddress(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string publicIpAdd /// The name of the public IP address. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual PublicIPAddress TryGet(string publicIpAddressName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string publicIpAddressName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PublicIPAddressContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PublicIPAddressContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual PublicIPAddress TryGet(string publicIpAddressName, string expand throw new ArgumentNullException(nameof(publicIpAddressName)); } - return Get(publicIpAddressName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, publicIpAddressName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PublicIPAddress(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual PublicIPAddress TryGet(string publicIpAddressName, string expand /// The name of the public IP address. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string publicIpAddressName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string publicIpAddressName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PublicIPAddressContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PublicIPAddressContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string publicIpAddressNam throw new ArgumentNullException(nameof(publicIpAddressName)); } - return await GetAsync(publicIpAddressName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, publicIpAddressName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PublicIPAddress(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string publicIpAddressNam /// The name of the public IP address. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string publicIpAddressName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string publicIpAddressName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PublicIPAddressContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string publicIpAddressName, string expand = nu throw new ArgumentNullException(nameof(publicIpAddressName)); } - return TryGet(publicIpAddressName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(publicIpAddressName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string publicIpAddressName, string expand = nu /// The name of the public IP address. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string publicIpAddressName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string publicIpAddressName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PublicIPAddressContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string publicIpAddressName, s throw new ArgumentNullException(nameof(publicIpAddressName)); } - return await TryGetAsync(publicIpAddressName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(publicIpAddressName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressOperations.cs index 7ecfb4b425752..d19dde4a316f7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = nu try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PublicIPAddress(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationT try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PublicIPAddress(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixContainer.cs index bbdb508d864d4..5fb90c2b67030 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string publicIpPrefixName, string ex } var response = _restClient.Get(Id.ResourceGroupName, publicIpPrefixName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PublicIPPrefix(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string publicIpPref } var response = await _restClient.GetAsync(Id.ResourceGroupName, publicIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PublicIPPrefix(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string publicIpPref /// The name of the public IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual PublicIPPrefix TryGet(string publicIpPrefixName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string publicIpPrefixName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PublicIPPrefixContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PublicIPPrefixContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual PublicIPPrefix TryGet(string publicIpPrefixName, string expand = throw new ArgumentNullException(nameof(publicIpPrefixName)); } - return Get(publicIpPrefixName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, publicIpPrefixName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PublicIPPrefix(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual PublicIPPrefix TryGet(string publicIpPrefixName, string expand = /// The name of the public IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string publicIpPrefixName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string publicIpPrefixName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("PublicIPPrefixContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("PublicIPPrefixContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string publicIpPrefixName, throw new ArgumentNullException(nameof(publicIpPrefixName)); } - return await GetAsync(publicIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, publicIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new PublicIPPrefix(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string publicIpPrefixName, /// The name of the public IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string publicIpPrefixName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string publicIpPrefixName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PublicIPPrefixContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string publicIpPrefixName, string expand = nul throw new ArgumentNullException(nameof(publicIpPrefixName)); } - return TryGet(publicIpPrefixName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(publicIpPrefixName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string publicIpPrefixName, string expand = nul /// The name of the public IP prefix. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string publicIpPrefixName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string publicIpPrefixName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("PublicIPPrefixContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string publicIpPrefixName, st throw new ArgumentNullException(nameof(publicIpPrefixName)); } - return await TryGetAsync(publicIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(publicIpPrefixName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixOperations.cs index c0e70f5d9f532..ce02189d9efc6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = nul try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new PublicIPPrefix(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new PublicIPPrefix(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs index 59d0154cfd9e8..863782105d6d5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs @@ -283,6 +283,8 @@ public async Task> Get value = ApplicationGatewayPrivateEndpointConnectionData.DeserializeApplicationGatewayPrivateEndpointConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ApplicationGatewayPrivateEndpointConnectionData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -320,6 +322,8 @@ public Response Get(string reso value = ApplicationGatewayPrivateEndpointConnectionData.DeserializeApplicationGatewayPrivateEndpointConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ApplicationGatewayPrivateEndpointConnectionData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs index e8fffa83efbaa..0e481eae92a46 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs @@ -164,6 +164,8 @@ public async Task> GetAsync(string resourceGrou value = ApplicationGatewayData.DeserializeApplicationGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ApplicationGatewayData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -196,6 +198,8 @@ public Response Get(string resourceGroupName, string app value = ApplicationGatewayData.DeserializeApplicationGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ApplicationGatewayData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs index 325d57767f5ec..7b72accde7d73 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs @@ -164,6 +164,8 @@ public async Task> GetAsync(string resour value = ApplicationSecurityGroupData.DeserializeApplicationSecurityGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ApplicationSecurityGroupData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -196,6 +198,8 @@ public Response Get(string resourceGroupName, stri value = ApplicationSecurityGroupData.DeserializeApplicationSecurityGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ApplicationSecurityGroupData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs index fe3947a125660..07aa0f7ba6895 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs @@ -164,6 +164,8 @@ public async Task> GetAsync(string resourceGroupName value = AzureFirewallData.DeserializeAzureFirewallData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((AzureFirewallData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -196,6 +198,8 @@ public Response Get(string resourceGroupName, string azureFir value = AzureFirewallData.DeserializeAzureFirewallData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((AzureFirewallData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs index bea9531a65992..bcf436f241e50 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs @@ -163,6 +163,8 @@ public async Task> GetAsync(string resourceGroupName, value = BastionHostData.DeserializeBastionHostData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((BastionHostData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -195,6 +197,8 @@ public Response Get(string resourceGroupName, string bastionHos value = BastionHostData.DeserializeBastionHostData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((BastionHostData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs index cceb2a7b53299..c0256a30e2030 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs @@ -201,6 +201,8 @@ public async Task> GetAsync(string resourceGroup value = ConnectionMonitorData.DeserializeConnectionMonitorData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ConnectionMonitorData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -238,6 +240,8 @@ public Response Get(string resourceGroupName, string netw value = ConnectionMonitorData.DeserializeConnectionMonitorData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ConnectionMonitorData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs index 0049a872ac7ab..cb25409301273 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupNam value = CustomIpPrefixData.DeserializeCustomIpPrefixData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((CustomIpPrefixData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string customI value = CustomIpPrefixData.DeserializeCustomIpPrefixData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((CustomIpPrefixData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs index 2f53bd046a90a..ae7a979abb85f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs @@ -164,6 +164,8 @@ public async Task> GetAsync(string resourceGroupN value = DdosCustomPolicyData.DeserializeDdosCustomPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((DdosCustomPolicyData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -196,6 +198,8 @@ public Response Get(string resourceGroupName, string ddosC value = DdosCustomPolicyData.DeserializeDdosCustomPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((DdosCustomPolicyData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs index 2b21b4e4bae68..03bcc3dc11160 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs @@ -164,6 +164,8 @@ public async Task> GetAsync(string resourceGrou value = DdosProtectionPlanData.DeserializeDdosProtectionPlanData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((DdosProtectionPlanData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -196,6 +198,8 @@ public Response Get(string resourceGroupName, string ddo value = DdosProtectionPlanData.DeserializeDdosProtectionPlanData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((DdosProtectionPlanData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs index caae9989ebee4..f85d7ae48cea2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs @@ -252,6 +252,8 @@ public async Task> GetAsync(string resourceGroup value = DscpConfigurationData.DeserializeDscpConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((DscpConfigurationData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -284,6 +286,8 @@ public Response Get(string resourceGroupName, string dscp value = DscpConfigurationData.DeserializeDscpConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((DscpConfigurationData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs index 0d5255410a0f1..1544c44750fc5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(strin value = ExpressRouteCircuitAuthorizationData.DeserializeExpressRouteCircuitAuthorizationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCircuitAuthorizationData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupNa value = ExpressRouteCircuitAuthorizationData.DeserializeExpressRouteCircuitAuthorizationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCircuitAuthorizationData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs index a3b0f0b086603..48d85d3f98c98 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs @@ -201,6 +201,8 @@ public async Task> GetAsync(string r value = ExpressRouteCircuitConnectionData.DeserializeExpressRouteCircuitConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCircuitConnectionData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -243,6 +245,8 @@ public Response Get(string resourceGroupName, value = ExpressRouteCircuitConnectionData.DeserializeExpressRouteCircuitConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCircuitConnectionData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs index 1f4c6c4f0dfbd..464cfb1f69fc1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(string reso value = ExpressRouteCircuitPeeringData.DeserializeExpressRouteCircuitPeeringData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCircuitPeeringData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupName, st value = ExpressRouteCircuitPeeringData.DeserializeExpressRouteCircuitPeeringData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCircuitPeeringData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs index 62e2b5ed6edcf..7ce863478f0bb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs @@ -164,6 +164,8 @@ public async Task> GetAsync(string resourceGro value = ExpressRouteCircuitData.DeserializeExpressRouteCircuitData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCircuitData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -196,6 +198,8 @@ public Response Get(string resourceGroupName, string ci value = ExpressRouteCircuitData.DeserializeExpressRouteCircuitData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCircuitData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs index 9dab08532fc09..820efbbb5aac1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs @@ -194,6 +194,8 @@ public async Task> GetAsync(string resource value = ExpressRouteConnectionData.DeserializeExpressRouteConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteConnectionData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -231,6 +233,8 @@ public Response Get(string resourceGroupName, string value = ExpressRouteConnectionData.DeserializeExpressRouteConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteConnectionData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs index bb3fa55928e43..41bfe5c409570 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs @@ -266,6 +266,8 @@ public async Task> GetAsync(str value = ExpressRouteCrossConnectionPeeringData.DeserializeExpressRouteCrossConnectionPeeringData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCrossConnectionPeeringData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -303,6 +305,8 @@ public Response Get(string resourceGroup value = ExpressRouteCrossConnectionPeeringData.DeserializeExpressRouteCrossConnectionPeeringData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCrossConnectionPeeringData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs index 79f359c434bbf..d8175b05163bf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs @@ -215,6 +215,8 @@ public async Task> GetAsync(string res value = ExpressRouteCrossConnectionData.DeserializeExpressRouteCrossConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCrossConnectionData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -247,6 +249,8 @@ public Response Get(string resourceGroupName, s value = ExpressRouteCrossConnectionData.DeserializeExpressRouteCrossConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteCrossConnectionData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs index a519b9cf82f15..8d14981c52899 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs @@ -394,6 +394,8 @@ public async Task> GetAsync(string resourceGro value = ExpressRouteGatewayData.DeserializeExpressRouteGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteGatewayData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -426,6 +428,8 @@ public Response Get(string resourceGroupName, string ex value = ExpressRouteGatewayData.DeserializeExpressRouteGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRouteGatewayData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs index 9686b951384df..b88931829fd24 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs @@ -164,6 +164,8 @@ public async Task> GetAsync(string resourceGroupN value = ExpressRoutePortData.DeserializeExpressRoutePortData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRoutePortData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -196,6 +198,8 @@ public Response Get(string resourceGroupName, string expre value = ExpressRoutePortData.DeserializeExpressRoutePortData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ExpressRoutePortData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs index 7908e0febf652..932c1f9b2c140 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs @@ -168,6 +168,8 @@ public async Task> GetAsync(string resourceGroupNam value = FirewallPolicyData.DeserializeFirewallPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((FirewallPolicyData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -201,6 +203,8 @@ public Response Get(string resourceGroupName, string firewal value = FirewallPolicyData.DeserializeFirewallPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((FirewallPolicyData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs index 13ad125ff1a6b..ce18f276608af 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(stri value = FirewallPolicyRuleCollectionGroupData.DeserializeFirewallPolicyRuleCollectionGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((FirewallPolicyRuleCollectionGroupData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupN value = FirewallPolicyRuleCollectionGroupData.DeserializeFirewallPolicyRuleCollectionGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((FirewallPolicyRuleCollectionGroupData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs index f55816064f9bd..aefc63a132b42 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs @@ -305,6 +305,8 @@ public async Task> GetAsync(string resourceGroupName, stri value = FlowLogData.DeserializeFlowLogData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((FlowLogData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -342,6 +344,8 @@ public Response Get(string resourceGroupName, string networkWatcher value = FlowLogData.DeserializeFlowLogData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((FlowLogData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs index 75778f2e67f49..76c4d74c91149 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs @@ -194,6 +194,8 @@ public async Task> GetAsync(string resourceGroupName value = HubRouteTableData.DeserializeHubRouteTableData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((HubRouteTableData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -231,6 +233,8 @@ public Response Get(string resourceGroupName, string virtualH value = HubRouteTableData.DeserializeHubRouteTableData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((HubRouteTableData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs index 585c264c78ad4..fff2edc1d654f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs @@ -283,6 +283,8 @@ public async Task> GetAsync(string res value = HubVirtualNetworkConnectionData.DeserializeHubVirtualNetworkConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((HubVirtualNetworkConnectionData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -320,6 +322,8 @@ public Response Get(string resourceGroupName, s value = HubVirtualNetworkConnectionData.DeserializeHubVirtualNetworkConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((HubVirtualNetworkConnectionData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs index 26ef4e02c35dc..0887f1f6c421a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs @@ -271,6 +271,8 @@ public async Task> GetAsync(string resourceGroupNam value = InboundNatRuleData.DeserializeInboundNatRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((InboundNatRuleData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -309,6 +311,8 @@ public Response Get(string resourceGroupName, string loadBal value = InboundNatRuleData.DeserializeInboundNatRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((InboundNatRuleData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs index ba07b5460b78d..cb91a8a94307a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupName, value = IpAllocationData.DeserializeIpAllocationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((IpAllocationData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string ipAllocat value = IpAllocationData.DeserializeIpAllocationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((IpAllocationData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs index c500f3c2a4177..8c62efc6f98d8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs @@ -92,6 +92,8 @@ public async Task> GetAsync(string resourceGroupName, stri value = IpGroupData.DeserializeIpGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((IpGroupData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -125,6 +127,8 @@ public Response Get(string resourceGroupName, string ipGroupsName, value = IpGroupData.DeserializeIpGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((IpGroupData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs index 051e114465256..6ae0ad456762a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs @@ -177,6 +177,8 @@ public async Task> GetAsync(string resourceGrou value = BackendAddressPoolData.DeserializeBackendAddressPoolData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((BackendAddressPoolData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -214,6 +216,8 @@ public Response Get(string resourceGroupName, string loa value = BackendAddressPoolData.DeserializeBackendAddressPoolData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((BackendAddressPoolData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs index 2d7140cce19b1..25c62acfc0cfb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupName, value = LoadBalancerData.DeserializeLoadBalancerData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((LoadBalancerData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string loadBalan value = LoadBalancerData.DeserializeLoadBalancerData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((LoadBalancerData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs index 8d35f1574afb8..bac333d7b81c1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs @@ -176,6 +176,8 @@ public async Task> GetAsync(string resourceGro value = LocalNetworkGatewayData.DeserializeLocalNetworkGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((LocalNetworkGatewayData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -208,6 +210,8 @@ public Response Get(string resourceGroupName, string lo value = LocalNetworkGatewayData.DeserializeLocalNetworkGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((LocalNetworkGatewayData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs index ae349fdb0e956..7f8d165e24737 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupName, s value = NatGatewayData.DeserializeNatGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NatGatewayData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string natGatewayN value = NatGatewayData.DeserializeNatGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NatGatewayData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs index 1b91dc3348a5a..6251bfcc1501a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs @@ -93,6 +93,8 @@ public async Task> GetAsync(string resourceGroup value = VpnGatewayNatRuleData.DeserializeVpnGatewayNatRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnGatewayNatRuleData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -130,6 +132,8 @@ public Response Get(string resourceGroupName, string gate value = VpnGatewayNatRuleData.DeserializeVpnGatewayNatRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnGatewayNatRuleData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs index 8795eed70e7bc..c0c08fa3cf680 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(strin value = NetworkInterfaceTapConfigurationData.DeserializeNetworkInterfaceTapConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkInterfaceTapConfigurationData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupNa value = NetworkInterfaceTapConfigurationData.DeserializeNetworkInterfaceTapConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkInterfaceTapConfigurationData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs index c4ffa9ad03f6d..a9a636e6a8b75 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupN value = NetworkInterfaceData.DeserializeNetworkInterfaceData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkInterfaceData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string netwo value = NetworkInterfaceData.DeserializeNetworkInterfaceData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkInterfaceData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs index 9e6e3ed18eff1..f847c8de2724a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupNam value = NetworkProfileData.DeserializeNetworkProfileData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkProfileData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string network value = NetworkProfileData.DeserializeNetworkProfileData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkProfileData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs index ccb859c2f0ce8..b588bd76631ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGr value = NetworkSecurityGroupData.DeserializeNetworkSecurityGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkSecurityGroupData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string n value = NetworkSecurityGroupData.DeserializeNetworkSecurityGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkSecurityGroupData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs index ec7f809bccfbc..95cb508969dcd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourc value = NetworkVirtualApplianceData.DeserializeNetworkVirtualApplianceData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkVirtualApplianceData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, strin value = NetworkVirtualApplianceData.DeserializeNetworkVirtualApplianceData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkVirtualApplianceData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs index 0320227bb5491..0ea7c1bebbaba 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs @@ -186,6 +186,8 @@ public async Task> GetAsync(string resourceGroupNam value = NetworkWatcherData.DeserializeNetworkWatcherData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkWatcherData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -218,6 +220,8 @@ public Response Get(string resourceGroupName, string network value = NetworkWatcherData.DeserializeNetworkWatcherData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((NetworkWatcherData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs index f7f0bd111fe1e..01e8b2fa65eb7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs @@ -87,6 +87,8 @@ public async Task> GetAsync(string resourceGroupName value = P2SVpnGatewayData.DeserializeP2SVpnGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((P2SVpnGatewayData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -119,6 +121,8 @@ public Response Get(string resourceGroupName, string gatewayN value = P2SVpnGatewayData.DeserializeP2SVpnGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((P2SVpnGatewayData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs index ed46de56cebf2..b7009c4cc5697 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs @@ -192,6 +192,8 @@ public async Task> GetAsync(string resourceGroupName value = PacketCaptureData.DeserializePacketCaptureData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PacketCaptureData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -229,6 +231,8 @@ public Response Get(string resourceGroupName, string networkW value = PacketCaptureData.DeserializePacketCaptureData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PacketCaptureData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs index 2acbe3681c2b2..528855c57a232 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(string resourceGro value = PrivateDnsZoneGroupData.DeserializePrivateDnsZoneGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PrivateDnsZoneGroupData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupName, string pr value = PrivateDnsZoneGroupData.DeserializePrivateDnsZoneGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PrivateDnsZoneGroupData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs index 79fcadf119ef7..e7041c26f29fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs @@ -168,6 +168,8 @@ public async Task> GetAsync(string resourceGroupNa value = PrivateEndpointData.DeserializePrivateEndpointData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PrivateEndpointData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -201,6 +203,8 @@ public Response Get(string resourceGroupName, string privat value = PrivateEndpointData.DeserializePrivateEndpointData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PrivateEndpointData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs index 6365c15693998..63fb0513278a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs @@ -168,6 +168,8 @@ public async Task> GetAsync(string resourceGrou value = PrivateLinkServiceData.DeserializePrivateLinkServiceData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PrivateLinkServiceData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -201,6 +203,8 @@ public Response Get(string resourceGroupName, string ser value = PrivateLinkServiceData.DeserializePrivateLinkServiceData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PrivateLinkServiceData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs index 7c2e6f8cb01aa..13272c3d3343b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupNa value = PublicIPAddressData.DeserializePublicIPAddressData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PublicIPAddressData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string public value = PublicIPAddressData.DeserializePublicIPAddressData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PublicIPAddressData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs index 67af94e6a1b29..8513c59c7d298 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupNam value = PublicIPPrefixData.DeserializePublicIPPrefixData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PublicIPPrefixData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string publicI value = PublicIPPrefixData.DeserializePublicIPPrefixData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((PublicIPPrefixData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs index c09f49e0a0671..6ab5154a01c88 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(string resourceGroupNa value = RouteFilterRuleData.DeserializeRouteFilterRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RouteFilterRuleData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupName, string routeF value = RouteFilterRuleData.DeserializeRouteFilterRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RouteFilterRuleData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs index 3a2edbee44c1e..b3995cfa038d9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupName, value = RouteFilterData.DeserializeRouteFilterData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RouteFilterData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string routeFilte value = RouteFilterData.DeserializeRouteFilterData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RouteFilterData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs index cf354e681075c..47b787dd004b3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupName, s value = RouteTableData.DeserializeRouteTableData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RouteTableData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string routeTableN value = RouteTableData.DeserializeRouteTableData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RouteTableData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs index c3d7128c2ad53..ec965657e32b2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(string resourceGroupName, string value = RouteData.DeserializeRouteData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RouteData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupName, string routeTableName, value = RouteData.DeserializeRouteData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((RouteData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs index 7787d480a7076..2225d191c8632 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs @@ -164,6 +164,8 @@ public async Task> GetAsync(string resourc value = SecurityPartnerProviderData.DeserializeSecurityPartnerProviderData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((SecurityPartnerProviderData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -196,6 +198,8 @@ public Response Get(string resourceGroupName, strin value = SecurityPartnerProviderData.DeserializeSecurityPartnerProviderData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((SecurityPartnerProviderData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs index 03cbd77cccd6c..903cb64a135d8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(string resourceGroupName, value = SecurityRuleData.DeserializeSecurityRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((SecurityRuleData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupName, string networkSe value = SecurityRuleData.DeserializeSecurityRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((SecurityRuleData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs index 46affd2f96f1b..422dff86ecc5a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceG value = ServiceEndpointPolicyData.DeserializeServiceEndpointPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ServiceEndpointPolicyData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string value = ServiceEndpointPolicyData.DeserializeServiceEndpointPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ServiceEndpointPolicyData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs index cf12a8714d2a2..e9426930a7c90 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(string value = ServiceEndpointPolicyDefinitionData.DeserializeServiceEndpointPolicyDefinitionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ServiceEndpointPolicyDefinitionData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupNam value = ServiceEndpointPolicyDefinitionData.DeserializeServiceEndpointPolicyDefinitionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((ServiceEndpointPolicyDefinitionData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs index a2034a686bf27..17bba6cef9898 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs @@ -188,6 +188,8 @@ public async Task> GetAsync(string resourceGroupName, strin value = SubnetData.DeserializeSubnetData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((SubnetData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -226,6 +228,8 @@ public Response Get(string resourceGroupName, string virtualNetworkN value = SubnetData.DeserializeSubnetData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((SubnetData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs index 42f549df9280a..1615ce67ad783 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(string resourceGr value = VirtualApplianceSiteData.DeserializeVirtualApplianceSiteData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualApplianceSiteData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupName, string n value = VirtualApplianceSiteData.DeserializeVirtualApplianceSiteData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualApplianceSiteData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs index 63807389be501..f6976953b89c8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs @@ -93,6 +93,8 @@ public async Task> GetAsync(string resourceGroupName value = BgpConnectionData.DeserializeBgpConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((BgpConnectionData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -130,6 +132,8 @@ public Response Get(string resourceGroupName, string virtualH value = BgpConnectionData.DeserializeBgpConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((BgpConnectionData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs index d06696506aa01..de419aee5649b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs @@ -93,6 +93,8 @@ public async Task> GetAsync(string resourceGrou value = HubIpConfigurationData.DeserializeHubIpConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((HubIpConfigurationData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -130,6 +132,8 @@ public Response Get(string resourceGroupName, string vir value = HubIpConfigurationData.DeserializeHubIpConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((HubIpConfigurationData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs index 98acf52d7bbec..0ff9cfd8a7eb5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs @@ -93,6 +93,8 @@ public async Task> GetAsync(string resource value = VirtualHubRouteTableV2Data.DeserializeVirtualHubRouteTableV2Data(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualHubRouteTableV2Data)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -130,6 +132,8 @@ public Response Get(string resourceGroupName, string value = VirtualHubRouteTableV2Data.DeserializeVirtualHubRouteTableV2Data(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualHubRouteTableV2Data)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs index f1059393efeb0..e7ff1f5d8c9c6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs @@ -87,6 +87,8 @@ public async Task> GetAsync(string resourceGroupName, s value = VirtualHubData.DeserializeVirtualHubData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualHubData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -119,6 +121,8 @@ public Response Get(string resourceGroupName, string virtualHubN value = VirtualHubData.DeserializeVirtualHubData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualHubData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs index 931bfbf968924..0fbec21ed614b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs @@ -176,6 +176,8 @@ public async Task> GetAsync(string value = VirtualNetworkGatewayConnectionData.DeserializeVirtualNetworkGatewayConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkGatewayConnectionData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -208,6 +210,8 @@ public Response Get(string resourceGroupNam value = VirtualNetworkGatewayConnectionData.DeserializeVirtualNetworkGatewayConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkGatewayConnectionData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs index 73a7b44aecf95..063a4e0076d55 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs @@ -93,6 +93,8 @@ public async Task> GetAsync(string re value = VirtualNetworkGatewayNatRuleData.DeserializeVirtualNetworkGatewayNatRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkGatewayNatRuleData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -130,6 +132,8 @@ public Response Get(string resourceGroupName, value = VirtualNetworkGatewayNatRuleData.DeserializeVirtualNetworkGatewayNatRuleData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkGatewayNatRuleData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs index c5203dcf25b0c..b9e334fde5516 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs @@ -176,6 +176,8 @@ public async Task> GetAsync(string resourceG value = VirtualNetworkGatewayData.DeserializeVirtualNetworkGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkGatewayData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -208,6 +210,8 @@ public Response Get(string resourceGroupName, string value = VirtualNetworkGatewayData.DeserializeVirtualNetworkGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkGatewayData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs index 9a1cf78ed3f1b..fa79e1287ef9e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(string resourceG value = VirtualNetworkPeeringData.DeserializeVirtualNetworkPeeringData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkPeeringData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupName, string value = VirtualNetworkPeeringData.DeserializeVirtualNetworkPeeringData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkPeeringData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs index bd489011a10a6..4086d9ced5817 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs @@ -164,6 +164,8 @@ public async Task> GetAsync(string resourceGroup value = VirtualNetworkTapData.DeserializeVirtualNetworkTapData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkTapData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -196,6 +198,8 @@ public Response Get(string resourceGroupName, string tapN value = VirtualNetworkTapData.DeserializeVirtualNetworkTapData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkTapData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs index c4a9bda372e09..05ccef93d3a4e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -169,6 +169,8 @@ public async Task> GetAsync(string resourceGroupNam value = VirtualNetworkData.DeserializeVirtualNetworkData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -202,6 +204,8 @@ public Response Get(string resourceGroupName, string virtual value = VirtualNetworkData.DeserializeVirtualNetworkData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualNetworkData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs index 72a21f6559048..2416994e1dc3a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs @@ -182,6 +182,8 @@ public async Task> GetAsync(string resourceGr value = VirtualRouterPeeringData.DeserializeVirtualRouterPeeringData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualRouterPeeringData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -219,6 +221,8 @@ public Response Get(string resourceGroupName, string v value = VirtualRouterPeeringData.DeserializeVirtualRouterPeeringData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualRouterPeeringData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs index dfe0de5e5524b..14b27a7f0f8ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs @@ -168,6 +168,8 @@ public async Task> GetAsync(string resourceGroupName value = VirtualRouterData.DeserializeVirtualRouterData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualRouterData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -201,6 +203,8 @@ public Response Get(string resourceGroupName, string virtualR value = VirtualRouterData.DeserializeVirtualRouterData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualRouterData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs index f1d55b5b5ea7d..e731fc3ba16cb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs @@ -87,6 +87,8 @@ public async Task> GetAsync(string resourceGroupName, s value = VirtualWANData.DeserializeVirtualWANData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualWANData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -119,6 +121,8 @@ public Response Get(string resourceGroupName, string virtualWANN value = VirtualWANData.DeserializeVirtualWANData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VirtualWANData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs index 1461840c3d0fe..3999e337ad8fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs @@ -94,6 +94,8 @@ public async Task> GetAsync(string resourceGroupName value = VpnConnectionData.DeserializeVpnConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnConnectionData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -131,6 +133,8 @@ public Response Get(string resourceGroupName, string gatewayN value = VpnConnectionData.DeserializeVpnConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnConnectionData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs index 1e4f77a17d9ab..9424c4471a664 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs @@ -87,6 +87,8 @@ public async Task> GetAsync(string resourceGroupName, s value = VpnGatewayData.DeserializeVpnGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnGatewayData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -119,6 +121,8 @@ public Response Get(string resourceGroupName, string gatewayName value = VpnGatewayData.DeserializeVpnGatewayData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnGatewayData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs index fe13b61c6e07b..73f8e7c9ee053 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs @@ -87,6 +87,8 @@ public async Task> GetAsync(string resource value = VpnServerConfigurationData.DeserializeVpnServerConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnServerConfigurationData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -119,6 +121,8 @@ public Response Get(string resourceGroupName, string value = VpnServerConfigurationData.DeserializeVpnServerConfigurationData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnServerConfigurationData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs index ec4b3e7542025..cfc080330cc11 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs @@ -87,6 +87,8 @@ public async Task> GetAsync(string resourceGroupName, stri value = VpnSiteData.DeserializeVpnSiteData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnSiteData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -119,6 +121,8 @@ public Response Get(string resourceGroupName, string vpnSiteName, C value = VpnSiteData.DeserializeVpnSiteData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((VpnSiteData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs index 62cb2d033c83d..ee66aad950cb8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs @@ -214,6 +214,8 @@ public async Task> GetAsync(string re value = WebApplicationFirewallPolicyData.DeserializeWebApplicationFirewallPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((WebApplicationFirewallPolicyData)null, message.Response); default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } @@ -246,6 +248,8 @@ public Response Get(string resourceGroupName, value = WebApplicationFirewallPolicyData.DeserializeWebApplicationFirewallPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((WebApplicationFirewallPolicyData)null, message.Response); default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteContainer.cs index 47b00061821bc..016a641e2332e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string routeName, CancellationToken cancellat } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, routeName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new Route(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string routeName, Cancellati } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, routeName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new Route(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string routeName, Cancellati /// Tries to get details for this resource from the service. /// The name of the route. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual Route TryGet(string routeName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string routeName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("RouteContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("RouteContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual Route TryGet(string routeName, CancellationToken cancellationToke throw new ArgumentNullException(nameof(routeName)); } - return Get(routeName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, routeName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new Route(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual Route TryGet(string routeName, CancellationToken cancellationToke /// Tries to get details for this resource from the service. /// The name of the route. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string routeName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string routeName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("RouteContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("RouteContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string routeName, CancellationToken throw new ArgumentNullException(nameof(routeName)); } - return await GetAsync(routeName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, routeName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new Route(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string routeName, CancellationToken /// Tries to get details for this resource from the service. /// The name of the route. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string routeName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string routeName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RouteContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string routeName, CancellationToken cancellati throw new ArgumentNullException(nameof(routeName)); } - return TryGet(routeName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(routeName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string routeName, CancellationToken cancellati /// Tries to get details for this resource from the service. /// The name of the route. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string routeName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string routeName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RouteContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string routeName, Cancellatio throw new ArgumentNullException(nameof(routeName)); } - return await TryGetAsync(routeName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(routeName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterContainer.cs index cfa420ac593f0..f7f96ac3dd9fb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string routeFilterName, string expand = } var response = _restClient.Get(Id.ResourceGroupName, routeFilterName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new RouteFilter(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string routeFilterName } var response = await _restClient.GetAsync(Id.ResourceGroupName, routeFilterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new RouteFilter(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string routeFilterName /// The name of the route filter. /// Expands referenced express route bgp peering resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual RouteFilter TryGet(string routeFilterName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string routeFilterName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("RouteFilterContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("RouteFilterContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual RouteFilter TryGet(string routeFilterName, string expand = null, throw new ArgumentNullException(nameof(routeFilterName)); } - return Get(routeFilterName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, routeFilterName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new RouteFilter(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual RouteFilter TryGet(string routeFilterName, string expand = null, /// The name of the route filter. /// Expands referenced express route bgp peering resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string routeFilterName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string routeFilterName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("RouteFilterContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("RouteFilterContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string routeFilterName, strin throw new ArgumentNullException(nameof(routeFilterName)); } - return await GetAsync(routeFilterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, routeFilterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new RouteFilter(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string routeFilterName, strin /// The name of the route filter. /// Expands referenced express route bgp peering resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string routeFilterName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string routeFilterName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RouteFilterContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string routeFilterName, string expand = null, throw new ArgumentNullException(nameof(routeFilterName)); } - return TryGet(routeFilterName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(routeFilterName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string routeFilterName, string expand = null, /// The name of the route filter. /// Expands referenced express route bgp peering resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string routeFilterName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string routeFilterName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RouteFilterContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string routeFilterName, strin throw new ArgumentNullException(nameof(routeFilterName)); } - return await TryGetAsync(routeFilterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(routeFilterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterOperations.cs index 867eccce6e07d..069f5f251cd2f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = null, try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new RouteFilter(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationToken try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new RouteFilter(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleContainer.cs index 1d656987ecc07..7933a416e65d4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string ruleName, CancellationToken } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new RouteFilterRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string ruleName, C } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new RouteFilterRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string ruleName, C /// Tries to get details for this resource from the service. /// The name of the rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual RouteFilterRule TryGet(string ruleName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string ruleName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("RouteFilterRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("RouteFilterRuleContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual RouteFilterRule TryGet(string ruleName, CancellationToken cancell throw new ArgumentNullException(nameof(ruleName)); } - return Get(ruleName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new RouteFilterRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual RouteFilterRule TryGet(string ruleName, CancellationToken cancell /// Tries to get details for this resource from the service. /// The name of the rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string ruleName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string ruleName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("RouteFilterRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("RouteFilterRuleContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string ruleName, Cancella throw new ArgumentNullException(nameof(ruleName)); } - return await GetAsync(ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new RouteFilterRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string ruleName, Cancella /// Tries to get details for this resource from the service. /// The name of the rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string ruleName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string ruleName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RouteFilterRuleContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string ruleName, CancellationToken cancellatio throw new ArgumentNullException(nameof(ruleName)); } - return TryGet(ruleName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(ruleName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string ruleName, CancellationToken cancellatio /// Tries to get details for this resource from the service. /// The name of the rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string ruleName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string ruleName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RouteFilterRuleContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string ruleName, Cancellation throw new ArgumentNullException(nameof(ruleName)); } - return await TryGetAsync(ruleName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleOperations.cs index 6279c80f28b40..99d10ec4c2329 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new RouteFilterRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new RouteFilterRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteOperations.cs index 917e8e194d24f..75e5a41c839c2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken cancellati try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new Route(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = default try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new Route(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableContainer.cs index 79aa62dfdf217..7a2448f155df3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string routeTableName, string expand = n } var response = _restClient.Get(Id.ResourceGroupName, routeTableName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new RouteTable(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string routeTableName, } var response = await _restClient.GetAsync(Id.ResourceGroupName, routeTableName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new RouteTable(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string routeTableName, /// The name of the route table. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual RouteTable TryGet(string routeTableName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string routeTableName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("RouteTableContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("RouteTableContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual RouteTable TryGet(string routeTableName, string expand = null, Ca throw new ArgumentNullException(nameof(routeTableName)); } - return Get(routeTableName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, routeTableName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new RouteTable(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual RouteTable TryGet(string routeTableName, string expand = null, Ca /// The name of the route table. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string routeTableName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string routeTableName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("RouteTableContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("RouteTableContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string routeTableName, string throw new ArgumentNullException(nameof(routeTableName)); } - return await GetAsync(routeTableName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, routeTableName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new RouteTable(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string routeTableName, string /// The name of the route table. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string routeTableName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string routeTableName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RouteTableContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string routeTableName, string expand = null, C throw new ArgumentNullException(nameof(routeTableName)); } - return TryGet(routeTableName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(routeTableName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string routeTableName, string expand = null, C /// The name of the route table. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string routeTableName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string routeTableName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("RouteTableContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string routeTableName, string throw new ArgumentNullException(nameof(routeTableName)); } - return await TryGetAsync(routeTableName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(routeTableName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableOperations.cs index bc402fb4c3e54..4d9d1358ddf20 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = null, C try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new RouteTable(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationToken try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new RouteTable(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderContainer.cs index 0a294f5c4d8cc..2124b1229c457 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string securityPartnerProvi } var response = _restClient.Get(Id.ResourceGroupName, securityPartnerProviderName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new SecurityPartnerProvider(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string sec } var response = await _restClient.GetAsync(Id.ResourceGroupName, securityPartnerProviderName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new SecurityPartnerProvider(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string sec /// Tries to get details for this resource from the service. /// The name of the Security Partner Provider. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual SecurityPartnerProvider TryGet(string securityPartnerProviderName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string securityPartnerProviderName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("SecurityPartnerProviderContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("SecurityPartnerProviderContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual SecurityPartnerProvider TryGet(string securityPartnerProviderName throw new ArgumentNullException(nameof(securityPartnerProviderName)); } - return Get(securityPartnerProviderName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, securityPartnerProviderName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new SecurityPartnerProvider(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual SecurityPartnerProvider TryGet(string securityPartnerProviderName /// Tries to get details for this resource from the service. /// The name of the Security Partner Provider. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string securityPartnerProviderName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string securityPartnerProviderName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("SecurityPartnerProviderContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("SecurityPartnerProviderContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string securityPa throw new ArgumentNullException(nameof(securityPartnerProviderName)); } - return await GetAsync(securityPartnerProviderName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, securityPartnerProviderName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new SecurityPartnerProvider(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string securityPa /// Tries to get details for this resource from the service. /// The name of the Security Partner Provider. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string securityPartnerProviderName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string securityPartnerProviderName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("SecurityPartnerProviderContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string securityPartnerProviderName, Cancellati throw new ArgumentNullException(nameof(securityPartnerProviderName)); } - return TryGet(securityPartnerProviderName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(securityPartnerProviderName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string securityPartnerProviderName, Cancellati /// Tries to get details for this resource from the service. /// The name of the Security Partner Provider. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string securityPartnerProviderName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string securityPartnerProviderName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("SecurityPartnerProviderContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string securityPartnerProvide throw new ArgumentNullException(nameof(securityPartnerProviderName)); } - return await TryGetAsync(securityPartnerProviderName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(securityPartnerProviderName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderOperations.cs index fea0a8de9873c..ae22e7aabc811 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cancellati try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new SecurityPartnerProvider(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellat try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new SecurityPartnerProvider(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleContainer.cs index 6eb78f2a8c68b..2ff01d80bec2b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string securityRuleName, CancellationT } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, securityRuleName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new SecurityRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string securityRuleNa } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, securityRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new SecurityRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string securityRuleNa /// Tries to get details for this resource from the service. /// The name of the security rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual SecurityRule TryGet(string securityRuleName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string securityRuleName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("SecurityRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("SecurityRuleContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual SecurityRule TryGet(string securityRuleName, CancellationToken ca throw new ArgumentNullException(nameof(securityRuleName)); } - return Get(securityRuleName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, securityRuleName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new SecurityRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual SecurityRule TryGet(string securityRuleName, CancellationToken ca /// Tries to get details for this resource from the service. /// The name of the security rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string securityRuleName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string securityRuleName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("SecurityRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("SecurityRuleContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string securityRuleName, Can throw new ArgumentNullException(nameof(securityRuleName)); } - return await GetAsync(securityRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, securityRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new SecurityRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string securityRuleName, Can /// Tries to get details for this resource from the service. /// The name of the security rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string securityRuleName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string securityRuleName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("SecurityRuleContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string securityRuleName, CancellationToken can throw new ArgumentNullException(nameof(securityRuleName)); } - return TryGet(securityRuleName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(securityRuleName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string securityRuleName, CancellationToken can /// Tries to get details for this resource from the service. /// The name of the security rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string securityRuleName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string securityRuleName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("SecurityRuleContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string securityRuleName, Canc throw new ArgumentNullException(nameof(securityRuleName)); } - return await TryGetAsync(securityRuleName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(securityRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleOperations.cs index 4f57c7a3096c7..5ff723ae603bf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken can try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new SecurityRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new SecurityRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyContainer.cs index 94f4c70d9f831..e73049d088a57 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string serviceEndpointPolicyN } var response = _restClient.Get(Id.ResourceGroupName, serviceEndpointPolicyName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ServiceEndpointPolicy(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string servi } var response = await _restClient.GetAsync(Id.ResourceGroupName, serviceEndpointPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ServiceEndpointPolicy(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string servi /// The name of the service endpoint policy. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ServiceEndpointPolicy TryGet(string serviceEndpointPolicyName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string serviceEndpointPolicyName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual ServiceEndpointPolicy TryGet(string serviceEndpointPolicyName, st throw new ArgumentNullException(nameof(serviceEndpointPolicyName)); } - return Get(serviceEndpointPolicyName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, serviceEndpointPolicyName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ServiceEndpointPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual ServiceEndpointPolicy TryGet(string serviceEndpointPolicyName, st /// The name of the service endpoint policy. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string serviceEndpointPolicyName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string serviceEndpointPolicyName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string serviceEndpo throw new ArgumentNullException(nameof(serviceEndpointPolicyName)); } - return await GetAsync(serviceEndpointPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, serviceEndpointPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ServiceEndpointPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string serviceEndpo /// The name of the service endpoint policy. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string serviceEndpointPolicyName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string serviceEndpointPolicyName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string serviceEndpointPolicyName, string expan throw new ArgumentNullException(nameof(serviceEndpointPolicyName)); } - return TryGet(serviceEndpointPolicyName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(serviceEndpointPolicyName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string serviceEndpointPolicyName, string expan /// The name of the service endpoint policy. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string serviceEndpointPolicyName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string serviceEndpointPolicyName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string serviceEndpointPolicyN throw new ArgumentNullException(nameof(serviceEndpointPolicyName)); } - return await TryGetAsync(serviceEndpointPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(serviceEndpointPolicyName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionContainer.cs index ea3a1753bae3b..15afa2cfe66bf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string serviceEndpo } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ServiceEndpointPolicyDefinition(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(st } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ServiceEndpointPolicyDefinition(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(st /// Tries to get details for this resource from the service. /// The name of the service endpoint policy definition name. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual ServiceEndpointPolicyDefinition TryGet(string serviceEndpointPolicyDefinitionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string serviceEndpointPolicyDefinitionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyDefinitionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyDefinitionContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual ServiceEndpointPolicyDefinition TryGet(string serviceEndpointPoli throw new ArgumentNullException(nameof(serviceEndpointPolicyDefinitionName)); } - return Get(serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ServiceEndpointPolicyDefinition(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual ServiceEndpointPolicyDefinition TryGet(string serviceEndpointPoli /// Tries to get details for this resource from the service. /// The name of the service endpoint policy definition name. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string serviceEndpointPolicyDefinitionName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string serviceEndpointPolicyDefinitionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyDefinitionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyDefinitionContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string se throw new ArgumentNullException(nameof(serviceEndpointPolicyDefinitionName)); } - return await GetAsync(serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new ServiceEndpointPolicyDefinition(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string se /// Tries to get details for this resource from the service. /// The name of the service endpoint policy definition name. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string serviceEndpointPolicyDefinitionName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string serviceEndpointPolicyDefinitionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyDefinitionContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string serviceEndpointPolicyDefinitionName, Ca throw new ArgumentNullException(nameof(serviceEndpointPolicyDefinitionName)); } - return TryGet(serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string serviceEndpointPolicyDefinitionName, Ca /// Tries to get details for this resource from the service. /// The name of the service endpoint policy definition name. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string serviceEndpointPolicyDefinitionName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string serviceEndpointPolicyDefinitionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ServiceEndpointPolicyDefinitionContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string serviceEndpointPolicyD throw new ArgumentNullException(nameof(serviceEndpointPolicyDefinitionName)); } - return await TryGetAsync(serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(serviceEndpointPolicyDefinitionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionOperations.cs index 8b51ffbe4c174..8028062ce631e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Ca try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ServiceEndpointPolicyDefinition(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken c try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ServiceEndpointPolicyDefinition(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyOperations.cs index 26f5544023077..71716f4fd6ed0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expan try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new ServiceEndpointPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, Cancell try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new ServiceEndpointPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetContainer.cs index 53c46a7e302ec..78f5720753e15 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string subnetName, string expand = null, Can } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, subnetName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new Subnet(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string subnetName, string e } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, subnetName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new Subnet(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string subnetName, string e /// The name of the subnet. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual Subnet TryGet(string subnetName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string subnetName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("SubnetContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("SubnetContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual Subnet TryGet(string subnetName, string expand = null, Cancellati throw new ArgumentNullException(nameof(subnetName)); } - return Get(subnetName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, subnetName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new Subnet(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual Subnet TryGet(string subnetName, string expand = null, Cancellati /// The name of the subnet. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string subnetName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string subnetName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("SubnetContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("SubnetContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string subnetName, string expand = throw new ArgumentNullException(nameof(subnetName)); } - return await GetAsync(subnetName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, subnetName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new Subnet(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string subnetName, string expand = /// The name of the subnet. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string subnetName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string subnetName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("SubnetContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string subnetName, string expand = null, Cance throw new ArgumentNullException(nameof(subnetName)); } - return TryGet(subnetName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(subnetName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string subnetName, string expand = null, Cance /// The name of the subnet. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string subnetName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string subnetName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("SubnetContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string subnetName, string exp throw new ArgumentNullException(nameof(subnetName)); } - return await TryGetAsync(subnetName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(subnetName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetOperations.cs index 276232de68254..4be4ae59675ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetOperations.cs @@ -57,6 +57,8 @@ public async virtual Task> GetAsync(string expand = null, Cance try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new Subnet(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -76,6 +78,8 @@ public virtual Response Get(string expand = null, CancellationToken canc try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new Subnet(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteContainer.cs index 9f4c02c75229d..0dadff91c843f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string siteName, CancellationT } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, siteName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualApplianceSite(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string siteNa } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, siteName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualApplianceSite(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string siteNa /// Tries to get details for this resource from the service. /// The name of the site. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualApplianceSite TryGet(string siteName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string siteName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualApplianceSiteContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualApplianceSiteContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VirtualApplianceSite TryGet(string siteName, CancellationToken ca throw new ArgumentNullException(nameof(siteName)); } - return Get(siteName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, siteName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualApplianceSite(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VirtualApplianceSite TryGet(string siteName, CancellationToken ca /// Tries to get details for this resource from the service. /// The name of the site. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string siteName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string siteName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualApplianceSiteContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualApplianceSiteContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string siteName, Can throw new ArgumentNullException(nameof(siteName)); } - return await GetAsync(siteName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, siteName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualApplianceSite(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string siteName, Can /// Tries to get details for this resource from the service. /// The name of the site. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string siteName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string siteName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualApplianceSiteContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string siteName, CancellationToken cancellatio throw new ArgumentNullException(nameof(siteName)); } - return TryGet(siteName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(siteName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string siteName, CancellationToken cancellatio /// Tries to get details for this resource from the service. /// The name of the site. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string siteName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string siteName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualApplianceSiteContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string siteName, Cancellation throw new ArgumentNullException(nameof(siteName)); } - return await TryGetAsync(siteName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(siteName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteOperations.cs index bd1815283d5fb..d0dd182ab65db 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationT try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualApplianceSite(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellation try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualApplianceSite(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubContainer.cs index 36defdacd2ede..3a3ea147c6e57 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string virtualHubName, CancellationToken } var response = _restClient.Get(Id.ResourceGroupName, virtualHubName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualHub(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string virtualHubName, } var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualHubName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualHub(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string virtualHubName, /// Tries to get details for this resource from the service. /// The name of the VirtualHub. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualHub TryGet(string virtualHubName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string virtualHubName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualHubContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualHubContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VirtualHub TryGet(string virtualHubName, CancellationToken cancel throw new ArgumentNullException(nameof(virtualHubName)); } - return Get(virtualHubName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, virtualHubName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualHub(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VirtualHub TryGet(string virtualHubName, CancellationToken cancel /// Tries to get details for this resource from the service. /// The name of the VirtualHub. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string virtualHubName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string virtualHubName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualHubContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualHubContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string virtualHubName, Cancell throw new ArgumentNullException(nameof(virtualHubName)); } - return await GetAsync(virtualHubName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualHubName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualHub(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string virtualHubName, Cancell /// Tries to get details for this resource from the service. /// The name of the VirtualHub. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string virtualHubName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string virtualHubName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualHubContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string virtualHubName, CancellationToken cance throw new ArgumentNullException(nameof(virtualHubName)); } - return TryGet(virtualHubName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(virtualHubName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string virtualHubName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the VirtualHub. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string virtualHubName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string virtualHubName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualHubContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string virtualHubName, Cancel throw new ArgumentNullException(nameof(virtualHubName)); } - return await TryGetAsync(virtualHubName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(virtualHubName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubOperations.cs index 30a64d0f4dd4b..9b821a019d2f1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken cance try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualHub(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = de try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualHub(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Container.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Container.cs index 7122da50b5072..84ccb44b18831 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Container.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Container.cs @@ -179,6 +179,8 @@ public virtual Response Get(string routeTableName, Cance } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, routeTableName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualHubRouteTableV2(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string rout } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualHubRouteTableV2(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string rout /// Tries to get details for this resource from the service. /// The name of the VirtualHubRouteTableV2. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualHubRouteTableV2 TryGet(string routeTableName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string routeTableName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualHubRouteTableV2Container.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualHubRouteTableV2Container.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VirtualHubRouteTableV2 TryGet(string routeTableName, Cancellation throw new ArgumentNullException(nameof(routeTableName)); } - return Get(routeTableName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, routeTableName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualHubRouteTableV2(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VirtualHubRouteTableV2 TryGet(string routeTableName, Cancellation /// Tries to get details for this resource from the service. /// The name of the VirtualHubRouteTableV2. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string routeTableName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string routeTableName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualHubRouteTableV2Container.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualHubRouteTableV2Container.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string routeTableN throw new ArgumentNullException(nameof(routeTableName)); } - return await GetAsync(routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualHubRouteTableV2(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string routeTableN /// Tries to get details for this resource from the service. /// The name of the VirtualHubRouteTableV2. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string routeTableName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string routeTableName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualHubRouteTableV2Container.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string routeTableName, CancellationToken cance throw new ArgumentNullException(nameof(routeTableName)); } - return TryGet(routeTableName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(routeTableName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string routeTableName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the VirtualHubRouteTableV2. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string routeTableName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string routeTableName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualHubRouteTableV2Container.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string routeTableName, Cancel throw new ArgumentNullException(nameof(routeTableName)); } - return await TryGetAsync(routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(routeTableName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Operations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Operations.cs index 9a0c8d289401b..b93739d7d557c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Operations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Operations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cancellatio try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualHubRouteTableV2(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellati try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualHubRouteTableV2(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkContainer.cs index 3a00c8d750902..b4cea3d29a16a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string virtualNetworkName, string ex } var response = _restClient.Get(Id.ResourceGroupName, virtualNetworkName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetwork(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string virtualNetwo } var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualNetworkName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetwork(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string virtualNetwo /// The name of the virtual network. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualNetwork TryGet(string virtualNetworkName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string virtualNetworkName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual VirtualNetwork TryGet(string virtualNetworkName, string expand = throw new ArgumentNullException(nameof(virtualNetworkName)); } - return Get(virtualNetworkName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, virtualNetworkName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetwork(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual VirtualNetwork TryGet(string virtualNetworkName, string expand = /// The name of the virtual network. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string virtualNetworkName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string virtualNetworkName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string virtualNetworkName, throw new ArgumentNullException(nameof(virtualNetworkName)); } - return await GetAsync(virtualNetworkName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualNetworkName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetwork(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string virtualNetworkName, /// The name of the virtual network. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string virtualNetworkName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string virtualNetworkName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string virtualNetworkName, string expand = nul throw new ArgumentNullException(nameof(virtualNetworkName)); } - return TryGet(virtualNetworkName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(virtualNetworkName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string virtualNetworkName, string expand = nul /// The name of the virtual network. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string virtualNetworkName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string virtualNetworkName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string virtualNetworkName, st throw new ArgumentNullException(nameof(virtualNetworkName)); } - return await TryGetAsync(virtualNetworkName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(virtualNetworkName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionContainer.cs index 82d379439c09c..6992d5782f9b9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string virtualNetwo } var response = _restClient.Get(Id.ResourceGroupName, virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkGatewayConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(st } var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkGatewayConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(st /// Tries to get details for this resource from the service. /// The name of the virtual network gateway connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualNetworkGatewayConnection TryGet(string virtualNetworkGatewayConnectionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string virtualNetworkGatewayConnectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VirtualNetworkGatewayConnection TryGet(string virtualNetworkGatew throw new ArgumentNullException(nameof(virtualNetworkGatewayConnectionName)); } - return Get(virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkGatewayConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VirtualNetworkGatewayConnection TryGet(string virtualNetworkGatew /// Tries to get details for this resource from the service. /// The name of the virtual network gateway connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string virtualNetworkGatewayConnectionName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string virtualNetworkGatewayConnectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string vi throw new ArgumentNullException(nameof(virtualNetworkGatewayConnectionName)); } - return await GetAsync(virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkGatewayConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string vi /// Tries to get details for this resource from the service. /// The name of the virtual network gateway connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string virtualNetworkGatewayConnectionName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string virtualNetworkGatewayConnectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string virtualNetworkGatewayConnectionName, Ca throw new ArgumentNullException(nameof(virtualNetworkGatewayConnectionName)); } - return TryGet(virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string virtualNetworkGatewayConnectionName, Ca /// Tries to get details for this resource from the service. /// The name of the virtual network gateway connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string virtualNetworkGatewayConnectionName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string virtualNetworkGatewayConnectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string virtualNetworkGatewayC throw new ArgumentNullException(nameof(virtualNetworkGatewayConnectionName)); } - return await TryGetAsync(virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(virtualNetworkGatewayConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionOperations.cs index 25748d20220e8..316c4c34315c9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Ca try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkGatewayConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken c try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkGatewayConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -279,15 +283,22 @@ public virtual VirtualNetworkGatewayConnectionsUpdateTagsOperation StartUpdateTa } /// The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. + /// The virtual network connection shared key value. /// Resource ID. /// The cancellation token to use. - public async virtual Task> SetSharedKeyAsync(string id = null, CancellationToken cancellationToken = default) + /// is null. + public async virtual Task> SetSharedKeyAsync(string value, string id = null, CancellationToken cancellationToken = default) { + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionOperations.SetSharedKey"); scope.Start(); try { - var operation = await StartSetSharedKeyAsync(id, cancellationToken).ConfigureAwait(false); + var operation = await StartSetSharedKeyAsync(value, id, cancellationToken).ConfigureAwait(false); return await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); } catch (Exception e) @@ -298,15 +309,22 @@ public async virtual Task> SetSharedKeyAsync(strin } /// The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. + /// The virtual network connection shared key value. /// Resource ID. /// The cancellation token to use. - public virtual Response SetSharedKey(string id = null, CancellationToken cancellationToken = default) + /// is null. + public virtual Response SetSharedKey(string value, string id = null, CancellationToken cancellationToken = default) { + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionOperations.SetSharedKey"); scope.Start(); try { - var operation = StartSetSharedKey(id, cancellationToken); + var operation = StartSetSharedKey(value, id, cancellationToken); return operation.WaitForCompletion(cancellationToken); } catch (Exception e) @@ -317,16 +335,23 @@ public virtual Response SetSharedKey(string id = null, Canc } /// The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. + /// The virtual network connection shared key value. /// Resource ID. /// The cancellation token to use. - public async virtual Task StartSetSharedKeyAsync(string id = null, CancellationToken cancellationToken = default) + /// is null. + public async virtual Task StartSetSharedKeyAsync(string value, string id = null, CancellationToken cancellationToken = default) { + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionOperations.StartSetSharedKey"); scope.Start(); try { - var response = await _restClient.SetSharedKeyAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, id, cancellationToken).ConfigureAwait(false); - return new VirtualNetworkGatewayConnectionsSetSharedKeyOperation(_clientDiagnostics, Pipeline, _restClient.CreateSetSharedKeyRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, id).Request, response); + var response = await _restClient.SetSharedKeyAsync(Id.ResourceGroupName, Id.Name, value, id, cancellationToken).ConfigureAwait(false); + return new VirtualNetworkGatewayConnectionsSetSharedKeyOperation(_clientDiagnostics, Pipeline, _restClient.CreateSetSharedKeyRequest(Id.ResourceGroupName, Id.Name, value, id).Request, response); } catch (Exception e) { @@ -336,16 +361,23 @@ public async virtual Task } /// The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. + /// The virtual network connection shared key value. /// Resource ID. /// The cancellation token to use. - public virtual VirtualNetworkGatewayConnectionsSetSharedKeyOperation StartSetSharedKey(string id = null, CancellationToken cancellationToken = default) + /// is null. + public virtual VirtualNetworkGatewayConnectionsSetSharedKeyOperation StartSetSharedKey(string value, string id = null, CancellationToken cancellationToken = default) { + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayConnectionOperations.StartSetSharedKey"); scope.Start(); try { - var response = _restClient.SetSharedKey(Id.ResourceGroupName, Id.Parent.Name, Id.Name, id, cancellationToken); - return new VirtualNetworkGatewayConnectionsSetSharedKeyOperation(_clientDiagnostics, Pipeline, _restClient.CreateSetSharedKeyRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, id).Request, response); + var response = _restClient.SetSharedKey(Id.ResourceGroupName, Id.Name, value, id, cancellationToken); + return new VirtualNetworkGatewayConnectionsSetSharedKeyOperation(_clientDiagnostics, Pipeline, _restClient.CreateSetSharedKeyRequest(Id.ResourceGroupName, Id.Name, value, id).Request, response); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayContainer.cs index f663c87e30951..e96daf5913ef8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string virtualNetworkGatewayN } var response = _restClient.Get(Id.ResourceGroupName, virtualNetworkGatewayName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string virtu } var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string virtu /// Tries to get details for this resource from the service. /// The name of the virtual network gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualNetworkGateway TryGet(string virtualNetworkGatewayName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string virtualNetworkGatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VirtualNetworkGateway TryGet(string virtualNetworkGatewayName, Ca throw new ArgumentNullException(nameof(virtualNetworkGatewayName)); } - return Get(virtualNetworkGatewayName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, virtualNetworkGatewayName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VirtualNetworkGateway TryGet(string virtualNetworkGatewayName, Ca /// Tries to get details for this resource from the service. /// The name of the virtual network gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string virtualNetworkGatewayName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string virtualNetworkGatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string virtualNetwo throw new ArgumentNullException(nameof(virtualNetworkGatewayName)); } - return await GetAsync(virtualNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string virtualNetwo /// Tries to get details for this resource from the service. /// The name of the virtual network gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string virtualNetworkGatewayName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string virtualNetworkGatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string virtualNetworkGatewayName, Cancellation throw new ArgumentNullException(nameof(virtualNetworkGatewayName)); } - return TryGet(virtualNetworkGatewayName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(virtualNetworkGatewayName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string virtualNetworkGatewayName, Cancellation /// Tries to get details for this resource from the service. /// The name of the virtual network gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string virtualNetworkGatewayName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string virtualNetworkGatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string virtualNetworkGatewayN throw new ArgumentNullException(nameof(virtualNetworkGatewayName)); } - return await TryGetAsync(virtualNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(virtualNetworkGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleContainer.cs index da62c6856eac8..5475e9074d4c1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string natRuleName, Ca } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, natRuleName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkGatewayNatRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(strin } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkGatewayNatRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(strin /// Tries to get details for this resource from the service. /// The name of the nat rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualNetworkGatewayNatRule TryGet(string natRuleName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string natRuleName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayNatRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayNatRuleContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VirtualNetworkGatewayNatRule TryGet(string natRuleName, Cancellat throw new ArgumentNullException(nameof(natRuleName)); } - return Get(natRuleName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, natRuleName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkGatewayNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VirtualNetworkGatewayNatRule TryGet(string natRuleName, Cancellat /// Tries to get details for this resource from the service. /// The name of the nat rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string natRuleName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string natRuleName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayNatRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayNatRuleContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string natRu throw new ArgumentNullException(nameof(natRuleName)); } - return await GetAsync(natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkGatewayNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string natRu /// Tries to get details for this resource from the service. /// The name of the nat rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string natRuleName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string natRuleName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayNatRuleContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string natRuleName, CancellationToken cancella throw new ArgumentNullException(nameof(natRuleName)); } - return TryGet(natRuleName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(natRuleName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string natRuleName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of the nat rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string natRuleName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string natRuleName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayNatRuleContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string natRuleName, Cancellat throw new ArgumentNullException(nameof(natRuleName)); } - return await TryGetAsync(natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleOperations.cs index 3c059cb00eabc..9c84383c964a7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cance try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkGatewayNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken canc try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkGatewayNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayOperations.cs index 6e60d2fbafef7..ab11db0dcab3a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(Cancellation try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -71,6 +73,8 @@ public virtual Response Get(CancellationToken cancellatio try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -974,14 +978,21 @@ public virtual VirtualNetworkGatewaysGetLearnedRoutesOperation StartGetLearnedRo } /// This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. + /// The IP address of the peer. /// The cancellation token to use. - public async virtual Task> GetAdvertisedRoutesAsync(CancellationToken cancellationToken = default) + /// is null. + public async virtual Task> GetAdvertisedRoutesAsync(string peer, CancellationToken cancellationToken = default) { + if (peer == null) + { + throw new ArgumentNullException(nameof(peer)); + } + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayOperations.GetAdvertisedRoutes"); scope.Start(); try { - var operation = await StartGetAdvertisedRoutesAsync(cancellationToken).ConfigureAwait(false); + var operation = await StartGetAdvertisedRoutesAsync(peer, cancellationToken).ConfigureAwait(false); return await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); } catch (Exception e) @@ -992,14 +1003,21 @@ public async virtual Task> GetAdvertisedRoutesA } /// This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. + /// The IP address of the peer. /// The cancellation token to use. - public virtual Response GetAdvertisedRoutes(CancellationToken cancellationToken = default) + /// is null. + public virtual Response GetAdvertisedRoutes(string peer, CancellationToken cancellationToken = default) { + if (peer == null) + { + throw new ArgumentNullException(nameof(peer)); + } + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayOperations.GetAdvertisedRoutes"); scope.Start(); try { - var operation = StartGetAdvertisedRoutes(cancellationToken); + var operation = StartGetAdvertisedRoutes(peer, cancellationToken); return operation.WaitForCompletion(cancellationToken); } catch (Exception e) @@ -1010,15 +1028,22 @@ public virtual Response GetAdvertisedRoutes(Cancellation } /// This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. + /// The IP address of the peer. /// The cancellation token to use. - public async virtual Task StartGetAdvertisedRoutesAsync(CancellationToken cancellationToken = default) + /// is null. + public async virtual Task StartGetAdvertisedRoutesAsync(string peer, CancellationToken cancellationToken = default) { + if (peer == null) + { + throw new ArgumentNullException(nameof(peer)); + } + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayOperations.StartGetAdvertisedRoutes"); scope.Start(); try { - var response = await _restClient.GetAdvertisedRoutesAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return new VirtualNetworkGatewaysGetAdvertisedRoutesOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetAdvertisedRoutesRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response); + var response = await _restClient.GetAdvertisedRoutesAsync(Id.ResourceGroupName, Id.Name, peer, cancellationToken).ConfigureAwait(false); + return new VirtualNetworkGatewaysGetAdvertisedRoutesOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetAdvertisedRoutesRequest(Id.ResourceGroupName, Id.Name, peer).Request, response); } catch (Exception e) { @@ -1028,15 +1053,22 @@ public async virtual Task St } /// This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. + /// The IP address of the peer. /// The cancellation token to use. - public virtual VirtualNetworkGatewaysGetAdvertisedRoutesOperation StartGetAdvertisedRoutes(CancellationToken cancellationToken = default) + /// is null. + public virtual VirtualNetworkGatewaysGetAdvertisedRoutesOperation StartGetAdvertisedRoutes(string peer, CancellationToken cancellationToken = default) { + if (peer == null) + { + throw new ArgumentNullException(nameof(peer)); + } + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkGatewayOperations.StartGetAdvertisedRoutes"); scope.Start(); try { - var response = _restClient.GetAdvertisedRoutes(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return new VirtualNetworkGatewaysGetAdvertisedRoutesOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetAdvertisedRoutesRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response); + var response = _restClient.GetAdvertisedRoutes(Id.ResourceGroupName, Id.Name, peer, cancellationToken); + return new VirtualNetworkGatewaysGetAdvertisedRoutesOperation(_clientDiagnostics, Pipeline, _restClient.CreateGetAdvertisedRoutesRequest(Id.ResourceGroupName, Id.Name, peer).Request, response); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkOperations.cs index 5d4cf8e0410a2..5db4d53ac6b93 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkOperations.cs @@ -54,6 +54,8 @@ public async virtual Task> GetAsync(string expand = nul try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetwork(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -73,6 +75,8 @@ public virtual Response Get(string expand = null, CancellationTo try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetwork(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringContainer.cs index 32426d5ccbf35..8274bb12f0649 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringContainer.cs @@ -183,6 +183,8 @@ public virtual Response Get(string virtualNetworkPeeringN } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, virtualNetworkPeeringName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkPeering(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -207,6 +209,8 @@ public async virtual Task> GetAsync(string virtu } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, virtualNetworkPeeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkPeering(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -219,9 +223,9 @@ public async virtual Task> GetAsync(string virtu /// Tries to get details for this resource from the service. /// The name of the virtual network peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualNetworkPeering TryGet(string virtualNetworkPeeringName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string virtualNetworkPeeringName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkPeeringContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkPeeringContainer.GetIfExists"); scope.Start(); try { @@ -230,11 +234,10 @@ public virtual VirtualNetworkPeering TryGet(string virtualNetworkPeeringName, Ca throw new ArgumentNullException(nameof(virtualNetworkPeeringName)); } - return Get(virtualNetworkPeeringName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, virtualNetworkPeeringName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual VirtualNetworkPeering TryGet(string virtualNetworkPeeringName, Ca /// Tries to get details for this resource from the service. /// The name of the virtual network peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string virtualNetworkPeeringName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string virtualNetworkPeeringName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkPeeringContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkPeeringContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string virtualNetwo throw new ArgumentNullException(nameof(virtualNetworkPeeringName)); } - return await GetAsync(virtualNetworkPeeringName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, virtualNetworkPeeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -273,7 +275,7 @@ public async virtual Task TryGetAsync(string virtualNetwo /// Tries to get details for this resource from the service. /// The name of the virtual network peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string virtualNetworkPeeringName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string virtualNetworkPeeringName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkPeeringContainer.CheckIfExists"); scope.Start(); @@ -284,7 +286,8 @@ public virtual bool CheckIfExists(string virtualNetworkPeeringName, Cancellation throw new ArgumentNullException(nameof(virtualNetworkPeeringName)); } - return TryGet(virtualNetworkPeeringName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(virtualNetworkPeeringName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -296,7 +299,7 @@ public virtual bool CheckIfExists(string virtualNetworkPeeringName, Cancellation /// Tries to get details for this resource from the service. /// The name of the virtual network peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string virtualNetworkPeeringName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string virtualNetworkPeeringName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkPeeringContainer.CheckIfExists"); scope.Start(); @@ -307,7 +310,8 @@ public async virtual Task CheckIfExistsAsync(string virtualNetworkPeeringN throw new ArgumentNullException(nameof(virtualNetworkPeeringName)); } - return await TryGetAsync(virtualNetworkPeeringName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(virtualNetworkPeeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringOperations.cs index 926788cee9963..029a5c591f4d9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cancellation try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellatio try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapContainer.cs index 09f5307fff3b3..690fbd6327225 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string tapName, CancellationToken } var response = _restClient.Get(Id.ResourceGroupName, tapName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkTap(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string tapName, } var response = await _restClient.GetAsync(Id.ResourceGroupName, tapName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkTap(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string tapName, /// Tries to get details for this resource from the service. /// The name of virtual network tap. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualNetworkTap TryGet(string tapName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string tapName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkTapContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkTapContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VirtualNetworkTap TryGet(string tapName, CancellationToken cancel throw new ArgumentNullException(nameof(tapName)); } - return Get(tapName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, tapName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkTap(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VirtualNetworkTap TryGet(string tapName, CancellationToken cancel /// Tries to get details for this resource from the service. /// The name of virtual network tap. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string tapName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string tapName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualNetworkTapContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualNetworkTapContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string tapName, Cancell throw new ArgumentNullException(nameof(tapName)); } - return await GetAsync(tapName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, tapName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualNetworkTap(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string tapName, Cancell /// Tries to get details for this resource from the service. /// The name of virtual network tap. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string tapName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string tapName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkTapContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string tapName, CancellationToken cancellation throw new ArgumentNullException(nameof(tapName)); } - return TryGet(tapName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(tapName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string tapName, CancellationToken cancellation /// Tries to get details for this resource from the service. /// The name of virtual network tap. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string tapName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string tapName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualNetworkTapContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string tapName, CancellationT throw new ArgumentNullException(nameof(tapName)); } - return await TryGetAsync(tapName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(tapName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapOperations.cs index e92997e44785b..0235e72673d84 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToke try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualNetworkTap(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationTok try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualNetworkTap(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterContainer.cs index 9125bd173f649..1b0d8bfc73a0a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterContainer.cs @@ -180,6 +180,8 @@ public virtual Response Get(string virtualRouterName, string expa } var response = _restClient.Get(Id.ResourceGroupName, virtualRouterName, expand, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualRouter(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -205,6 +207,8 @@ public async virtual Task> GetAsync(string virtualRouter } var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualRouterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualRouter(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -218,9 +222,9 @@ public async virtual Task> GetAsync(string virtualRouter /// The name of the Virtual Router. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualRouter TryGet(string virtualRouterName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string virtualRouterName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualRouterContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualRouterContainer.GetIfExists"); scope.Start(); try { @@ -229,11 +233,10 @@ public virtual VirtualRouter TryGet(string virtualRouterName, string expand = nu throw new ArgumentNullException(nameof(virtualRouterName)); } - return Get(virtualRouterName, expand, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, virtualRouterName, expand, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualRouter(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -246,9 +249,9 @@ public virtual VirtualRouter TryGet(string virtualRouterName, string expand = nu /// The name of the Virtual Router. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string virtualRouterName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string virtualRouterName, string expand = null, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualRouterContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualRouterContainer.GetIfExists"); scope.Start(); try { @@ -257,11 +260,10 @@ public async virtual Task TryGetAsync(string virtualRouterName, s throw new ArgumentNullException(nameof(virtualRouterName)); } - return await GetAsync(virtualRouterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualRouterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualRouter(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +276,7 @@ public async virtual Task TryGetAsync(string virtualRouterName, s /// The name of the Virtual Router. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string virtualRouterName, string expand = null, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string virtualRouterName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualRouterContainer.CheckIfExists"); scope.Start(); @@ -285,7 +287,8 @@ public virtual bool CheckIfExists(string virtualRouterName, string expand = null throw new ArgumentNullException(nameof(virtualRouterName)); } - return TryGet(virtualRouterName, expand, cancellationToken: cancellationToken) != null; + var response = GetIfExists(virtualRouterName, expand, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -298,7 +301,7 @@ public virtual bool CheckIfExists(string virtualRouterName, string expand = null /// The name of the Virtual Router. /// Expands referenced resources. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string virtualRouterName, string expand = null, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string virtualRouterName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualRouterContainer.CheckIfExists"); scope.Start(); @@ -309,7 +312,8 @@ public async virtual Task CheckIfExistsAsync(string virtualRouterName, str throw new ArgumentNullException(nameof(virtualRouterName)); } - return await TryGetAsync(virtualRouterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(virtualRouterName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterOperations.cs index 2790c8784b184..e2e28a90c3698 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterOperations.cs @@ -53,6 +53,8 @@ public async virtual Task> GetAsync(string expand = null try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualRouter(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -72,6 +74,8 @@ public virtual Response Get(string expand = null, CancellationTok try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, expand, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualRouter(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringContainer.cs index 3270de98c2b0c..74560f0b664be 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string peeringName, Cancellati } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualRouterPeering(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string peerin } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualRouterPeering(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string peerin /// Tries to get details for this resource from the service. /// The name of the Virtual Router Peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualRouterPeering TryGet(string peeringName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string peeringName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualRouterPeeringContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualRouterPeeringContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VirtualRouterPeering TryGet(string peeringName, CancellationToken throw new ArgumentNullException(nameof(peeringName)); } - return Get(peeringName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualRouterPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VirtualRouterPeering TryGet(string peeringName, CancellationToken /// Tries to get details for this resource from the service. /// The name of the Virtual Router Peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string peeringName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string peeringName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualRouterPeeringContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualRouterPeeringContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string peeringName, throw new ArgumentNullException(nameof(peeringName)); } - return await GetAsync(peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualRouterPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string peeringName, /// Tries to get details for this resource from the service. /// The name of the Virtual Router Peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string peeringName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string peeringName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualRouterPeeringContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string peeringName, CancellationToken cancella throw new ArgumentNullException(nameof(peeringName)); } - return TryGet(peeringName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(peeringName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string peeringName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of the Virtual Router Peering. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string peeringName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string peeringName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualRouterPeeringContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string peeringName, Cancellat throw new ArgumentNullException(nameof(peeringName)); } - return await TryGetAsync(peeringName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(peeringName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringOperations.cs index 816daef1dab45..90fbaebfd4ee2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationT try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualRouterPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellation try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualRouterPeering(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWANContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWANContainer.cs index 474bc2b0225ca..be1017f03b245 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWANContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWANContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string virtualWANName, CancellationToken } var response = _restClient.Get(Id.ResourceGroupName, virtualWANName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualWAN(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string virtualWANName, } var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualWANName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualWAN(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string virtualWANName, /// Tries to get details for this resource from the service. /// The name of the VirtualWAN being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VirtualWAN TryGet(string virtualWANName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string virtualWANName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualWANContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualWANContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VirtualWAN TryGet(string virtualWANName, CancellationToken cancel throw new ArgumentNullException(nameof(virtualWANName)); } - return Get(virtualWANName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, virtualWANName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualWAN(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VirtualWAN TryGet(string virtualWANName, CancellationToken cancel /// Tries to get details for this resource from the service. /// The name of the VirtualWAN being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string virtualWANName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string virtualWANName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VirtualWANContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VirtualWANContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string virtualWANName, Cancell throw new ArgumentNullException(nameof(virtualWANName)); } - return await GetAsync(virtualWANName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, virtualWANName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VirtualWAN(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string virtualWANName, Cancell /// Tries to get details for this resource from the service. /// The name of the VirtualWAN being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string virtualWANName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string virtualWANName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualWANContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string virtualWANName, CancellationToken cance throw new ArgumentNullException(nameof(virtualWANName)); } - return TryGet(virtualWANName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(virtualWANName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string virtualWANName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the VirtualWAN being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string virtualWANName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string virtualWANName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VirtualWANContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string virtualWANName, Cancel throw new ArgumentNullException(nameof(virtualWANName)); } - return await TryGetAsync(virtualWANName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(virtualWANName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWANOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWANOperations.cs index 4620d7ade12da..5cd1f93d90bd3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWANOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWANOperations.cs @@ -60,6 +60,8 @@ public async virtual Task> GetAsync(CancellationToken cance try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VirtualWAN(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -78,6 +80,8 @@ public virtual Response Get(CancellationToken cancellationToken = de try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VirtualWAN(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionContainer.cs index 169498a67399b..0d2d48b0a0513 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string connectionName, CancellationTo } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string connectionNam } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnConnection(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string connectionNam /// Tries to get details for this resource from the service. /// The name of the vpn connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VpnConnection TryGet(string connectionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnConnectionContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VpnConnection TryGet(string connectionName, CancellationToken can throw new ArgumentNullException(nameof(connectionName)); } - return Get(connectionName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VpnConnection TryGet(string connectionName, CancellationToken can /// Tries to get details for this resource from the service. /// The name of the vpn connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnConnectionContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnConnectionContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string connectionName, Canc throw new ArgumentNullException(nameof(connectionName)); } - return await GetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string connectionName, Canc /// Tries to get details for this resource from the service. /// The name of the vpn connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string connectionName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnConnectionContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance throw new ArgumentNullException(nameof(connectionName)); } - return TryGet(connectionName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(connectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string connectionName, CancellationToken cance /// Tries to get details for this resource from the service. /// The name of the vpn connection. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string connectionName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnConnectionContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string connectionName, Cancel throw new ArgumentNullException(nameof(connectionName)); } - return await TryGetAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionOperations.cs index e77146d213956..62a94cb7848bd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionOperations.cs @@ -57,6 +57,8 @@ public async virtual Task> GetAsync(CancellationToken ca try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -75,6 +77,8 @@ public virtual Response Get(CancellationToken cancellationToken = try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnConnection(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayContainer.cs index f143d7a0b63be..26afce08b0b0a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string gatewayName, CancellationToken ca } var response = _restClient.Get(Id.ResourceGroupName, gatewayName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string gatewayName, Can } var response = await _restClient.GetAsync(Id.ResourceGroupName, gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnGateway(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string gatewayName, Can /// Tries to get details for this resource from the service. /// The name of the gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VpnGateway TryGet(string gatewayName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string gatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnGatewayContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VpnGateway TryGet(string gatewayName, CancellationToken cancellat throw new ArgumentNullException(nameof(gatewayName)); } - return Get(gatewayName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, gatewayName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VpnGateway TryGet(string gatewayName, CancellationToken cancellat /// Tries to get details for this resource from the service. /// The name of the gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string gatewayName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string gatewayName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnGatewayContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnGatewayContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string gatewayName, Cancellati throw new ArgumentNullException(nameof(gatewayName)); } - return await GetAsync(gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string gatewayName, Cancellati /// Tries to get details for this resource from the service. /// The name of the gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string gatewayName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string gatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnGatewayContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string gatewayName, CancellationToken cancella throw new ArgumentNullException(nameof(gatewayName)); } - return TryGet(gatewayName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(gatewayName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string gatewayName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of the gateway. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string gatewayName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string gatewayName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnGatewayContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string gatewayName, Cancellat throw new ArgumentNullException(nameof(gatewayName)); } - return await TryGetAsync(gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(gatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleContainer.cs index 21c497987d1de..1caf5004e1ab5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string natRuleName, CancellationT } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, natRuleName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnGatewayNatRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string natRuleNa } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnGatewayNatRule(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string natRuleNa /// Tries to get details for this resource from the service. /// The name of the nat rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VpnGatewayNatRule TryGet(string natRuleName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string natRuleName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnGatewayNatRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnGatewayNatRuleContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VpnGatewayNatRule TryGet(string natRuleName, CancellationToken ca throw new ArgumentNullException(nameof(natRuleName)); } - return Get(natRuleName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, Id.Name, natRuleName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnGatewayNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VpnGatewayNatRule TryGet(string natRuleName, CancellationToken ca /// Tries to get details for this resource from the service. /// The name of the nat rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string natRuleName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string natRuleName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnGatewayNatRuleContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnGatewayNatRuleContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string natRuleName, Can throw new ArgumentNullException(nameof(natRuleName)); } - return await GetAsync(natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnGatewayNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string natRuleName, Can /// Tries to get details for this resource from the service. /// The name of the nat rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string natRuleName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string natRuleName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnGatewayNatRuleContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string natRuleName, CancellationToken cancella throw new ArgumentNullException(nameof(natRuleName)); } - return TryGet(natRuleName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(natRuleName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string natRuleName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of the nat rule. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string natRuleName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string natRuleName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnGatewayNatRuleContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string natRuleName, Cancellat throw new ArgumentNullException(nameof(natRuleName)); } - return await TryGetAsync(natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(natRuleName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleOperations.cs index aa4cd197bda22..4e2dd2b82eba0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToke try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnGatewayNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationTok try { var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnGatewayNatRule(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayOperations.cs index cb4a22d648b46..9128e4aab81f6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(CancellationToken cance try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellationToken = de try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnGateway(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationContainer.cs index 76c1f23d56e1d..72cbc30fce5f0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string vpnServerConfiguratio } var response = _restClient.Get(Id.ResourceGroupName, vpnServerConfigurationName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnServerConfiguration(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string vpnS } var response = await _restClient.GetAsync(Id.ResourceGroupName, vpnServerConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnServerConfiguration(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string vpnS /// Tries to get details for this resource from the service. /// The name of the VpnServerConfiguration being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VpnServerConfiguration TryGet(string vpnServerConfigurationName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string vpnServerConfigurationName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnServerConfigurationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnServerConfigurationContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VpnServerConfiguration TryGet(string vpnServerConfigurationName, throw new ArgumentNullException(nameof(vpnServerConfigurationName)); } - return Get(vpnServerConfigurationName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, vpnServerConfigurationName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnServerConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VpnServerConfiguration TryGet(string vpnServerConfigurationName, /// Tries to get details for this resource from the service. /// The name of the VpnServerConfiguration being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string vpnServerConfigurationName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string vpnServerConfigurationName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnServerConfigurationContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnServerConfigurationContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string vpnServerCo throw new ArgumentNullException(nameof(vpnServerConfigurationName)); } - return await GetAsync(vpnServerConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, vpnServerConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnServerConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string vpnServerCo /// Tries to get details for this resource from the service. /// The name of the VpnServerConfiguration being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string vpnServerConfigurationName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string vpnServerConfigurationName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnServerConfigurationContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string vpnServerConfigurationName, Cancellatio throw new ArgumentNullException(nameof(vpnServerConfigurationName)); } - return TryGet(vpnServerConfigurationName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(vpnServerConfigurationName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string vpnServerConfigurationName, Cancellatio /// Tries to get details for this resource from the service. /// The name of the VpnServerConfiguration being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string vpnServerConfigurationName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string vpnServerConfigurationName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnServerConfigurationContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string vpnServerConfiguration throw new ArgumentNullException(nameof(vpnServerConfigurationName)); } - return await TryGetAsync(vpnServerConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(vpnServerConfigurationName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationOperations.cs index 0f8fd1071d2e4..dd07ca078d022 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cancellatio try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnServerConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken cancellati try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnServerConfiguration(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteContainer.cs index c3ca10206b7e5..6f44305ce7b84 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string vpnSiteName, CancellationToken cance } var response = _restClient.Get(Id.ResourceGroupName, vpnSiteName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnSite(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(string vpnSiteName, Cancel } var response = await _restClient.GetAsync(Id.ResourceGroupName, vpnSiteName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnSite(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(string vpnSiteName, Cancel /// Tries to get details for this resource from the service. /// The name of the VpnSite being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual VpnSite TryGet(string vpnSiteName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string vpnSiteName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnSiteContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnSiteContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual VpnSite TryGet(string vpnSiteName, CancellationToken cancellation throw new ArgumentNullException(nameof(vpnSiteName)); } - return Get(vpnSiteName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, vpnSiteName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnSite(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual VpnSite TryGet(string vpnSiteName, CancellationToken cancellation /// Tries to get details for this resource from the service. /// The name of the VpnSite being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string vpnSiteName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string vpnSiteName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("VpnSiteContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("VpnSiteContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string vpnSiteName, CancellationT throw new ArgumentNullException(nameof(vpnSiteName)); } - return await GetAsync(vpnSiteName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, vpnSiteName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new VpnSite(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string vpnSiteName, CancellationT /// Tries to get details for this resource from the service. /// The name of the VpnSite being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string vpnSiteName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string vpnSiteName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnSiteContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string vpnSiteName, CancellationToken cancella throw new ArgumentNullException(nameof(vpnSiteName)); } - return TryGet(vpnSiteName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(vpnSiteName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string vpnSiteName, CancellationToken cancella /// Tries to get details for this resource from the service. /// The name of the VpnSite being retrieved. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string vpnSiteName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string vpnSiteName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("VpnSiteContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string vpnSiteName, Cancellat throw new ArgumentNullException(nameof(vpnSiteName)); } - return await TryGetAsync(vpnSiteName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(vpnSiteName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteOperations.cs index 59aef10a62b45..623e0f6dedeae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteOperations.cs @@ -55,6 +55,8 @@ public async virtual Task> GetAsync(CancellationToken cancella try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new VpnSite(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -73,6 +75,8 @@ public virtual Response Get(CancellationToken cancellationToken = defau try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new VpnSite(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyContainer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyContainer.cs index 3c957d8da0104..0f3daf1e9b8c7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyContainer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyContainer.cs @@ -179,6 +179,8 @@ public virtual Response Get(string policyName, Can } var response = _restClient.Get(Id.ResourceGroupName, policyName, cancellationToken: cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new WebApplicationFirewallPolicy(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -203,6 +205,8 @@ public async virtual Task> GetAsync(strin } var response = await _restClient.GetAsync(Id.ResourceGroupName, policyName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new WebApplicationFirewallPolicy(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -215,9 +219,9 @@ public async virtual Task> GetAsync(strin /// Tries to get details for this resource from the service. /// The name of the policy. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual WebApplicationFirewallPolicy TryGet(string policyName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string policyName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("WebApplicationFirewallPolicyContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("WebApplicationFirewallPolicyContainer.GetIfExists"); scope.Start(); try { @@ -226,11 +230,10 @@ public virtual WebApplicationFirewallPolicy TryGet(string policyName, Cancellati throw new ArgumentNullException(nameof(policyName)); } - return Get(policyName, cancellationToken: cancellationToken).Value; - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = _restClient.Get(Id.ResourceGroupName, policyName, cancellationToken: cancellationToken); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new WebApplicationFirewallPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -242,9 +245,9 @@ public virtual WebApplicationFirewallPolicy TryGet(string policyName, Cancellati /// Tries to get details for this resource from the service. /// The name of the policy. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task TryGetAsync(string policyName, CancellationToken cancellationToken = default) + public async virtual Task> GetIfExistsAsync(string policyName, CancellationToken cancellationToken = default) { - using var scope = _clientDiagnostics.CreateScope("WebApplicationFirewallPolicyContainer.TryGet"); + using var scope = _clientDiagnostics.CreateScope("WebApplicationFirewallPolicyContainer.GetIfExists"); scope.Start(); try { @@ -253,11 +256,10 @@ public async virtual Task TryGetAsync(string polic throw new ArgumentNullException(nameof(policyName)); } - return await GetAsync(policyName, cancellationToken: cancellationToken).ConfigureAwait(false); - } - catch (RequestFailedException e) when (e.Status == 404) - { - return null; + var response = await _restClient.GetAsync(Id.ResourceGroupName, policyName, cancellationToken: cancellationToken).ConfigureAwait(false); + return response.Value == null + ? Response.FromValue(null, response.GetRawResponse()) + : Response.FromValue(new WebApplicationFirewallPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -269,7 +271,7 @@ public async virtual Task TryGetAsync(string polic /// Tries to get details for this resource from the service. /// The name of the policy. /// A token to allow the caller to cancel the call to the service. The default value is . - public virtual bool CheckIfExists(string policyName, CancellationToken cancellationToken = default) + public virtual Response CheckIfExists(string policyName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("WebApplicationFirewallPolicyContainer.CheckIfExists"); scope.Start(); @@ -280,7 +282,8 @@ public virtual bool CheckIfExists(string policyName, CancellationToken cancellat throw new ArgumentNullException(nameof(policyName)); } - return TryGet(policyName, cancellationToken: cancellationToken) != null; + var response = GetIfExists(policyName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { @@ -292,7 +295,7 @@ public virtual bool CheckIfExists(string policyName, CancellationToken cancellat /// Tries to get details for this resource from the service. /// The name of the policy. /// A token to allow the caller to cancel the call to the service. The default value is . - public async virtual Task CheckIfExistsAsync(string policyName, CancellationToken cancellationToken = default) + public async virtual Task> CheckIfExistsAsync(string policyName, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("WebApplicationFirewallPolicyContainer.CheckIfExists"); scope.Start(); @@ -303,7 +306,8 @@ public async virtual Task CheckIfExistsAsync(string policyName, Cancellati throw new ArgumentNullException(nameof(policyName)); } - return await TryGetAsync(policyName, cancellationToken: cancellationToken).ConfigureAwait(false) != null; + var response = await GetIfExistsAsync(policyName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyOperations.cs index 60e3328ede767..97d66336c51d0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyOperations.cs @@ -52,6 +52,8 @@ public async virtual Task> GetAsync(Cance try { var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new WebApplicationFirewallPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -70,6 +72,8 @@ public virtual Response Get(CancellationToken canc try { var response = _restClient.Get(Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new WebApplicationFirewallPolicy(this, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/FlowLogTests.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/FlowLogTests.cs index b678f44b0c3cc..534b0ce46bdbe 100644 --- a/sdk/network/Azure.ResourceManager.Network/tests/Tests/FlowLogTests.cs +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/FlowLogTests.cs @@ -103,8 +103,7 @@ public async Task FlowLogApiTest() NetworkWatchersSetFlowLogConfigurationOperation configureFlowLog1Operation = await networkWatcherContainer.Get(networkWatcherName).Value.StartSetFlowLogConfigurationAsync(configParameters); await configureFlowLog1Operation.WaitForCompletionAsync();; - //FlowLogStatusParameters flowLogParameters = new FlowLogStatusParameters(getNsgResponse.Value.Id); No need, auto expand - NetworkWatchersGetFlowLogStatusOperation queryFlowLogStatus1Operation = await networkWatcherContainer.Get(networkWatcherName).Value.StartGetFlowLogStatusAsync(); + NetworkWatchersGetFlowLogStatusOperation queryFlowLogStatus1Operation = await networkWatcherContainer.Get(networkWatcherName).Value.StartGetFlowLogStatusAsync(getNsgResponse.Value.Id); Response queryFlowLogStatus1 = await queryFlowLogStatus1Operation.WaitForCompletionAsync();; //check both flowlog and TA config and enabled status Assert.AreEqual(queryFlowLogStatus1.Value.TargetResourceId, configParameters.TargetResourceId); @@ -125,7 +124,7 @@ public async Task FlowLogApiTest() NetworkWatchersSetFlowLogConfigurationOperation configureFlowLog2Operation = await networkWatcherContainer.Get(networkWatcherName).Value.StartSetFlowLogConfigurationAsync(configParameters); await configureFlowLog2Operation.WaitForCompletionAsync();; - NetworkWatchersGetFlowLogStatusOperation queryFlowLogStatus2Operation = await networkWatcherContainer.Get(networkWatcherName).Value.StartGetFlowLogStatusAsync(); + NetworkWatchersGetFlowLogStatusOperation queryFlowLogStatus2Operation = await networkWatcherContainer.Get(networkWatcherName).Value.StartGetFlowLogStatusAsync(getNsgResponse.Value.Id); Response queryFlowLogStatus2 = await queryFlowLogStatus2Operation.WaitForCompletionAsync();; //check TA disabled and ensure flowlog config is unchanged @@ -139,7 +138,7 @@ public async Task FlowLogApiTest() NetworkWatchersSetFlowLogConfigurationOperation configureFlowLog3Operation = await networkWatcherContainer.Get(networkWatcherName).Value.StartSetFlowLogConfigurationAsync(configParameters); await configureFlowLog3Operation.WaitForCompletionAsync();; - NetworkWatchersGetFlowLogStatusOperation queryFlowLogStatus3Operation = await networkWatcherContainer.Get(networkWatcherName).Value.StartGetFlowLogStatusAsync(); + NetworkWatchersGetFlowLogStatusOperation queryFlowLogStatus3Operation = await networkWatcherContainer.Get(networkWatcherName).Value.StartGetFlowLogStatusAsync(getNsgResponse.Value.Id); Response queryFlowLogStatus3 = await queryFlowLogStatus3Operation.WaitForCompletionAsync();; //check both flowlog and TA disabled diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/GatewayOperationsTests.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/GatewayOperationsTests.cs index d65592d58db23..7ddb965f2bfe5 100644 --- a/sdk/network/Azure.ResourceManager.Network/tests/Tests/GatewayOperationsTests.cs +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/GatewayOperationsTests.cs @@ -1339,7 +1339,7 @@ await Task.Factory.StartNew(async() => VirtualNetworkGatewaysGetLearnedRoutesOperation learnedRoutesOperation = await virtualNetworkGatewayContainer.Get(gw1Name).Value.StartGetLearnedRoutesAsync(); Response learnedRoutes = await learnedRoutesOperation.WaitForCompletionAsync();; Assert.True(learnedRoutes.Value.Value.Count() > 0, "At least one route should be learned from gw2"); - VirtualNetworkGatewaysGetAdvertisedRoutesOperation advertisedRoutesOperation = await virtualNetworkGatewayContainer.Get(gw1Name).Value.StartGetAdvertisedRoutesAsync(); + VirtualNetworkGatewaysGetAdvertisedRoutesOperation advertisedRoutesOperation = await virtualNetworkGatewayContainer.Get(gw1Name).Value.StartGetAdvertisedRoutesAsync(gw2IpResponse.Value.Data.IpAddress); Response advertisedRoutes = await advertisedRoutesOperation.WaitForCompletionAsync();; Assert.True(learnedRoutes.Value.Value.Count() > 0, "At least one route should be advertised to gw2"); VirtualNetworkGatewaysGetBgpPeerStatusOperation gw1PeersOperation = await virtualNetworkGatewayContainer.Get(gw1Name).Value.StartGetBgpPeerStatusAsync(); diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/TroubleshootTests.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/TroubleshootTests.cs index 0ebc7f4eb6ad0..fa43a1fb50833 100644 --- a/sdk/network/Azure.ResourceManager.Network/tests/Tests/TroubleshootTests.cs +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/TroubleshootTests.cs @@ -110,10 +110,9 @@ public async Task TroubleshootApiTest() var networkWatcherContainer = GetNetworkWatcherContainer("NetworkWatcherRG"); NetworkWatchersGetTroubleshootingOperation troubleshootOperation = await networkWatcherContainer.Get("NetworkWatcher_westus2").Value.StartGetTroubleshootingAsync(parameters); await troubleshootOperation.WaitForCompletionAsync();; - //QueryTroubleshootingParameters qParameters = new QueryTroubleshootingParameters(getVirtualNetworkGatewayResponse.Value.Id); //Query last troubleshoot - NetworkWatchersGetTroubleshootingResultOperation queryTroubleshootOperation = await networkWatcherContainer.Get("NetworkWatcher_westus2").Value.StartGetTroubleshootingResultAsync(); + NetworkWatchersGetTroubleshootingResultOperation queryTroubleshootOperation = await networkWatcherContainer.Get("NetworkWatcher_westus2").Value.StartGetTroubleshootingResultAsync(getVirtualNetworkGatewayResponse.Value.Id); await queryTroubleshootOperation.WaitForCompletionAsync();; //TODO: make verification once fixed for troubleshoot API deployed } diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/ViewNsgRuleTests.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/ViewNsgRuleTests.cs index a7fc67e34b812..92421e7a72b42 100644 --- a/sdk/network/Azure.ResourceManager.Network/tests/Tests/ViewNsgRuleTests.cs +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/ViewNsgRuleTests.cs @@ -95,8 +95,7 @@ await CreateVm( Response networkSecurityGroup = await createOrUpdateOperation.WaitForCompletionAsync();; //Get view security group rules - //SecurityGroupViewParameters sgvProperties = new SecurityGroupViewParameters(getVm.Value.Id); - NetworkWatchersGetVMSecurityRulesOperation viewNSGRulesOperation = await GetNetworkWatcherContainer("NetworkWatcherRG").Get("NetworkWatcher_westus2").Value.StartGetVMSecurityRulesAsync(); + NetworkWatchersGetVMSecurityRulesOperation viewNSGRulesOperation = await GetNetworkWatcherContainer("NetworkWatcherRG").Get("NetworkWatcher_westus2").Value.StartGetVMSecurityRulesAsync(getVm.Value.Id); Response viewNSGRules = await viewNSGRulesOperation.WaitForCompletionAsync();; //Verify effective security rule defined earlier diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/README.md b/sdk/resourcemanager/Azure.ResourceManager.Core/README.md index e53c85cca7ec3..1120fc2279b7f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/README.md +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/README.md @@ -23,7 +23,7 @@ Set up a way to authenticate to Azure with Azure Identity. Some options are: - Through the [Azure CLI Login](https://docs.microsoft.com/cli/azure/authenticate-azure-cli). - Via [Visual Studio](https://docs.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet#authenticating-via-visual-studio). -- Setting [Environment Variables]<--(docs/AuthUsingEnvironmentVariables.md)-->. +- Setting [Environment Variables](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/docs/AuthUsingEnvironmentVariables.md). More information and different authentication approaches using Azure Identity can be found in [this document](https://docs.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet). @@ -129,7 +129,7 @@ await foreach (ResourceGroup rg in response) } ``` -For more detailed examples, take a look at [samples]<--(samples/)--> we have available. +For more detailed examples, take a look at [samples](https://github.com/Azure/azure-sdk-for-net/tree/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/samples) we have available. ## Troubleshooting @@ -141,8 +141,8 @@ For more detailed examples, take a look at [samples]<--(samples/)--> we have ava ## Next steps ### More sample code -- [Managing Resource Groups]<--(samples/ManagingResourceGroups.md)--> -- [Creating a Virtual Network]<--(samples/CreatingAVirtualNetwork.md)--> +- [Managing Resource Groups](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample2_ManagingResourceGroups.md) +- [Creating a Virtual Network](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample3_CreatingAVirtualNetwork.md) - [.NET Management Library Code Samples](https://docs.microsoft.com/samples/browse/?branch=master&languages=csharp&term=managing%20using%20Azure%20.NET%20SDK) ### Additional Documentation @@ -151,7 +151,7 @@ For more information on Azure SDK, please refer to [this website](https://azure. ## Contributing For details on contributing to this repository, see the [contributing -guide]<--(docs/CONTRIBUTING.md)-->. +guide](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/docs/CONTRIBUTING.md). This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/samples/README.md b/sdk/resourcemanager/Azure.ResourceManager.Core/samples/README.md index 419fc16e7a9b0..0aac824ece274 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/samples/README.md +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/samples/README.md @@ -11,7 +11,7 @@ description: Samples for the Azure.ResourceManager.Core client library # Azure.ResourceManager.Core Samples -- [Hello World - Getting a subscription]<--(Sample1_HelloWorld.md)--> -- [Hello World - Getting a subscription async]<--(Sample1_HelloWorldAsync.md)--> -- [Managing Resource Groups]<--(Sample2_ManagingResourceGroups.md)--> -- [Creating a virtual network]<--(Sample3_CreatingAVirtualNetwork.md)--> +- [Hello World - Getting a subscription](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorld.md) +- [Hello World - Getting a subscription async](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorldAsync.md) +- [Managing Resource Groups](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample2_ManagingResourceGroups.md) +- [Creating a virtual network](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample3_CreatingAVirtualNetwork.md) diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorld.md b/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorld.md index 9aebe8f938519..4457eb668e9e5 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorld.md +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorld.md @@ -1,6 +1,6 @@ # Example: Getting a subscription ->Note: Before getting started with the samples, make sure to go trough the [prerequisites]<--(./README.md#Prerequisites)-->. +>Note: Before getting started with the samples, make sure to go trough the [prerequisites](https://github.com/Azure/azure-sdk-for-net/tree/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core#prerequisites). The following code shows how to get the default subscription: @@ -26,4 +26,4 @@ ResourceGroupContainer rgContainer = subscription.GetResourceGroups(); ``` ## Next stepts -Take a look at the [Managing Resource Groups]<--(Sample2_ManagingResourceGroups.md)--> samples. +Take a look at the [Managing Resource Groups](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample2_ManagingResourceGroups.md) samples. diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorldAsync.md b/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorldAsync.md index b9a13670f81a2..224f29a3f3b07 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorldAsync.md +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample1_HelloWorldAsync.md @@ -1,6 +1,6 @@ # Example: Getting a subscription ->Note: Before getting started with the samples, go through the [prerequisites]<--(./README.md#Prerequisites)-->. +>Note: Before getting started with the samples, go through the [prerequisites](https://github.com/Azure/azure-sdk-for-net/tree/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core#prerequisites). The following code shows how to get the default subscription: @@ -28,4 +28,4 @@ ResourceGroupContainer rgContainer = subscription.GetResourceGroups(); ``` ## Next stepts -Take a look at the [Managing Resource Groups]<--(Sample2_ManagingResourceGroups.md)--> samples. +Take a look at the [Managing Resource Groups](https://github.com/Azure/azure-sdk-for-net/blob/feature/mgmt-track2/sdk/resourcemanager/Azure.ResourceManager.Core/samples/Sample2_ManagingResourceGroups.md) samples. diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ApiVersionsBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ApiVersionsBase.cs index f66ed787f113d..3a62493bbe794 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ApiVersionsBase.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ApiVersionsBase.cs @@ -23,31 +23,25 @@ protected ApiVersionsBase(string value) } /// - /// + /// Compares one with another instance. /// - /// - /// - /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than the right. public static bool operator <(ApiVersionsBase left, ApiVersionsBase right) { - if (ReferenceEquals(null, left)) - return !ReferenceEquals(null, right); - - return left.CompareTo(right) == -1; + return ReferenceEquals(left, null) ? !ReferenceEquals(right, null) : left.CompareTo(right) < 0; } /// - /// + /// Compares one with another instance. /// - /// - /// - /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than the right. public static bool operator >(ApiVersionsBase left, ApiVersionsBase right) { - if (ReferenceEquals(null, left)) - return false; - - return left.CompareTo(right) == 1; + return !ReferenceEquals(left, null) && left.CompareTo(right) > 0; } /// @@ -69,47 +63,37 @@ public static implicit operator string(ApiVersionsBase version) /// /// API version value. public virtual ResourceType ResourceType {get; } - + /// /// Overrides == operator for comparing ApiVersionsBase object with string object. /// - /// The ApiVersionsBase object to compare. - /// The API version value in string to compare. + /// The ApiVersionsBase object to compare. + /// The API version value in string to compare. /// Comparison result in boolean. Equal returns true otherwise returns false. - public static bool operator ==(ApiVersionsBase first, string second) + public static bool operator ==(ApiVersionsBase left, string right) { - if (ReferenceEquals(null, first)) + if (ReferenceEquals(null, left)) { - return ReferenceEquals(null, second); + return ReferenceEquals(null, right); } - if (ReferenceEquals(null, second)) + if (ReferenceEquals(null, right)) { return false; } - return first.Equals(second); + return left.Equals(right); } /// /// Overrides != operator for comparing ApiVersionsBase object with string object. /// - /// The ApiVersionsBase object to compare. - /// The API version value in string to compare. + /// The ApiVersionsBase object to compare. + /// The API version value in string to compare. /// Comparison result in boolean. Equal returns false otherwise returns true. - public static bool operator !=(ApiVersionsBase first, string second) + public static bool operator !=(ApiVersionsBase left, string right) { - if (ReferenceEquals(null, first)) - { - return !ReferenceEquals(null, second); - } - - if (ReferenceEquals(null, second)) - { - return true; - } - - return !first.Equals(second); + return !(left == right); } /// @@ -205,5 +189,27 @@ public override int GetHashCode() { return _value.GetHashCode(); } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than or equal to the right. + public static bool operator <=(ApiVersionsBase left, ApiVersionsBase right) + { + return ReferenceEquals(left, null) || left.CompareTo(right) <= 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than or equal to the right. + public static bool operator >=(ApiVersionsBase left, ApiVersionsBase right) + { + return ReferenceEquals(left, null) ? ReferenceEquals(right, null) : left.CompareTo(right) >= 0; + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ArmClient.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ArmClient.cs index 40cc0ac394d75..6320090bd4fc7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ArmClient.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ArmClient.cs @@ -51,7 +51,7 @@ public ArmClient(TokenCredential credential, ArmClientOptions options = default) /// The id of the default Azure subscription. /// A credential used to authenticate to an Azure Service. /// The client parameters to use in these operations. - /// If is null. + /// If is null. public ArmClient( string defaultSubscriptionId, TokenCredential credential, diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Azure.ResourceManager.Core.csproj b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Azure.ResourceManager.Core.csproj index 4403871f5a0b5..2741c4b9be3ed 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Azure.ResourceManager.Core.csproj +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Azure.ResourceManager.Core.csproj @@ -8,16 +8,13 @@ This is a beta preview vesion. This version uses a next-generation code generator that introduces important breaking changes, but also new features (such as intuitive authentication, custom HTTP pipeline, distributed tracing and much more). azure;management;resource - $(NoWarn);AZC0008;AZC0107;CA2214;CA1036;CA1067;CA1065;SA1028 + $(NoWarn);CA2214 true - - - - + diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceContainer.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceContainer.cs index 643bec1124232..c2e1a3bcfb5e3 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceContainer.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceContainer.cs @@ -107,18 +107,19 @@ public virtual async Task> GetAsync(string resourceId, /// Get all the resources in a subscription. /// The filter to apply on the operation.<br><br>The properties you can use for eq (equals) or ne (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, plan, plan/publisher, plan/product, plan/name, plan/version, and plan/promotionCode.<br><br>For example, to filter by a resource type, use: $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can use substringof(value, property) in the filter. The properties you can use for substring are: name and resourceGroup.<br><br>For example, to get all resources with 'demo' anywhere in the name, use: $filter=substringof('demo', name)<br><br>You can link more than one substringof together by adding and/or operators.<br><br>You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When you filter by a tag name and value, the tags for each resource are not returned in the results.<br><br>You can use some properties together when filtering. The combinations you can use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and identity/principalId. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. /// The number of results to return. If null is passed, returns all resource groups. /// The cancellation token to use. - public virtual Pageable List(string filter = null, int? top = null, CancellationToken cancellationToken = default) + public virtual Pageable List(string filter = null, string expand = null, int ? top = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.List"); scope.Start(); try { - var response = RestClient.List(filter, null, top, cancellationToken); - return Page.FromValues(response.Value.Value.Select(data => new GenericResource(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); + var response = RestClient.List(filter, expand, top, cancellationToken); + return Page.FromValues(response.Value.Value.Select(data => new GenericResourceExpanded(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -126,14 +127,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.List"); scope.Start(); try { - var response = RestClient.ListNextPage(nextLink, filter, null, top, cancellationToken); - return Page.FromValues(response.Value.Value.Select(data => new GenericResource(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); + var response = RestClient.ListNextPage(nextLink, filter, expand, top, cancellationToken); + return Page.FromValues(response.Value.Value.Select(data => new GenericResourceExpanded(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -146,18 +147,19 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// Get all the resources in a subscription. /// The filter to apply on the operation.<br><br>The properties you can use for eq (equals) or ne (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, plan, plan/publisher, plan/product, plan/name, plan/version, and plan/promotionCode.<br><br>For example, to filter by a resource type, use: $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can use substringof(value, property) in the filter. The properties you can use for substring are: name and resourceGroup.<br><br>For example, to get all resources with 'demo' anywhere in the name, use: $filter=substringof('demo', name)<br><br>You can link more than one substringof together by adding and/or operators.<br><br>You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When you filter by a tag name and value, the tags for each resource are not returned in the results.<br><br>You can use some properties together when filtering. The combinations you can use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and identity/principalId. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. /// The number of results to return. If null is passed, returns all resource groups. /// The cancellation token to use. - public virtual AsyncPageable ListAsync(string filter = null, int? top = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable ListAsync(string filter = null, string expand = null, int ? top = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.List"); scope.Start(); try { - var response = await RestClient.ListAsync(filter, null, top, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(data => new GenericResource(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); + var response = await RestClient.ListAsync(filter, expand, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(data => new GenericResourceExpanded(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -165,14 +167,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.List"); scope.Start(); try { - var response = await RestClient.ListNextPageAsync(nextLink, filter, null, top, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(data => new GenericResource(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); + var response = await RestClient.ListNextPageAsync(nextLink, filter, expand, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(data => new GenericResourceExpanded(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -186,24 +188,25 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHin /// Get all the resources for a resource group. /// The resource group with the resources to get. /// The filter to apply on the operation.<br><br>The properties you can use for eq (equals) or ne (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, plan, plan/publisher, plan/product, plan/name, plan/version, and plan/promotionCode.<br><br>For example, to filter by a resource type, use: $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can use substringof(value, property) in the filter. The properties you can use for substring are: name and resourceGroup.<br><br>For example, to get all resources with 'demo' anywhere in the name, use: $filter=substringof('demo', name)<br><br>You can link more than one substringof together by adding and/or operators.<br><br>You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When you filter by a tag name and value, the tags for each resource are not returned in the results.<br><br>You can use some properties together when filtering. The combinations you can use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and identity/principalId. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. /// The number of results to return. If null is passed, returns all resources. /// The cancellation token to use. /// is null. - public virtual Pageable ListByResourceGroup(string resourceGroupName, string filter = null, int? top = null, CancellationToken cancellationToken = default) + public virtual Pageable ListByResourceGroup(string resourceGroupName, string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) { if (resourceGroupName == null) { throw new ArgumentNullException(nameof(resourceGroupName)); } - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.ListByResourceGroup"); scope.Start(); try { - var response = RestClient.ListByResourceGroup(resourceGroupName, filter, null, top, cancellationToken); - return Page.FromValues(response.Value.Value.Select(data => new GenericResource(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); + var response = RestClient.ListByResourceGroup(resourceGroupName, filter, expand, top, cancellationToken); + return Page.FromValues(response.Value.Value.Select(data => new GenericResourceExpanded(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -211,14 +214,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.ListByResourceGroup"); scope.Start(); try { - var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, filter, null, top, cancellationToken); - return Page.FromValues(response.Value.Value.Select(data => new GenericResource(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); + var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, filter, expand, top, cancellationToken); + return Page.FromValues(response.Value.Value.Select(data => new GenericResourceExpanded(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -232,24 +235,25 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// Get all the resources for a resource group. /// The resource group with the resources to get. /// The filter to apply on the operation.<br><br>The properties you can use for eq (equals) or ne (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, plan, plan/publisher, plan/product, plan/name, plan/version, and plan/promotionCode.<br><br>For example, to filter by a resource type, use: $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can use substringof(value, property) in the filter. The properties you can use for substring are: name and resourceGroup.<br><br>For example, to get all resources with 'demo' anywhere in the name, use: $filter=substringof('demo', name)<br><br>You can link more than one substringof together by adding and/or operators.<br><br>You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When you filter by a tag name and value, the tags for each resource are not returned in the results.<br><br>You can use some properties together when filtering. The combinations you can use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and identity/principalId. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. /// The number of results to return. If null is passed, returns all resources. /// The cancellation token to use. /// is null. - public virtual AsyncPageable ListByResourceGroupAsync(string resourceGroupName, string filter = null, int? top = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable ListByResourceGroupAsync(string resourceGroupName, string filter = null, string expand = null, int ? top = null, CancellationToken cancellationToken = default) { if (resourceGroupName == null) { throw new ArgumentNullException(nameof(resourceGroupName)); } - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.ListByResourceGroup"); scope.Start(); try { - var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, filter, null, top, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(data => new GenericResource(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); + var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, filter, expand, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(data => new GenericResourceExpanded(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,14 +261,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.ListByResourceGroup"); scope.Start(); try { - var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, filter, null, top, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(data => new GenericResource(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); + var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, filter, expand, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(data => new GenericResourceExpanded(this, data)).ToList(), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceExpanded.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceExpanded.cs index 852011d3d45f9..882fac670439d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceExpanded.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceExpanded.cs @@ -9,14 +9,21 @@ namespace Azure.ResourceManager.Core /// /// A class representing an expanded generic azure resource along with the instance operations that can be performed on it. /// - public class GenericResourceExpanded : GenericResourceExpandedOperations + public class GenericResourceExpanded : GenericResourceOperations { + /// + /// Initializes a new instance of the class for mocking. + /// + protected GenericResourceExpanded() + { + } + /// /// Initializes a new instance of the class. /// /// The operations object to copy the client parameters from. /// The data model representing the generic azure resource. - internal GenericResourceExpanded(ResourceOperationsBase operations, GenericResourceExpandedData resource) + internal GenericResourceExpanded(OperationsBase operations, GenericResourceExpandedData resource) : base(operations, resource.Id) { Data = resource; @@ -26,17 +33,5 @@ internal GenericResourceExpanded(ResourceOperationsBase operations, GenericResou /// Gets the data representing this generic azure resource. /// public virtual GenericResourceExpandedData Data { get; } - - /// - protected override GenericResourceExpanded GetResource(CancellationToken cancellation = default) - { - return this; - } - - /// - protected override Task GetResourceAsync(CancellationToken cancellationToken = default) - { - return Task.FromResult(this); - } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Plan.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Plan.cs index 8d25adaa3bec1..6fac41b894908 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Plan.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Plan.cs @@ -2,6 +2,8 @@ // Licensed under the MIT License. using System; +using System.Globalization; +using Azure.Core; namespace Azure.ResourceManager.Core { @@ -10,6 +12,11 @@ namespace Azure.ResourceManager.Core /// public sealed partial class Plan : IEquatable, IComparable { + /// Initializes a new instance of Plan. + public Plan() + { + } + /// /// Initializes a new instance of the class. /// @@ -28,38 +35,29 @@ internal Plan(string name, string publisher, string product, string promotionCod } /// - /// Initializes a new instance of the class. + /// Gets or sets the plan's Name. /// - /// The plan to copy from. - internal Plan(ResourceManager.Resources.Models.Plan plan) - : this(plan.Name, plan.Publisher, plan.Product, plan.PromotionCode, plan.Version) - { - } + public string Name { get; set; } /// - /// Gets the plan's Name. + /// Gets or sets the plan's Publisher. /// - public string Name { get; private set; } + public string Publisher { get; set; } /// - /// Gets the plan's Publisher. + /// Gets or sets the plan's product. /// - public string Publisher { get; private set; } + public string Product { get; set; } /// - /// Gets the plan's product. + /// Gets or sets the plan's Promotion Code. /// - public string Product { get; private set; } + public string PromotionCode { get; set; } /// - /// Gets the plan's Promotion Code. + /// Gets or sets the plan's version. /// - public string PromotionCode { get; private set; } - - /// - /// Gets the plan's version. - /// - public string Version { get; private set; } + public string Version { get; set; } /// /// Compares this with another instance. @@ -68,7 +66,7 @@ internal Plan(ResourceManager.Resources.Models.Plan plan) /// -1 for less than, 0 for equals, 1 for greater than. public int CompareTo(Plan other) { - if (other == null) + if (ReferenceEquals(other, null)) return 1; if (ReferenceEquals(this, other)) @@ -94,7 +92,7 @@ public int CompareTo(Plan other) /// True if they are equals, otherwise false. public bool Equals(Plan other) { - if (other == null) + if (ReferenceEquals(other, null)) return false; if (ReferenceEquals(this, other)) @@ -106,5 +104,106 @@ public bool Equals(Plan other) string.Equals(Publisher, other.Publisher, StringComparison.InvariantCultureIgnoreCase) && string.Equals(Version, other.Version, StringComparison.InvariantCultureIgnoreCase); } + + /// + public override bool Equals(object obj) + { + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (ReferenceEquals(obj, null)) + { + return false; + } + + if (obj is not Plan other) + return false; + + return Equals(other); + } + + /// + public override int GetHashCode() + { + return HashCodeBuilder.Combine( + Name?.ToLower(CultureInfo.InvariantCulture), + Publisher?.ToLower(CultureInfo.InvariantCulture), + Product?.ToLower(CultureInfo.InvariantCulture), + PromotionCode?.ToLower(CultureInfo.InvariantCulture), + Version?.ToLower(CultureInfo.InvariantCulture)); + } + + /// + /// Compares this instance with another object and determines if they are equals. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if they are equal, otherwise false. + public static bool operator ==(Plan left, Plan right) + { + if (ReferenceEquals(left, null)) + { + return ReferenceEquals(right, null); + } + + return left.Equals(right); + } + + /// + /// Compares this instance with another object and determines if they are equals. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if they are not equal, otherwise false. + public static bool operator !=(Plan left, Plan right) + { + return !(left == right); + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than the right. + public static bool operator <(Plan left, Plan right) + { + return ReferenceEquals(left, null) ? !ReferenceEquals(right, null) : left.CompareTo(right) < 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than or equal to the right. + public static bool operator <=(Plan left, Plan right) + { + return ReferenceEquals(left, null) || left.CompareTo(right) <= 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than the right. + public static bool operator >(Plan left, Plan right) + { + return !ReferenceEquals(left, null) && left.CompareTo(right) > 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than or equal to the right. + public static bool operator >=(Plan left, Plan right) + { + return ReferenceEquals(left, null) ? ReferenceEquals(right, null) : left.CompareTo(right) >= 0; + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Sku.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Sku.Serialization.cs similarity index 79% rename from sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Sku.Serialization.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Sku.Serialization.cs index 9a1f6e44d55d3..fcb25a1a2a6ae 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Sku.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Sku.Serialization.cs @@ -1,28 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; +// + +#nullable disable + using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Core { - /// - /// A class representing SKU for resource. - /// - public sealed partial class Sku : IUtf8JsonSerializable + public partial class Sku : IUtf8JsonSerializable { - /// - /// Serialize the input Sku object. - /// - /// Input Json writer. void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { - if (writer is null) - { - throw new ArgumentNullException(nameof(writer)); - } - writer.WriteStartObject(); if (Optional.IsDefined(Name)) { @@ -44,6 +35,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("family"); writer.WriteStringValue(Family); } + if (Optional.IsDefined(Model)) + { + writer.WritePropertyName("model"); + writer.WriteStringValue(Model); + } if (Optional.IsDefined(Capacity)) { writer.WritePropertyName("capacity"); @@ -52,16 +48,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - /// - /// Deserialize the input Json object. - /// - /// The Json object need to be deserialized. internal static Sku DeserializeSku(JsonElement element) { Optional name = default; Optional tier = default; Optional size = default; Optional family = default; + Optional model = default; Optional capacity = default; foreach (var property in element.EnumerateObject()) { @@ -85,6 +78,11 @@ internal static Sku DeserializeSku(JsonElement element) family = property.Value.GetString(); continue; } + if (property.NameEquals("model")) + { + model = property.Value.GetString(); + continue; + } if (property.NameEquals("capacity")) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -96,8 +94,7 @@ internal static Sku DeserializeSku(JsonElement element) continue; } } - - return new Sku(name.Value, tier.Value, family.Value, size.Value, Optional.ToNullable(capacity)); + return new Sku(name.Value, tier.Value, size.Value, family.Value, model.Value, Optional.ToNullable(capacity)); } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Sku.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Sku.cs new file mode 100644 index 0000000000000..d906fb0492868 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/Sku.cs @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Globalization; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + /// + /// A class representing SKU for resource. + /// + public sealed partial class Sku : IEquatable, IComparable + { + /// + /// Initializes a new instance of the class. + /// + public Sku() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The SKU name. + /// The SKU tier. + /// The SKU family. + /// The SKU faimily. + /// The SKU size. + /// The SKU capacity. + internal Sku(string name, string tier, string size, string family, string model, long? capacity = null) + { + Name = name; + Tier = tier; + Family = family; + Size = size; + Capacity = capacity; + Model = model; + } + + /// + /// Gets or sets the Name. + /// + public string Name { get; set; } + + /// + /// Gets or sets the model. + /// + public string Model { get; set; } + + /// + /// Gets or sets the Tier. + /// + public string Tier { get; set; } + + /// + /// Gets or sets the Family. + /// + public string Family { get; set; } + + /// + /// Gets or sets the Size. + /// + public string Size { get; set; } + + /// + /// Gets or sets the Capacity. + /// + public long? Capacity { get; set; } + + /// + /// Compares this with another instance. + /// + /// object to compare. + /// -1 for less than, 0 for equals, 1 for greater than. + public int CompareTo(Sku other) + { + if (other == null) + return 1; + + if (ReferenceEquals(this, other)) + return 0; + + int compareResult = 0; + if ((compareResult = string.Compare(Name, other.Name, StringComparison.InvariantCultureIgnoreCase)) == 0 && + (compareResult = string.Compare(Family, other.Family, StringComparison.InvariantCultureIgnoreCase)) == 0 && + (compareResult = string.Compare(Model, other.Model, StringComparison.InvariantCultureIgnoreCase)) == 0 && + (compareResult = string.Compare(Size, other.Size, StringComparison.InvariantCultureIgnoreCase)) == 0 && + (compareResult = string.Compare(Tier, other.Tier, StringComparison.InvariantCultureIgnoreCase)) == 0) + { + return Nullable.Compare(Capacity, other.Capacity); + } + + return compareResult; + } + + /// + /// Compares this instance with another object and determines if they are equals. + /// + /// object to compare. + /// True if they are equals, otherwise false. + public bool Equals(Sku other) + { + if (other == null) + return false; + + if (object.ReferenceEquals(this, other)) + return true; + + return string.Equals(Name, other.Name, StringComparison.InvariantCultureIgnoreCase) && + string.Equals(Family, other.Family, StringComparison.InvariantCultureIgnoreCase) && + string.Equals(Model, other.Model, StringComparison.InvariantCultureIgnoreCase) && + string.Equals(Size, other.Size, StringComparison.InvariantCultureIgnoreCase) && + string.Equals(Tier, other.Tier, StringComparison.InvariantCultureIgnoreCase) && + long.Equals(Capacity, other.Capacity); + } + + /// + public override bool Equals(object obj) + { + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (ReferenceEquals(obj, null)) + { + return false; + } + + if (obj is not Sku other) + return false; + + return Equals(other); + } + + /// + public override int GetHashCode() + { + return HashCodeBuilder.Combine( + Name?.ToLower(CultureInfo.InvariantCulture), + Model?.ToLower(CultureInfo.InvariantCulture), + Family?.ToLower(CultureInfo.InvariantCulture), + Size?.ToLower(CultureInfo.InvariantCulture), + Tier?.ToLower(CultureInfo.InvariantCulture), + Capacity); + } + + /// + /// Compares this instance with another object and determines if they are equals. + /// + /// The sku on the left side of the operator. + /// The sku on the right side of the operator. + /// True if they are equal, otherwise false. + public static bool operator ==(Sku left, Sku right) + { + if (ReferenceEquals(left, null)) + { + return ReferenceEquals(right, null); + } + + return left.Equals(right); + } + + /// + /// Compares this instance with another object and determines if they are not equal. + /// + /// The sku on the left side of the operator. + /// The sku on the right side of the operator. + /// True if they are not equal, otherwise false. + public static bool operator !=(Sku left, Sku right) + { + return !(left == right); + } + + /// + /// Compares one with another instance. + /// + /// The sku on the left side of the operator. + /// The sku on the right side of the operator. + /// True if the left Sku is less than the right. + public static bool operator <(Sku left, Sku right) + { + return ReferenceEquals(left, null) ? !ReferenceEquals(right, null) : left.CompareTo(right) < 0; + } + + /// + /// Compares one with another instance. + /// + /// The sku on the left side of the operator. + /// The sku on the right side of the operator. + /// True if the left Sku is less than or equal to the right. + public static bool operator <=(Sku left, Sku right) + { + return ReferenceEquals(left, null) || left.CompareTo(right) <= 0; + } + + /// + /// Compares one with another instance. + /// + /// The sku on the left side of the operator. + /// The sku on the right side of the operator. + /// True if the left Sku is greater than the right. + public static bool operator >(Sku left, Sku right) + { + return !ReferenceEquals(left, null) && left.CompareTo(right) > 0; + } + + /// + /// Compares one with another instance. + /// + /// The sku on the left side of the operator. + /// The sku on the right side of the operator. + /// True if the left Sku is greater than or equal to the right. + public static bool operator >=(Sku left, Sku right) + { + return ReferenceEquals(left, null) ? ReferenceEquals(right, null) : left.CompareTo(right) >= 0; + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/SubscriptionData.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/SubscriptionData.cs index 450d62da4f27a..3198a2f4fcdc9 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/SubscriptionData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/SubscriptionData.cs @@ -74,8 +74,8 @@ internal SubscriptionData(string id, /// public string DisplayName { get; } - /// - /// The subscription tenant ID. + /// + /// The subscription tenant ID. /// public string TenantId { get; } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/SubscriptionState.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/SubscriptionState.cs index 2590f4eac1742..b63a1596bbb8f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/SubscriptionState.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/SubscriptionState.cs @@ -3,8 +3,8 @@ namespace Azure.ResourceManager.Core { - /// - /// The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. + /// + /// The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. /// public enum SubscriptionState { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ResourcesUpdateByIdOperation.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ResourcesUpdateByIdOperation.cs index 2c87da60a7174..ec4a8d4f5884e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ResourcesUpdateByIdOperation.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ResourcesUpdateByIdOperation.cs @@ -12,7 +12,6 @@ using Azure; using Azure.Core; using Azure.Core.Pipeline; -using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Core { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/OperationsBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/OperationsBase.cs index a30a545fcbbd0..51fab35a8e5e8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/OperationsBase.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/OperationsBase.cs @@ -4,7 +4,6 @@ using System; using Azure.Core; using Azure.Core.Pipeline; -using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Core { @@ -13,6 +12,8 @@ namespace Azure.ResourceManager.Core /// public abstract class OperationsBase { + private ProviderContainer _providerContainer; + /// /// Initializes a new instance of the class for mocking. /// @@ -47,6 +48,16 @@ internal OperationsBase(ClientContext clientContext, ResourceIdentifier id) Validate(id); } + /// + /// Gets the provider operations. + /// + protected ProviderContainer ProviderContainer => _providerContainer ??= GetProviderContainer(); + + private ProviderContainer GetProviderContainer() + { + return new ProviderContainer(this); + } + internal ClientDiagnostics Diagnostics { get; } /// @@ -80,23 +91,6 @@ internal OperationsBase(ClientContext clientContext, ResourceIdentifier id) /// A valid Azure resource type. protected abstract ResourceType ValidResourceType { get; } - /// - /// Gets the resource client. - /// - protected ResourcesManagementClient ResourcesClient - { - get - { - string subscription; - if (!Id.TryGetSubscriptionId(out subscription)) - { - subscription = Guid.Empty.ToString(); - } - - return new ResourcesManagementClient(BaseUri, subscription, Credential, ClientOptions.Convert()); - } - } - /// /// Validate the resource identifier against current operations. /// diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceListOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceListOperations.cs index a038d2f428e98..c440c90a5a782 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceListOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceListOperations.cs @@ -15,12 +15,14 @@ public static class ResourceListOperations /// /// The instance to use for the list. /// Optional filters for results. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. /// The number of results to return. /// A token to allow the caller to cancel the call to the service. The default value is . /// A collection of resource operations that may take multiple service requests to iterate over. - public static Pageable ListAtContext( + public static Pageable ListAtContext( ResourceGroupOperations resourceGroup, ResourceFilterCollection resourceFilters = null, + string expand = null, int? top = null, CancellationToken cancellationToken = default) { @@ -28,6 +30,7 @@ public static Pageable ListAtContext( resourceGroup, resourceGroup.Id.Name, resourceFilters, + expand, top, cancellationToken); } @@ -37,12 +40,14 @@ public static Pageable ListAtContext( /// /// The instance to use for the list. /// Optional filters for results. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. /// The number of results to return. /// A token to allow the caller to cancel the call to the service. The default value is . /// An async collection of resource operations that may take multiple service requests to iterate over. - public static AsyncPageable ListAtContextAsync( + public static AsyncPageable ListAtContextAsync( ResourceGroupOperations resourceGroup, ResourceFilterCollection resourceFilters = null, + string expand = null, int? top = null, CancellationToken cancellationToken = default) { @@ -50,6 +55,7 @@ public static AsyncPageable ListAtContextAsync( resourceGroup, resourceGroup.Id.Name, resourceFilters, + expand, top, cancellationToken); } @@ -59,12 +65,14 @@ public static AsyncPageable ListAtContextAsync( /// /// The instance to use for the list. /// Optional filters for results. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. /// The number of results to return. /// A token to allow the caller to cancel the call to the service. The default value is . /// A collection of resource operations that may take multiple service requests to iterate over. - public static Pageable ListAtContext( + public static Pageable ListAtContext( SubscriptionOperations subscription, ResourceFilterCollection resourceFilters = null, + string expand = null, int? top = null, CancellationToken cancellationToken = default) { @@ -72,6 +80,7 @@ public static Pageable ListAtContext( subscription, null, resourceFilters, + expand, top, cancellationToken); } @@ -81,12 +90,14 @@ public static Pageable ListAtContext( /// /// The instance to use for the list. /// Optional filters for results. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. /// The number of results to return. /// A token to allow the caller to cancel the call to the service. The default value is . /// An async collection of resource operations that may take multiple service requests to iterate over. - public static AsyncPageable ListAtContextAsync( + public static AsyncPageable ListAtContextAsync( SubscriptionOperations subscription, ResourceFilterCollection resourceFilters = null, + string expand = null, int? top = null, CancellationToken cancellationToken = default) { @@ -94,6 +105,7 @@ public static AsyncPageable ListAtContextAsync( subscription, null, resourceFilters, + expand, top, cancellationToken); } @@ -104,24 +116,26 @@ private static GenericResourceContainer GetGenericResourceContainer(ResourceOper return new GenericResourceContainer(new ClientContext(resourceOperations.ClientOptions, resourceOperations.Credential, resourceOperations.BaseUri, resourceOperations.Pipeline), subscription); } - private static AsyncPageable ListAtContextInternalAsync( + private static AsyncPageable ListAtContextInternalAsync( ResourceOperationsBase resourceOperations, string scopeFilter, ResourceFilterCollection resourceFilters = null, + string expand = null, int? top = null, CancellationToken cancellationToken = default) { var restClient = GetGenericResourceContainer(resourceOperations); - AsyncPageable result; + AsyncPageable result; if (scopeFilter == null) { - result = restClient.ListAsync(resourceFilters?.ToString(), top, cancellationToken); + result = restClient.ListAsync(resourceFilters?.ToString(), expand, top, cancellationToken); } else { result = restClient.ListByResourceGroupAsync( scopeFilter, resourceFilters?.ToString(), + expand, top, cancellationToken); } @@ -129,24 +143,26 @@ private static AsyncPageable ListAtContextInternalAsync( return result; } - private static Pageable ListAtContextInternal( + private static Pageable ListAtContextInternal( ResourceOperationsBase resourceOperations, string scopeFilter = null, ResourceFilterCollection resourceFilters = null, + string expand = null, int? top = null, CancellationToken cancellationToken = default) { var restClient = GetGenericResourceContainer(resourceOperations); - Pageable result; + Pageable result; if (scopeFilter == null) { - result = restClient.List(resourceFilters?.ToString(), top, cancellationToken); + result = restClient.List(resourceFilters?.ToString(), expand, top, cancellationToken); } else { result = restClient.ListByResourceGroup( scopeFilter, resourceFilters?.ToString(), + expand, top, cancellationToken); } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceOperationsBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceOperationsBase.cs index 967142e990916..48a9c078f962b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceOperationsBase.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceOperationsBase.cs @@ -119,11 +119,11 @@ protected virtual async Task GetResourceAsync(CancellationToken can /// A collection of location that may take multiple service requests to iterate over. protected IEnumerable ListAvailableLocations(ResourceType resourceType, CancellationToken cancellationToken = default) { - var pageableProvider = ResourcesClient.Providers.List(expand: "metadata", cancellationToken: cancellationToken); - var resourcePageableProvider = pageableProvider.FirstOrDefault(p => string.Equals(p.Namespace, resourceType?.Namespace, StringComparison.InvariantCultureIgnoreCase)); + var pageableProvider = ProviderContainer.List(expand: "metadata", cancellationToken: cancellationToken); + var resourcePageableProvider = pageableProvider.FirstOrDefault(p => string.Equals(p.Data.Namespace, resourceType?.Namespace, StringComparison.InvariantCultureIgnoreCase)); if (resourcePageableProvider is null) throw new InvalidOperationException($"{resourceType.Type} not found for {resourceType.Namespace}"); - var theResource = resourcePageableProvider.ResourceTypes.FirstOrDefault(r => resourceType.Type.Equals(r.ResourceType)); + var theResource = resourcePageableProvider.Data.ResourceTypes.FirstOrDefault(r => resourceType.Type.Equals(r.ResourceType)); if (theResource is null) throw new InvalidOperationException($"{resourceType.Type} not found for {resourceType.Type}"); return theResource.Locations.Select(l => (LocationData)l); @@ -137,13 +137,13 @@ protected IEnumerable ListAvailableLocations(ResourceType resource /// A collection of location that may take multiple service requests to iterate over. protected async Task> ListAvailableLocationsAsync(ResourceType resourceType, CancellationToken cancellationToken = default) { - var pageableProvider = ResourcesClient.Providers.ListAsync(expand: "metadata", cancellationToken: cancellationToken); + var pageableProvider = ProviderContainer.ListAsync(expand: "metadata", cancellationToken: cancellationToken); var resourcePageableProvider = await pageableProvider.FirstOrDefaultAsync( - p => string.Equals(p.Namespace, resourceType?.Namespace, StringComparison.InvariantCultureIgnoreCase), + p => string.Equals(p.Data.Namespace, resourceType?.Namespace, StringComparison.InvariantCultureIgnoreCase), cancellationToken).ConfigureAwait(false); if (resourcePageableProvider is null) throw new InvalidOperationException($"{resourceType.Type} not found for {resourceType.Namespace}"); - var theResource = resourcePageableProvider.ResourceTypes.FirstOrDefault(r => resourceType.Type.Equals(r.ResourceType)); + var theResource = resourcePageableProvider.Data.ResourceTypes.FirstOrDefault(r => resourceType.Type.Equals(r.ResourceType)); if (theResource is null) throw new InvalidOperationException($"{resourceType.Type} not found for {resourceType.Type}"); return theResource.Locations.Select(l => (LocationData)l); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/LocationData.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/LocationData.cs index a9770d8b24bd6..24f4702b152d0 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/LocationData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/LocationData.cs @@ -328,7 +328,7 @@ private enum NameType /// String to be assigned in the Name, CanonicalName or DisplayName form. public static implicit operator LocationData(string other) { - if (other == null) + if (ReferenceEquals(other, null)) return null; var normalizedName = NormalizationUtility(other); @@ -347,7 +347,7 @@ public static implicit operator LocationData(string other) /// Location object to be assigned. public static implicit operator string(LocationData other) { - if (other == null) + if (ReferenceEquals(other, null)) { return null; } @@ -362,7 +362,7 @@ public static implicit operator string(LocationData other) /// True or false. public bool Equals(LocationData other) { - if (other == null) + if (ReferenceEquals(other, null)) return false; return Name == other.Name && CanonicalName == other.CanonicalName && DisplayName == other.DisplayName; @@ -459,5 +459,101 @@ private static string GetDefaultNameFromDisplayName(string name) { return name.Replace(RegexWhitespace, string.Empty).ToLower(CultureInfo.InvariantCulture); } + + /// + public override bool Equals(object obj) + { + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (ReferenceEquals(obj, null)) + { + return false; + } + + if (obj is not LocationData other) + return false; + + return Equals(other); + } + + /// + public override int GetHashCode() + { + return Name.GetHashCode(); + } + + /// + /// Compares this instance with another object and determines if they are equals. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if they are equal, otherwise false. + public static bool operator ==(LocationData left, LocationData right) + { + if (ReferenceEquals(left, null)) + { + return ReferenceEquals(right, null); + } + + return left.Equals(right); + } + + /// + /// Compares this instance with another object and determines if they are equals. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if they are not equal, otherwise false. + public static bool operator !=(LocationData left, LocationData right) + { + return !(left == right); + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than the right. + public static bool operator <(LocationData left, LocationData right) + { + return ReferenceEquals(left, null) ? !ReferenceEquals(right, null) : left.CompareTo(right) < 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than or equal to the right. + public static bool operator <=(LocationData left, LocationData right) + { + return ReferenceEquals(left, null) || left.CompareTo(right) <= 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than the right. + public static bool operator >(LocationData left, LocationData right) + { + return !ReferenceEquals(left, null) && left.CompareTo(right) > 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than or equal to the right. + public static bool operator >=(LocationData left, LocationData right) + { + return ReferenceEquals(left, null) ? ReferenceEquals(right, null) : left.CompareTo(right) >= 0; + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/LocationResourceIdentifier.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/LocationResourceIdentifier.cs index 900b34fe01639..6e81fb07ecf00 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/LocationResourceIdentifier.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/LocationResourceIdentifier.cs @@ -6,7 +6,7 @@ namespace Azure.ResourceManager.Core { /// - /// The identifier for a resource that is contained in a location. + /// The identifier for a resource that is contained in a location. /// public sealed class LocationResourceIdentifier : SubscriptionResourceIdentifier { @@ -39,7 +39,7 @@ public LocationResourceIdentifier(string resourceId) } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// Used to initialize resources in the same namespace as the parent resource. /// /// @@ -92,10 +92,8 @@ public static implicit operator LocationResourceIdentifier(string other) { if (other is null) return null; - LocationResourceIdentifier id = ResourceIdentifier.Create(other) as LocationResourceIdentifier; - if (id is null) - throw new ArgumentException("Not a valid location level resource", nameof(other)); - return id; + + return ResourceIdentifier.Create(other) as LocationResourceIdentifier; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/PropertyReferenceTypeAttribute.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/PropertyReferenceTypeAttribute.cs new file mode 100644 index 0000000000000..f8a755b9aa9d2 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/PropertyReferenceTypeAttribute.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Core +{ + /// + /// An attribute class indicating a reference type for code generation. + /// + [AttributeUsage(AttributeTargets.Class)] + public class PropertyReferenceTypeAttribute : Attribute + { + /// + /// Instatiate a new reference type attribute. + /// + /// An array of types to skip for this reference type. + public PropertyReferenceTypeAttribute(Type[] skipTypes) + { + SkipTypes = skipTypes; + } + + /// + /// Instatiate a new reference type attribute. + /// + public PropertyReferenceTypeAttribute() : this(null) + { + } + + /// + /// Get an array of types to skip for this reference type. + /// + public Type[] SkipTypes { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs index befebf7f9a56b..8c6085ce34c56 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs @@ -9,8 +9,8 @@ namespace Azure.ResourceManager.Core /// A class representing the base resource used by all azure resources. /// [ReferenceType(typeof(TenantResourceIdentifier))] - public abstract class Resource : IEquatable>, IEquatable, - IComparable>, IComparable where TIdentifier : TenantResourceIdentifier + public abstract class Resource + where TIdentifier : TenantResourceIdentifier { /// /// Initializes an empty instance of . @@ -46,47 +46,5 @@ protected internal Resource(TIdentifier id, string name, ResourceType type) /// Gets the resource type. /// public virtual ResourceType Type { get; } - - /// - public virtual int CompareTo(Resource other) - { - if (other == null) - return 1; - - if (ReferenceEquals(this, other)) - return 0; - - int compareResult = 0; - if ((compareResult = string.Compare(Id, other.Id, StringComparison.InvariantCultureIgnoreCase)) == 0 && - (compareResult = string.Compare(Name, other.Name, StringComparison.InvariantCultureIgnoreCase)) == 0 && - (compareResult = Type.CompareTo(other.Type)) == 0) - return 0; - - return compareResult; - } - - /// - public virtual int CompareTo(string other) - { - return string.Compare(Id, other, StringComparison.InvariantCultureIgnoreCase); - } - - /// - public virtual bool Equals(Resource other) - { - if (Id == null) - return false; - - return Id.Equals(other?.Id); - } - - /// - public virtual bool Equals(string other) - { - if (Id == null) - return false; - - return Id.Equals(other); - } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceGroupResourceIdentifier.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceGroupResourceIdentifier.cs index 88a1cae7b4953..ae993e62270d0 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceGroupResourceIdentifier.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceGroupResourceIdentifier.cs @@ -25,7 +25,7 @@ internal ResourceGroupResourceIdentifier(SubscriptionResourceIdentifier parent, } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for a resource in a different namespace than its parent. /// /// he of the target of this extension resource. @@ -39,7 +39,7 @@ internal ResourceGroupResourceIdentifier(ResourceGroupResourceIdentifier target, } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for a resource in the same namespace as its parent. /// /// he of the target of this extension resource. @@ -52,7 +52,7 @@ internal ResourceGroupResourceIdentifier(ResourceGroupResourceIdentifier target, } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// /// The string representation of a resource id. public ResourceGroupResourceIdentifier(string resourceId) @@ -88,10 +88,8 @@ public static implicit operator ResourceGroupResourceIdentifier(string other) { if (other is null) return null; - ResourceGroupResourceIdentifier id = ResourceIdentifier.Create(other) as ResourceGroupResourceIdentifier; - if (id is null) - throw new ArgumentException("Not a valid resource group level resource", nameof(other)); - return id; + + return ResourceIdentifier.Create(other) as ResourceGroupResourceIdentifier; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentifier.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentifier.cs index 7961bfa2bf1a5..de4dc54a4d0ea 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentifier.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentifier.cs @@ -16,7 +16,7 @@ public abstract class ResourceIdentifier : IEquatable, IComp internal const string ProvidersKey = "providers", SubscriptionsKey = "subscriptions", ResourceGroupsKey = "resourceGroups", LocationsKey = "locations"; - internal const string ResourceGroupsLowerKey = "resourcegroups"; + internal const string ResourceGroupsLowerKey = "resourcegroups"; internal const string BuiltInResourceNamespace = "Microsoft.Resources"; @@ -98,7 +98,7 @@ public static ResourceIdentifier Create(string resourceId) } /// - /// Create a new instance of the class for resource identifiers + /// Create a new instance of the class for resource identifiers /// that are contained in a subscription. /// /// The GUID string representing the resource. @@ -161,7 +161,7 @@ internal static ResourceIdentifier CreateBaseSubscriptionIdentifier(string subsc } /// - /// Create a new instance of the class for resource identifiers + /// Create a new instance of the class for resource identifiers /// that are contained in a location. /// /// The resource id of the subscription for this resource. @@ -189,7 +189,7 @@ internal static ResourceIdentifier CreateBaseLocationIdentifier(SubscriptionReso } /// - /// Create a new instance of the class for resource identifiers + /// Create a new instance of the class for resource identifiers /// that are contained in a resource group. /// /// The resource id of the subscription for this resource. @@ -217,7 +217,7 @@ internal static ResourceIdentifier CreateBaseResourceGroupIdentifier(Subscriptio } /// - /// Create a new instance of the class for resource identifiers + /// Create a new instance of the class for resource identifiers /// that are based in the tenant. /// /// The resource id of the parent resource. @@ -237,7 +237,7 @@ internal static ResourceIdentifier CreateTenantIdentifier(TenantResourceIdentifi } /// - /// Create a new instance of the class for resource identifiers + /// Create a new instance of the class for resource identifiers /// that are based in a subscription. /// /// The resource id of the parent resource. @@ -257,7 +257,7 @@ internal static ResourceIdentifier CreateSubscriptionIdentifier(SubscriptionReso } /// - /// Create a new instance of the class for resource identifiers + /// Create a new instance of the class for resource identifiers /// that are contained in a location. /// /// The resource id of the parent resource. @@ -277,7 +277,7 @@ internal static ResourceIdentifier CreateLocationIdentifier(LocationResourceIden } /// - /// Create a new instance of the class for resource identifiers + /// Create a new instance of the class for resource identifiers /// that are contained in a resource group. /// /// The resource id of the parent resource. @@ -465,8 +465,8 @@ public bool Equals(ResourceIdentifier other) /// Compre this resource identifier to the given resource identifier. /// /// The resource identifier to compare to. - /// 0 if the resource identifiers are equivalent, -1 if this resource identifier - /// should be ordered before the given resource identifier, 1 if this resource identifier + /// 0 if the resource identifiers are equivalent, -1 if this resource identifier + /// should be ordered before the given resource identifier, 1 if this resource identifier /// should be ordered after the given resource identifier. public int CompareTo(ResourceIdentifier other) { @@ -500,7 +500,7 @@ public override int GetHashCode() public static implicit operator ResourceIdentifier(string other) => (other is null ? null : ResourceIdentifier.Create(other)); /// - /// Convert a resource identifier to a string + /// Convert a resource identifier to a string /// /// The resource identifier. public static implicit operator string(ResourceIdentifier id) => id?.ToString(); @@ -526,5 +526,49 @@ public override int GetHashCode() { return !ResourceIdentifier.Equals(id1,id2); } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than the right. + public static bool operator <(ResourceIdentifier left, ResourceIdentifier right) + { + return ReferenceEquals(left, null) ? !ReferenceEquals(right, null) : left.CompareTo(right) < 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than or equal to the right. + public static bool operator <=(ResourceIdentifier left, ResourceIdentifier right) + { + return ReferenceEquals(left, null) || left.CompareTo(right) <= 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than the right. + public static bool operator >(ResourceIdentifier left, ResourceIdentifier right) + { + return !ReferenceEquals(left, null) && left.CompareTo(right) > 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than or equal to the right. + public static bool operator >=(ResourceIdentifier left, ResourceIdentifier right) + { + return ReferenceEquals(left, null) ? ReferenceEquals(right, null) : left.CompareTo(right) >= 0; + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentifierExtensions.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentifierExtensions.cs index ef5af2d1a6a7f..8e1b5e9927f5a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentifierExtensions.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentifierExtensions.cs @@ -17,7 +17,7 @@ public static class ResourceIdentifierExtensions /// /// The id to append to. /// The provider namespace of the added resource. - /// The simple type of the added resource, without slashes (/), + /// The simple type of the added resource, without slashes (/), /// for example, 'virtualMachines'. /// The name of the resource. /// The combined resource id. @@ -33,7 +33,7 @@ public static TenantResourceIdentifier AppendProviderResource(this TenantResourc /// /// The id to append to. /// The provider namespace of the added resource. - /// The simple type of the added resource, without slashes (/), + /// The simple type of the added resource, without slashes (/), /// for example, 'virtualMachines'. /// The name of the resource. /// The combined resource id. @@ -49,7 +49,7 @@ public static SubscriptionResourceIdentifier AppendProviderResource(this Subscri /// /// The id to append to. /// The provider namespace of the added resource. - /// The simple type of the added resource, without slashes (/), + /// The simple type of the added resource, without slashes (/), /// for example, 'virtualMachines'. /// The name of the resource. /// The combined resource id. @@ -65,7 +65,7 @@ public static ResourceGroupResourceIdentifier AppendProviderResource(this Resour /// /// The id to append to. /// The provider namespace of the added resource. - /// The simple type of the added resource, without slashes (/), + /// The simple type of the added resource, without slashes (/), /// for example, 'virtualMachines'. /// The name of the resource. /// The combined resource id. @@ -80,7 +80,7 @@ public static LocationResourceIdentifier AppendProviderResource(this LocationRes /// Add a provider resource to an existing resource id. /// /// The id to append to. - /// The simple type of the child resource, without slashes (/), + /// The simple type of the child resource, without slashes (/), /// for example, 'subnets'. /// The name of the resource. /// The combined resource id. @@ -95,7 +95,7 @@ public static TenantResourceIdentifier AppendChildResource(this TenantResourceId /// Add a provider resource to an existing resource id. /// /// The id to append to. - /// The simple type of the child resource, without slashes (/), + /// The simple type of the child resource, without slashes (/), /// for example, 'subnets'. /// The name of the resource. /// The combined resource id. @@ -110,7 +110,7 @@ public static SubscriptionResourceIdentifier AppendChildResource(this Subscripti /// Add a provider resource to an existing resource id. /// /// The id to append to. - /// The simple type of the child resource, without slashes (/), + /// The simple type of the child resource, without slashes (/), /// for example, 'subnets'. /// The name of the resource. /// The combined resource id. @@ -125,7 +125,7 @@ public static ResourceGroupResourceIdentifier AppendChildResource(this ResourceG /// Add a provider resource to an existing resource id. /// /// The id to append to. - /// The simple type of the child resource, without slashes (/), + /// The simple type of the child resource, without slashes (/), /// for example, 'subnets'. /// The name of the resource. /// The combined resource id. diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentity.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentity.cs index 9102f5db7b4db..80e42071c83e8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentity.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceIdentity.cs @@ -11,6 +11,7 @@ namespace Azure.ResourceManager.Core /// /// Represents a managed identity /// + [PropertyReferenceType(new Type[] { typeof(ResourceIdentityType) })] public class ResourceIdentity : IEquatable { private const string SystemAssigned = "SystemAssigned"; @@ -20,6 +21,7 @@ public class ResourceIdentity : IEquatable /// /// Initializes a new instance of the class. /// + [InitializationConstructor] public ResourceIdentity() : this(null, false) { @@ -30,6 +32,7 @@ public ResourceIdentity() /// /// Dictionary with a key and a object value. /// Flag for using or not. + [SerializationConstructor] public ResourceIdentity(Dictionary user, bool useSystemAssigned) { // check for combination of user and system on the impact to type value @@ -78,7 +81,9 @@ public ResourceIdentity(SystemAssignedIdentity systemAssigned, IDictionary /// A containing an . /// New Identity object with JSON values. - internal static ResourceIdentity Deserialize(JsonElement element) +#pragma warning disable AZC0014 // Avoid using banned types in public API + public static ResourceIdentity DeserializeResourceIdentity(JsonElement element) +#pragma warning restore AZC0014 // Avoid using banned types in public API { if (element.ValueKind == JsonValueKind.Undefined) { @@ -208,7 +213,7 @@ internal static void Serialize(Utf8JsonWriter writer, ResourceIdentity identity) /// True if they are equal, otherwise False. public bool Equals(ResourceIdentity other) { - if (other == null) + if (ReferenceEquals(other, null)) return false; if (UserAssignedIdentities.Count == other.UserAssignedIdentities.Count) @@ -232,5 +237,20 @@ public bool Equals(ResourceIdentity other) return SystemAssignedIdentity.Equals(SystemAssignedIdentity, other.SystemAssignedIdentity); } + + /// + public override bool Equals(object obj) + { + if (ReferenceEquals(this, obj)) + return true; + + return Equals(obj as ResourceIdentity); + } + + /// + public override int GetHashCode() + { + return HashCodeBuilder.Combine(SystemAssignedIdentity, UserAssignedIdentities); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceNameFilter.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceNameFilter.cs index 86c77fe7c53e2..a73dad956d0d9 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceNameFilter.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceNameFilter.cs @@ -67,5 +67,23 @@ public override string GetFilterString() return string.Join(" and ", builder); } + + /// + public override bool Equals(object obj) + { + if (ReferenceEquals(this, obj)) + return true; + + if (obj is string other) + return Equals(other); + + return Equals(obj as ResourceNameFilter); + } + + /// + public override int GetHashCode() + { + return Name.GetHashCode(); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceTagFilter.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceTagFilter.cs index 528a374a81761..bb78dab0caafb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceTagFilter.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceTagFilter.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using Azure.Core; namespace Azure.ResourceManager.Core { @@ -61,5 +62,20 @@ public override string GetFilterString() { return $"tagName eq '{_tag.Item1}' and tagValue eq '{_tag.Item2}'"; } + + /// + public override bool Equals(object obj) + { + if (ReferenceEquals(this, obj)) + return true; + + return Equals(obj as ResourceTagFilter); + } + + /// + public override int GetHashCode() + { + return HashCodeBuilder.Combine(Key, Value); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceType.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceType.cs index 41b837798b81d..660389434aa4c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceType.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceType.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; namespace Azure.ResourceManager.Core @@ -52,10 +53,6 @@ internal ResourceType(ResourceType parent, string childType) { } - private ResourceType() - { - } - /// /// Gets the resource type Namespace. /// @@ -136,10 +133,7 @@ public static implicit operator string(ResourceType other) /// False if they are equal, otherwise True. public static bool operator !=(ResourceType left, ResourceType right) { - if (left is null) - return !(right is null); - - return !left.Equals(right); + return !(left == right); } /// @@ -186,26 +180,29 @@ public override string ToString() /// public override bool Equals(object other) { + if (ReferenceEquals(this, other)) + return true; + if (other is null) return false; var resourceObj = other as ResourceType; - if (!(resourceObj is null)) + if (resourceObj is not null) return Equals(resourceObj); var stringObj = other as string; - if (stringObj != null) + if (stringObj is not null) return Equals(stringObj); - return base.Equals(other); + return false; } /// public override int GetHashCode() { - return ToString().GetHashCode(); + return ToString().ToLower(CultureInfo.InvariantCulture).GetHashCode(); } /// @@ -247,5 +244,49 @@ private void Parse(string resourceIdOrType) Namespace = id.ResourceType.Namespace; } } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than the right. + public static bool operator <(ResourceType left, ResourceType right) + { + return ReferenceEquals(left, null) ? !ReferenceEquals(right, null) : left.CompareTo(right) < 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is less than or equal to the right. + public static bool operator <=(ResourceType left, ResourceType right) + { + return ReferenceEquals(left, null) || left.CompareTo(right) <= 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than the right. + public static bool operator >(ResourceType left, ResourceType right) + { + return !ReferenceEquals(left, null) && left.CompareTo(right) > 0; + } + + /// + /// Compares one with another instance. + /// + /// The object on the left side of the operator. + /// The object on the right side of the operator. + /// True if the left object is greater than or equal to the right. + public static bool operator >=(ResourceType left, ResourceType right) + { + return ReferenceEquals(left, null) ? ReferenceEquals(right, null) : left.CompareTo(right) >= 0; + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceTypeFilter.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceTypeFilter.cs index a6406b32cf35c..49383d5419a24 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceTypeFilter.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/ResourceTypeFilter.cs @@ -31,13 +31,13 @@ public ResourceTypeFilter(ResourceType resourceType) /// public bool Equals(string other) { - throw new NotImplementedException(); + return ResourceType.Equals(other); } /// public bool Equals(ResourceTypeFilter other) { - throw new NotImplementedException(); + return ResourceType.Equals(other); } /// @@ -45,5 +45,26 @@ public override string GetFilterString() { return $"resourceType EQ '{ResourceType}'"; } + + /// + public override bool Equals(object obj) + { + if (ReferenceEquals(this, obj)) + return true; + + if (ReferenceEquals(null, obj)) + return false; + + if (obj is string other) + return Equals(other); + + return Equals(obj as ResourceTypeFilter); + } + + /// + public override int GetHashCode() + { + return ResourceType.GetHashCode(); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Sku.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Sku.cs deleted file mode 100644 index e91cb794e6551..0000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Sku.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; - -namespace Azure.ResourceManager.Core -{ - /// - /// A class representing SKU for resource. - /// - public sealed partial class Sku : IEquatable, IComparable - { - /// - /// Initializes a new instance of the class. - /// - public Sku(string name) - { - Name = name; - } - - /// - /// Initializes a new instance of the class. - /// - /// SKU's name. - /// SKU's tier. - /// SKU's family. - /// SKU's size. - /// SKU's capacity. - internal Sku(string name, string tier, string family, string size, long? capacity = null) - { - Name = name; - Tier = tier; - Family = family; - Size = size; - Capacity = capacity; - } - - /// - /// Initializes a new instance of the class. - /// - /// The sku to copy from. - internal Sku(ResourceManager.Resources.Models.Sku sku) - : this(sku.Name, sku.Tier, sku.Family, sku.Size, sku.Capacity) - { - } - - /// - /// Gets the Name. - /// - public string Name { get; private set; } - - /// - /// Gets the Tier. - /// - public string Tier { get; private set; } - - /// - /// Gets the Family. - /// - public string Family { get; private set; } - - /// - /// Gets the Size. - /// - public string Size { get; private set; } - - /// - /// Gets the Capacity. - /// - public long? Capacity { get; private set; } - - /// - /// Compares this with another instance. - /// - /// object to compare. - /// -1 for less than, 0 for equals, 1 for greater than. - public int CompareTo(Sku other) - { - if (other == null) - return 1; - - if (object.ReferenceEquals(this, other)) - return 0; - - int compareResult = 0; - if ((compareResult = string.Compare(Name, other.Name, StringComparison.InvariantCultureIgnoreCase)) == 0 && - (compareResult = string.Compare(Family, other.Family, StringComparison.InvariantCultureIgnoreCase)) == 0 && - (compareResult = string.Compare(Size, other.Size, StringComparison.InvariantCultureIgnoreCase)) == 0 && - (compareResult = string.Compare(Tier, other.Tier, StringComparison.InvariantCultureIgnoreCase)) == 0) - { - return Nullable.Compare(Capacity, other.Capacity); - } - - return compareResult; - } - - /// - /// Compares this instance with another object and determines if they are equals. - /// - /// object to compare. - /// True if they are equals, otherwise false. - public bool Equals(Sku other) - { - if (other == null) - return false; - - if (object.ReferenceEquals(this, other)) - return true; - - return string.Equals(Name, other.Name, StringComparison.InvariantCultureIgnoreCase) && - string.Equals(Family, other.Family, StringComparison.InvariantCultureIgnoreCase) && - string.Equals(Size, other.Size, StringComparison.InvariantCultureIgnoreCase) && - string.Equals(Tier, other.Tier, StringComparison.InvariantCultureIgnoreCase) && - long.Equals(Capacity, other.Capacity); - } - } -} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs index ca0e7e62b93c7..71a0b7feda866 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs @@ -15,7 +15,7 @@ public class SubResource : SubResource /// Initializes an empty instance of for mocking. /// [InitializationConstructor] - public SubResource() + public SubResource() { } @@ -30,15 +30,14 @@ protected internal SubResource(string id) : base(id) { } /// [ReferenceType(typeof(ResourceIdentifier))] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:File may only contain a single type", Justification = "Types differ by type argument only")] - public partial class SubResource : IEquatable>, IEquatable, - IComparable>, IComparable + public partial class SubResource where TIdentifier : ResourceIdentifier { /// /// Initializes an empty instance of for mocking. /// [InitializationConstructor] - public SubResource() + public SubResource() { } @@ -47,7 +46,7 @@ public SubResource() [SerializationConstructor] protected internal SubResource(string id) { - Id = (TIdentifier)id; + Id = (TIdentifier)id; } /// @@ -55,35 +54,5 @@ protected internal SubResource(string id) /// /// public virtual TIdentifier Id { get; } - - /// - public int CompareTo(string other) - { - return string.Compare(Id, other, StringComparison.InvariantCultureIgnoreCase); - } - - /// - public int CompareTo(SubResource other) - { - if (other is null) - return 1; - - if (ReferenceEquals(this, other)) - return 0; - - return Id.CompareTo(other.Id); - } - - /// - public bool Equals(SubResource other) - { - return Id.Equals(other?.Id); - } - - /// - public bool Equals(string other) - { - return Id.Equals(other); - } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubscriptionProviderIdentifier.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubscriptionProviderIdentifier.cs index 573b82080402c..e6480212b2bf9 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubscriptionProviderIdentifier.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubscriptionProviderIdentifier.cs @@ -29,7 +29,7 @@ internal SubscriptionProviderIdentifier(SubscriptionProviderIdentifier parent, s } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for resources in the sanem namespace as their parent resource. /// /// The resource id of the parent resource. @@ -58,10 +58,8 @@ public static implicit operator SubscriptionProviderIdentifier(string other) { if (other is null) return null; - SubscriptionProviderIdentifier id = ResourceIdentifier.Create(other) as SubscriptionProviderIdentifier; - if (other is null) - throw new ArgumentException("Not a valid tenant provider resource", nameof(other)); - return id; + + return ResourceIdentifier.Create(other) as SubscriptionProviderIdentifier; } /// diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubscriptionResourceIdentifier.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubscriptionResourceIdentifier.cs index 1603bd8bfec24..c2ff342891724 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubscriptionResourceIdentifier.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubscriptionResourceIdentifier.cs @@ -31,7 +31,7 @@ internal SubscriptionResourceIdentifier(Guid id) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for resources in the sanem namespace as their parent resource. /// /// The resource id of the parent resource. @@ -45,7 +45,7 @@ internal SubscriptionResourceIdentifier(SubscriptionResourceIdentifier parent, R } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for resources in the sanem namespace as their parent resource. /// /// The resource id of the parent resource. @@ -59,7 +59,7 @@ internal SubscriptionResourceIdentifier(SubscriptionResourceIdentifier parent, s } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for resources in a different namespace than their parent resource. /// /// The resource id of the parent resource. @@ -76,7 +76,7 @@ internal SubscriptionResourceIdentifier(SubscriptionResourceIdentifier parent, s /// /// Initializes a new instance of the class. /// - /// The string representation of the subscription id. This can be in the form of a GUID, + /// The string representation of the subscription id. This can be in the form of a GUID, /// or a full resource id like '/subscriptions/xxxxx-yyyy-zzzz-wwwwww'. public SubscriptionResourceIdentifier(string resourceIdOrSubscriptionId) { @@ -123,10 +123,8 @@ public static implicit operator SubscriptionResourceIdentifier(string other) { if (other is null) return null; - SubscriptionResourceIdentifier id = ResourceIdentifier.Create(other) as SubscriptionResourceIdentifier; - if (id is null) - throw new ArgumentException("Not a valid subscription level resource", nameof(other)); - return id; + + return ResourceIdentifier.Create(other) as SubscriptionResourceIdentifier; } internal override string ToResourceString() diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SystemAssignedIdentity.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SystemAssignedIdentity.cs index e2f7dcbc73219..3225c30347592 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SystemAssignedIdentity.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SystemAssignedIdentity.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Core /// /// A class representing an Identity assigned by the system. /// - public sealed class SystemAssignedIdentity + public sealed class SystemAssignedIdentity : IEquatable { /// /// Initializes a new instance of the class with Null properties. @@ -158,5 +158,20 @@ public bool Equals(SystemAssignedIdentity other) return TenantId.Equals(other.TenantId) && PrincipalId.Equals(other.PrincipalId); } + + /// + public override bool Equals(object obj) + { + if (ReferenceEquals(this, obj)) + return true; + + return Equals(obj as SystemAssignedIdentity); + } + + /// + public override int GetHashCode() + { + return HashCodeBuilder.Combine(TenantId, PrincipalId); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TenantProviderIdentifier.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TenantProviderIdentifier.cs index e1169ec1b2f04..9a4b446144be1 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TenantProviderIdentifier.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TenantProviderIdentifier.cs @@ -27,7 +27,7 @@ internal TenantProviderIdentifier(TenantProviderIdentifier parent, string provid } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for resources in the sanem namespace as their parent resource. /// /// The resource id of the parent resource. @@ -55,10 +55,8 @@ public static implicit operator TenantProviderIdentifier(string other) { if (other is null) return null; - TenantProviderIdentifier id = ResourceIdentifier.Create(other) as TenantProviderIdentifier; - if (other is null) - throw new ArgumentException("Not a valid tenant provider resource", nameof(other)); - return id; + + return ResourceIdentifier.Create(other) as TenantProviderIdentifier; } /// diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TenantResourceIdentifier.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TenantResourceIdentifier.cs index 7c94ee87752ed..3cd8ff3766c9c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TenantResourceIdentifier.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TenantResourceIdentifier.cs @@ -16,7 +16,7 @@ internal TenantResourceIdentifier() } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// /// The resource type (including namespace and type). /// The name of the resource. @@ -26,7 +26,7 @@ internal TenantResourceIdentifier(ResourceType resourceType, string name) : base } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for resources in the same namespace as their parent. /// /// The parent resource id. @@ -39,7 +39,7 @@ internal TenantResourceIdentifier(TenantResourceIdentifier parent, ResourceType } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for resources in the same namespace as their parent. /// /// The parent resource id. @@ -53,7 +53,7 @@ internal TenantResourceIdentifier(TenantResourceIdentifier parent, string typeNa } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// for resources in a different namespace than their parent. /// /// The parent resource id. @@ -90,17 +90,15 @@ public static implicit operator TenantResourceIdentifier(string other) { if (other is null) return null; - TenantResourceIdentifier id = ResourceIdentifier.Create(other) as TenantResourceIdentifier; - if (id is null) - throw new ArgumentException("Not a valid tenant level resource", nameof(other)); - return id; + + return ResourceIdentifier.Create(other) as TenantResourceIdentifier; } /// - /// + /// Tries to get the provider from the resource Id. /// - /// - /// + /// The id to parse for a provider. + /// True if a provider exists. public virtual bool TryGetProvider(out string providerId) { providerId = default(string); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/UserAssignedIdentity.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/UserAssignedIdentity.cs index 3450deff2ff75..dffee4dae14ec 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/UserAssignedIdentity.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/UserAssignedIdentity.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Core /// /// A class representing an Identity assigned by the user. /// - public sealed class UserAssignedIdentity + public sealed class UserAssignedIdentity : IEquatable { /// /// Initializes a new instance of the class. @@ -26,12 +26,12 @@ public UserAssignedIdentity(Guid clientId, Guid principalId) /// /// Gets or sets the Client ID. /// - public Guid ClientId { get; set; } + public Guid ClientId { get; } /// /// Gets or sets the Principal ID. /// - public Guid PrincipalId { get; set; } + public Guid PrincipalId { get; } /// /// Converts a into an object. @@ -142,5 +142,20 @@ public bool Equals(UserAssignedIdentity other) return ClientId.Equals(other.ClientId) && PrincipalId.Equals(other.PrincipalId); } + + /// + public override bool Equals(object obj) + { + if (ReferenceEquals(this, obj)) + return true; + + return Equals(obj as UserAssignedIdentity); + } + + /// + public override int GetHashCode() + { + return HashCodeBuilder.Combine(ClientId, PrincipalId); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/WritableSubResource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/WritableSubResource.cs index 6427d54739054..a9cadddf216ba 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/WritableSubResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/WritableSubResource.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.Collections.Generic; namespace Azure.ResourceManager.Core { @@ -15,7 +16,7 @@ public class WritableSubResource : WritableSubResource /// Initializes an empty instance of for mocking. /// [InitializationConstructor] - public WritableSubResource() + public WritableSubResource() { } @@ -30,16 +31,15 @@ protected internal WritableSubResource(string id) : base(id) { } /// [ReferenceType(typeof(ResourceIdentifier))] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:File may only contain a single type", Justification = "Types differ by type argument only")] - public partial class WritableSubResource : IEquatable>, IEquatable, - IComparable>, IComparable + public partial class WritableSubResource where TIdentifier : ResourceIdentifier { /// /// Initializes an empty instance of for mocking. /// [InitializationConstructor] - public WritableSubResource() - { + public WritableSubResource() + { } /// Initializes a new instance of . @@ -55,34 +55,5 @@ protected internal WritableSubResource(string id) /// /// public virtual TIdentifier Id { get; set; } - - /// - public int CompareTo(string other) - { - return string.Compare(Id, other, StringComparison.InvariantCultureIgnoreCase); - } - - /// - public int CompareTo(WritableSubResource other) - { - if (other is null) - return 1; - - if (ReferenceEquals(this, other)) - return 0; - return Id.CompareTo(other.Id); - } - - /// - public bool Equals(WritableSubResource other) - { - return Id.Equals(other?.Id); - } - - /// - public bool Equals(string other) - { - return Id.Equals(other); - } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/GenericResourceExpandedOperationsTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/GenericResourceExpandedOperationsTests.cs new file mode 100644 index 0000000000000..6089c7ca8aa54 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/GenericResourceExpandedOperationsTests.cs @@ -0,0 +1,218 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Core.Extensions; +using NUnit.Framework; + +namespace Azure.ResourceManager.Core.Tests +{ + [Parallelizable] + public class GenericResourceExpandedOperationsTests : ResourceManagerTestBase + { + private const string GenericResourceExpandString = "createdTime,changedTime,provisioningState"; + + public GenericResourceExpandedOperationsTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + + [TestCase] + [RecordedTest] + public async Task Delete() + { + ResourceGroup rg = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).CreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + var aset = await CreateGenericAvailabilitySetAsync(rg.Id); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + Assert.DoesNotThrowAsync(async () => await resExp.DeleteAsync()); + } + + [TestCase] + [RecordedTest] + public async Task StartDelete() + { + var rgOp = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).StartCreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + ResourceGroup rg = await rgOp.WaitForCompletionAsync(); + var createOp = await StartCreateGenericAvailabilitySetAsync(rg.Id); + GenericResource aset = await createOp.WaitForCompletionAsync(); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + Assert.DoesNotThrowAsync(async () => + { + var deleteOp = await resExp.StartDeleteAsync(); + _ = await deleteOp.WaitForCompletionResponseAsync(); + }); + } + + [TestCase] + [RecordedTest] + public async Task AddTag() + { + ResourceGroup rg = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).CreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + var aset = await CreateGenericAvailabilitySetAsync(rg.Id); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + Assert.AreEqual(0, resExp.Data.Tags.Count); + aset = await resExp.AddTagAsync("key", "value"); + + Assert.IsTrue(aset.Data.Tags.ContainsKey("key")); + Assert.AreEqual("value", aset.Data.Tags["key"]); + } + + [TestCase] + [RecordedTest] + public async Task StartAddTag() + { + var rgOp = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).StartCreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + ResourceGroup rg = await rgOp.WaitForCompletionAsync(); + var createOp = await StartCreateGenericAvailabilitySetAsync(rg.Id); + GenericResource aset = await createOp.WaitForCompletionAsync(); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + Assert.AreEqual(0, resExp.Data.Tags.Count); + var addTagOp = await resExp.StartAddTagAsync("key", "value"); + aset = await addTagOp.WaitForCompletionAsync(); + + Assert.IsTrue(aset.Data.Tags.ContainsKey("key")); + Assert.AreEqual("value", aset.Data.Tags["key"]); + } + + [TestCase] + [RecordedTest] + public async Task SetTags() + { + ResourceGroup rg = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).CreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + var aset = await CreateGenericAvailabilitySetAsync(rg.Id); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + Assert.AreEqual(0, resExp.Data.Tags.Count); + + Dictionary tags = new Dictionary(); + tags.Add("key", "value"); + aset = await resExp.SetTagsAsync(tags); + + Assert.IsTrue(aset.Data.Tags.ContainsKey("key")); + Assert.AreEqual("value", aset.Data.Tags["key"]); + } + + [TestCase] + [RecordedTest] + public async Task StartSetTags() + { + var rgOp = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).StartCreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + ResourceGroup rg = await rgOp.WaitForCompletionAsync(); + var createOp = await StartCreateGenericAvailabilitySetAsync(rg.Id); + GenericResource aset = await createOp.WaitForCompletionAsync(); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + Dictionary tags = new Dictionary(); + tags.Add("key", "value"); + var setTagsOp = await resExp.StartSetTagsAsync(tags); + aset = await setTagsOp.WaitForCompletionAsync(); + + Assert.IsTrue(aset.Data.Tags.ContainsKey("key")); + Assert.AreEqual("value", aset.Data.Tags["key"]); + } + + [TestCase] + [RecordedTest] + public async Task RemoveTag() + { + ResourceGroup rg = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).CreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + var aset = await CreateGenericAvailabilitySetAsync(rg.Id); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + Dictionary tags = new Dictionary(); + tags.Add("key", "value"); + _ = await resExp.SetTagsAsync(tags); + + aset = await resExp.RemoveTagAsync("key"); + + Assert.IsFalse(aset.Data.Tags.ContainsKey("key")); + Assert.AreEqual(0, aset.Data.Tags.Count); + } + + [TestCase] + [RecordedTest] + public async Task StartRemoveTag() + { + var rgOp = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).StartCreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + ResourceGroup rg = await rgOp.WaitForCompletionAsync(); + var crateOp = await StartCreateGenericAvailabilitySetAsync(rg.Id); + GenericResource aset = await crateOp.WaitForCompletionAsync(); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + Dictionary tags = new Dictionary(); + tags.Add("key", "value"); + var setTagsOp = await resExp.StartSetTagsAsync(tags); + _ = await setTagsOp.WaitForCompletionAsync(); + + var removeTagOp = await resExp.StartRemoveTagAsync("key"); + aset = await removeTagOp.WaitForCompletionAsync(); + + Assert.IsFalse(aset.Data.Tags.ContainsKey("key")); + Assert.AreEqual(0, aset.Data.Tags.Count); + } + + [TestCase] + [RecordedTest] + public async Task Update() + { + ResourceGroup rg = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).CreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + var aset = await CreateGenericAvailabilitySetAsync(rg.Id); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + var data = ConstructGenericAvailabilitySet(); + data.Tags.Add("key", "value"); + aset = await resExp.UpdateAsync(data); + + Assert.IsTrue(aset.Data.Tags.ContainsKey("key")); + Assert.AreEqual("value", aset.Data.Tags["key"]); + + Assert.ThrowsAsync(async () => _ = await resExp.UpdateAsync(null)); + } + + [TestCase] + [RecordedTest] + public async Task StartUpdate() + { + var rgOp = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).StartCreateOrUpdateAsync(Recording.GenerateAssetName("testrg")); + ResourceGroup rg = await rgOp.WaitForCompletionAsync(); + var createOp = await StartCreateGenericAvailabilitySetAsync(rg.Id); + GenericResource aset = await createOp.WaitForCompletionAsync(); + + var resExp = await GetGenericResourceExpandedAsync(aset.Id, null, GenericResourceExpandString); + var data = ConstructGenericAvailabilitySet(); + data.Tags.Add("key", "value"); + var updateOp = await resExp.StartUpdateAsync(data); + aset = await updateOp.WaitForCompletionAsync(); + + Assert.IsTrue(aset.Data.Tags.ContainsKey("key")); + Assert.AreEqual("value", aset.Data.Tags["key"]); + + Assert.ThrowsAsync(async () => + { + var updateOp = await resExp.StartUpdateAsync(null); + _ = await updateOp.WaitForCompletionAsync(); + }); + } + + private async Task GetGenericResourceExpandedAsync( + ResourceIdentifier resourceId, + string filter = default, + string expand = default) + { + var resExp = await (Client.DefaultSubscription.GetGenericResources() + .ListAsync(filter, expand) + .FirstOrDefaultAsync(r => r.Id.Equals(resourceId))); + + Assert.NotNull(resExp); + Assert.NotNull(resExp.Data.CreatedTime); + Assert.NotNull(resExp.Data.ChangedTime); + Assert.IsFalse(string.IsNullOrWhiteSpace(resExp.Data.ProvisioningState)); + + return resExp; + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs index a74688b907896..82d88f3884014 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs @@ -34,7 +34,8 @@ protected static GenericResourceData ConstructGenericAvailabilitySet() { var data = new GenericResourceData(); data.Location = LocationData.WestUS2; - data.Sku = new Sku("Aligned"); + data.Sku = new Sku(); + data.Sku.Name = "Aligned"; var propertyBag = new Dictionary(); propertyBag.Add("platformUpdateDomainCount", 5); propertyBag.Add("platformFaultDomainCount", 2); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/AddTag().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/AddTag().json new file mode 100644 index 0000000000000..85b8b87620dba --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/AddTag().json @@ -0,0 +1,4556 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "c1d57b70be3d2be28820e68927c4ab18", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8513dbb-2397-4ae5-a961-2a30b2a2f8da", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "b8513dbb-2397-4ae5-a961-2a30b2a2f8da", + "x-ms-routing-request-id": "WESTUS2:20210629T231046Z:b8513dbb-2397-4ae5-a961-2a30b2a2f8da" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg8441?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-66b1bfb482c05648bd1a94b024e26504-c81537f919bace40-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "3e0e68fd7f34916e1cfc496c208f56c6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1f002acd-2e19-4cfb-a180-a8423625e484", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "1f002acd-2e19-4cfb-a180-a8423625e484", + "x-ms-routing-request-id": "WESTUS2:20210629T231047Z:1f002acd-2e19-4cfb-a180-a8423625e484" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441", + "name": "testrg8441", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-a97eeb0340286846992a70a07146ef5a-0607c341891afb45-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "ffd7f42058e432bc0f131b879bc9b41f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0cacab78-9d14-4eef-ba80-8b943d5386cd", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "0cacab78-9d14-4eef-ba80-8b943d5386cd", + "x-ms-routing-request-id": "WESTUS2:20210629T231048Z:0cacab78-9d14-4eef-ba80-8b943d5386cd" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-a97eeb0340286846992a70a07146ef5a-2cedb4551fa22343-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "fa631ada3b3267fc2f21c198bf689090", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "406", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fa631ada3b3267fc2f21c198bf689090", + "x-ms-correlation-request-id": "1cbcde3f-970b-47cb-8768-f406db13ebbe", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1159", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "ccbefff7-04a0-4ab5-ac72-ff9e598dac59", + "x-ms-routing-request-id": "WESTUS2:20210629T231048Z:1cbcde3f-970b-47cb-8768-f406db13ebbe" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset315\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-24eaceec85bd814bb5d7bb9225701449-956355e0885ad14d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "75454d94ccf3e4bbf86fcfc3962372a6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "4442", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97e0bfea-3d46-4834-a189-481c655fc3f1", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "97e0bfea-3d46-4834-a189-481c655fc3f1", + "x-ms-routing-request-id": "WESTUS2:20210629T231049Z:97e0bfea-3d46-4834-a189-481c655fc3f1" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:48.7673429Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-5397661763b8664fb8161c0dff02fce9-62f60d7ad7a75e43-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "62c58b82fd254dde0153a82615901526", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "434", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "62c58b82fd254dde0153a82615901526", + "x-ms-correlation-request-id": "8d764f64-767e-4730-a50b-5cdc092a4c8d", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3999,Microsoft.Compute/LowCostGet30Min;31967", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "6989d169-3e97-45ea-97bd-4eacd13ee2d3", + "x-ms-routing-request-id": "WESTUS2:20210629T231049Z:8d764f64-767e-4730-a50b-5cdc092a4c8d" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset315\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-5397661763b8664fb8161c0dff02fce9-41caf74457738844-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "72048ea01b23f69c7dbfbed0bd55792d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "430", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "72048ea01b23f69c7dbfbed0bd55792d", + "x-ms-correlation-request-id": "6786314d-346d-4c14-86b4-6e8c2be0862e", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1158", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "4c1bf670-063a-447c-9ad0-4697c1317ce1", + "x-ms-routing-request-id": "WESTUS2:20210629T231049Z:6786314d-346d-4c14-86b4-6e8c2be0862e" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset315\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1301537516", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/AddTag()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/AddTag()Async.json new file mode 100644 index 0000000000000..3c5512e65d259 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/AddTag()Async.json @@ -0,0 +1,4556 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "f7ab9e64709ede18284457b76050b3ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b0ddddb2-0fa0-4617-ba0b-0b4d53a5cc15", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "b0ddddb2-0fa0-4617-ba0b-0b4d53a5cc15", + "x-ms-routing-request-id": "WESTUS2:20210629T225346Z:b0ddddb2-0fa0-4617-ba0b-0b4d53a5cc15" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg6694?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-44a09cdc39463e42a747059bfcefca16-778d793772c8654a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "77f51a74cdb5ab74c920fe86e9ba446d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6746bb88-b8c3-40de-a960-972eaddecd2d", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "6746bb88-b8c3-40de-a960-972eaddecd2d", + "x-ms-routing-request-id": "WESTUS2:20210629T225347Z:6746bb88-b8c3-40de-a960-972eaddecd2d" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694", + "name": "testrg6694", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f5e3051750d57d4cbdcd4c58150a780f-86d0a09649d1644c-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5c3c785d4abdd6b2e7540748b0c4bc6b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e91a7219-1e5f-4b88-b01c-2fa82e08d4d6", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "e91a7219-1e5f-4b88-b01c-2fa82e08d4d6", + "x-ms-routing-request-id": "WESTUS2:20210629T225347Z:e91a7219-1e5f-4b88-b01c-2fa82e08d4d6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-f5e3051750d57d4cbdcd4c58150a780f-6a621d9b4dfa654a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "a3e517a2afe536d04cd4501a583f8913", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "406", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a3e517a2afe536d04cd4501a583f8913", + "x-ms-correlation-request-id": "3059ee5d-e9fb-4074-842f-796706a84887", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1194", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "f093ce17-2d8d-468a-a97c-81aafd982729", + "x-ms-routing-request-id": "WESTUS2:20210629T225348Z:3059ee5d-e9fb-4074-842f-796706a84887" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset611\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b1fae15f6dc9074d8603f23a1918873d-bb960cd5bfc1134c-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "a3461b41ca5fad2fa7060fe8fa977ea8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "4442", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9bdddf5d-a3d2-4a46-b49c-06dbc25c2b0d", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "9bdddf5d-a3d2-4a46-b49c-06dbc25c2b0d", + "x-ms-routing-request-id": "WESTUS2:20210629T225348Z:9bdddf5d-a3d2-4a46-b49c-06dbc25c2b0d" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.3165381Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-20715cfc00eedb4f803eec504d4ee18b-fc1fb35bde042c41-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "64fef3cb81d038fb5f146044e157c8e9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "434", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "64fef3cb81d038fb5f146044e157c8e9", + "x-ms-correlation-request-id": "62ddeb31-ba5b-4695-a768-b27be7173322", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3999,Microsoft.Compute/LowCostGet30Min;31999", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "44fe7704-4509-4b75-9a5f-23463cfd988d", + "x-ms-routing-request-id": "WESTUS2:20210629T225348Z:62ddeb31-ba5b-4695-a768-b27be7173322" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset611\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-20715cfc00eedb4f803eec504d4ee18b-cc932af52f075845-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "3cd9f3bbe6f87fb41b4692685acfd5ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "430", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3cd9f3bbe6f87fb41b4692685acfd5ab", + "x-ms-correlation-request-id": "8244b62b-bc79-4841-8ea0-e9026fb59805", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1193", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "e58c38ac-3cf5-477f-8ab3-3902a661586b", + "x-ms-routing-request-id": "WESTUS2:20210629T225349Z:8244b62b-bc79-4841-8ea0-e9026fb59805" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset611\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "996470952", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Delete().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Delete().json new file mode 100644 index 0000000000000..2ed4761d65abb --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Delete().json @@ -0,0 +1,4484 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "c2a3b0bdfd5737b981d089c76b0a4dcb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "32670a34-bdd7-4835-8ba9-4a0be8ab90e8", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "32670a34-bdd7-4835-8ba9-4a0be8ab90e8", + "x-ms-routing-request-id": "WESTUS2:20210629T231050Z:32670a34-bdd7-4835-8ba9-4a0be8ab90e8" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg9419?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-13c9fe9958169347b59d9b7580b65847-71831314f993674d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "52fd5bf7a4b4e8b013ef813b65463a53", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7b7ddd5b-d0d9-4d42-ba56-083894e4cf4b", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "7b7ddd5b-d0d9-4d42-ba56-083894e4cf4b", + "x-ms-routing-request-id": "WESTUS2:20210629T231051Z:7b7ddd5b-d0d9-4d42-ba56-083894e4cf4b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9419", + "name": "testrg9419", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-25fa69a92ccbac43babf1347c46bec54-767612da91e61e4b-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "c646bb2b3b3c0c132f520c8cb202926f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f8a3420b-7957-4fa5-bd50-be06a3c6ea08", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "f8a3420b-7957-4fa5-bd50-be06a3c6ea08", + "x-ms-routing-request-id": "WESTUS2:20210629T231051Z:f8a3420b-7957-4fa5-bd50-be06a3c6ea08" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9419/providers/Microsoft.Compute/availabilitySets/test-aset5315?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-25fa69a92ccbac43babf1347c46bec54-3d9b50dd4974894d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "c385a20d09fef30bd9430d37fb1b894f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c385a20d09fef30bd9430d37fb1b894f", + "x-ms-correlation-request-id": "911b72fe-3bcc-4c4c-9991-bbfbd645f6b6", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1157", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "d54189ba-21e3-47ee-8284-0ebf5bd4b809", + "x-ms-routing-request-id": "WESTUS2:20210629T231051Z:911b72fe-3bcc-4c4c-9991-bbfbd645f6b6" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset5315\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9419/providers/Microsoft.Compute/availabilitySets/test-aset5315\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-02268e2aa8fd5346a8e0e2d46747d492-bd28ec709ed6d54d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "a358ccee8fb42222af53ecf82ddb1013", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "4845", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bbefe190-223c-408c-a250-4c61aa506ba9", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "bbefe190-223c-408c-a250-4c61aa506ba9", + "x-ms-routing-request-id": "WESTUS2:20210629T231051Z:bbefe190-223c-408c-a250-4c61aa506ba9" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:49.562002Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9419/providers/Microsoft.Compute/availabilitySets/test-aset5315", + "name": "test-aset5315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:51.6671268Z", + "changedTime": "2021-06-29T23:10:51.7655176Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9419/providers/Microsoft.Compute/availabilitySets/test-aset5315?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f9931a789bbddd40a13fb07d4a0a62fb-03f47006e131e347-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "6818bdc80023eaeae765dab884b94f7d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 29 Jun 2021 23:10:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6818bdc80023eaeae765dab884b94f7d", + "x-ms-correlation-request-id": "71cd60cd-4d7c-44d7-b0c1-f1aa0fb8ce65", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1179", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "40b92b2b-8155-4961-bb61-6a73bee033e9", + "x-ms-routing-request-id": "WESTUS2:20210629T231052Z:71cd60cd-4d7c-44d7-b0c1-f1aa0fb8ce65" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "1429283581", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Delete()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Delete()Async.json new file mode 100644 index 0000000000000..ad4217d0e9bfe --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Delete()Async.json @@ -0,0 +1,4484 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "6f8fb8fcdaa26f1e2d2efbd1cbf7cda0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5c861567-e0ec-4bd6-b5df-2f554eafd4fc", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "5c861567-e0ec-4bd6-b5df-2f554eafd4fc", + "x-ms-routing-request-id": "WESTUS2:20210629T225349Z:5c861567-e0ec-4bd6-b5df-2f554eafd4fc" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg3368?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-45e1b538166c5e4382a9237a9cc06d53-e0085c3663f80f44-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "502a0eca1482db0b23fe7530c094abda", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8b6d51cb-d1cb-443f-9fe7-18447e794c00", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "8b6d51cb-d1cb-443f-9fe7-18447e794c00", + "x-ms-routing-request-id": "WESTUS2:20210629T225350Z:8b6d51cb-d1cb-443f-9fe7-18447e794c00" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3368", + "name": "testrg3368", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f523cbf6b3a75a4fa34cba9a8bbbdac5-dcab1003fb336847-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "3d14ab30a124ac0bd8d470801d3613b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0eb6188d-d5d7-4467-a0b5-07f21e746c2e", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "0eb6188d-d5d7-4467-a0b5-07f21e746c2e", + "x-ms-routing-request-id": "WESTUS2:20210629T225350Z:0eb6188d-d5d7-4467-a0b5-07f21e746c2e" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3368/providers/Microsoft.Compute/availabilitySets/test-aset1409?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-f523cbf6b3a75a4fa34cba9a8bbbdac5-f510f492c6a2684b-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "bd5c3dc87a5284a3937edba83e6d9a50", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "bd5c3dc87a5284a3937edba83e6d9a50", + "x-ms-correlation-request-id": "1bd8d54f-b7f0-48a5-8b23-8ddff31a848c", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1192", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "4250afbf-9087-41c5-8881-3068bccc48f5", + "x-ms-routing-request-id": "WESTUS2:20210629T225351Z:1bd8d54f-b7f0-48a5-8b23-8ddff31a848c" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1409\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3368/providers/Microsoft.Compute/availabilitySets/test-aset1409\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-7647256e9e7e854192d1fef059079915-3cd9201322daf541-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "57f77d611d4eb59c0890a9a5c5626d6b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "4846", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "596931d3-d610-49f0-8eb2-0ddb0feb43dd", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "596931d3-d610-49f0-8eb2-0ddb0feb43dd", + "x-ms-routing-request-id": "WESTUS2:20210629T225351Z:596931d3-d610-49f0-8eb2-0ddb0feb43dd" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.9058134Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3368/providers/Microsoft.Compute/availabilitySets/test-aset1409", + "name": "test-aset1409", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:50.9388227Z", + "changedTime": "2021-06-29T22:53:51.0219112Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3368/providers/Microsoft.Compute/availabilitySets/test-aset1409?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-2bf9969b06d4dc46819f5215f93b6730-f965586abfc9e142-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "4189203af26ed02697ef9daed062e938", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 29 Jun 2021 22:53:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4189203af26ed02697ef9daed062e938", + "x-ms-correlation-request-id": "e0dc3bfb-a6ad-482c-b7e4-2a79ea1cdc78", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1194", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "47705673-d7df-42a7-9933-84832f3366d3", + "x-ms-routing-request-id": "WESTUS2:20210629T225352Z:e0dc3bfb-a6ad-482c-b7e4-2a79ea1cdc78" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "1141858165", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/RemoveTag().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/RemoveTag().json new file mode 100644 index 0000000000000..63703c962d3e2 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/RemoveTag().json @@ -0,0 +1,4693 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "8c5487fb16c121c51e995cd7c23560df", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8b2f7f51-d19c-4b5f-b457-dd73552d5379", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "8b2f7f51-d19c-4b5f-b457-dd73552d5379", + "x-ms-routing-request-id": "WESTUS2:20210629T231053Z:8b2f7f51-d19c-4b5f-b457-dd73552d5379" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg6956?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-6bb7d34bc164324fb0310bc9012aa706-f8f97b5e1d424b4e-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "07b2c2a3e1f54ade5fb76efac495e9c3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "91480cfc-13a7-4496-aa0c-60954aafdfca", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "91480cfc-13a7-4496-aa0c-60954aafdfca", + "x-ms-routing-request-id": "WESTUS2:20210629T231053Z:91480cfc-13a7-4496-aa0c-60954aafdfca" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956", + "name": "testrg6956", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e8d8105a255ddf4eb945afc732c14207-330c4daa0c88024f-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "3317a97b75099d077321318f2445da90", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "668cb9ea-b420-4eee-8eea-b5ac5e0b1ba3", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "668cb9ea-b420-4eee-8eea-b5ac5e0b1ba3", + "x-ms-routing-request-id": "WESTUS2:20210629T231054Z:668cb9ea-b420-4eee-8eea-b5ac5e0b1ba3" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-e8d8105a255ddf4eb945afc732c14207-7d6c272e781b4d48-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5b37a43f050475a542625e57275a0472", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5b37a43f050475a542625e57275a0472", + "x-ms-correlation-request-id": "af888499-b80b-4737-a59a-dd6f7044c16c", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1156", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "64d84e01-e007-40a4-9716-73db14fe010b", + "x-ms-routing-request-id": "WESTUS2:20210629T231054Z:af888499-b80b-4737-a59a-dd6f7044c16c" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset4748\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-c095c110c0249844a17a23510858a981-eae81ac7540a6644-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "f084699367b1753303a1f1a716af7619", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "4844", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "582c4e0c-44ff-4593-a56e-2fe298791834", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "582c4e0c-44ff-4593-a56e-2fe298791834", + "x-ms-routing-request-id": "WESTUS2:20210629T231054Z:582c4e0c-44ff-4593-a56e-2fe298791834" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:49.562002Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748", + "name": "test-aset4748", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:54.3601708Z", + "changedTime": "2021-06-29T23:10:54.466847Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d2dae16de64ea541bd8fabad134fdb1c-ead261bf74de2a4e-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "997abe1d238b60c80bebb09982e5c787", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "436", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "997abe1d238b60c80bebb09982e5c787", + "x-ms-correlation-request-id": "d6480d63-4ee5-4c67-8405-3d714cd4fa62", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31966", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "01253d92-a64d-420d-96f6-d2efe09b4537", + "x-ms-routing-request-id": "WESTUS2:20210629T231054Z:d6480d63-4ee5-4c67-8405-3d714cd4fa62" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset4748\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-d2dae16de64ea541bd8fabad134fdb1c-6fc0317fda6f214a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "bdc3ec2713d5adc15743b325edf136fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "bdc3ec2713d5adc15743b325edf136fb", + "x-ms-correlation-request-id": "42a8bf2a-3b35-4174-ab67-7189eca4da39", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1155", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "66634e66-77cb-424d-b8de-bf060456ca68", + "x-ms-routing-request-id": "WESTUS2:20210629T231055Z:42a8bf2a-3b35-4174-ab67-7189eca4da39" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset4748\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e03ce655a5a15d438a07a9a02efc99a3-1b0e074c2551894b-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "29806adab8eb0943fdcd41486fa27219", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "460", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "29806adab8eb0943fdcd41486fa27219", + "x-ms-correlation-request-id": "98ec6e00-4813-431d-ad54-f876fe3e99c5", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31965", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "bae712ec-5d14-4c7a-8bf8-57ad7f1d182e", + "x-ms-routing-request-id": "WESTUS2:20210629T231055Z:98ec6e00-4813-431d-ad54-f876fe3e99c5" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset4748\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "154", + "Content-Type": "application/json", + "traceparent": "00-e03ce655a5a15d438a07a9a02efc99a3-f0c56bebe66b7840-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "19a5b5b5d944854606531cb12efaf6bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "19a5b5b5d944854606531cb12efaf6bd", + "x-ms-correlation-request-id": "f72e0a87-070d-4467-932c-54c76874e2b8", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;234,Microsoft.Compute/PutVM30Min;1154", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "b970e7e3-2da6-4de2-a32c-5dddc4f85f07", + "x-ms-routing-request-id": "WESTUS2:20210629T231055Z:f72e0a87-070d-4467-932c-54c76874e2b8" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset4748\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "405457586", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/RemoveTag()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/RemoveTag()Async.json new file mode 100644 index 0000000000000..2fb44ab2dc1e2 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/RemoveTag()Async.json @@ -0,0 +1,4693 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "82d208e575bafe7cca7c0930f9a84ef8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e9861f4b-3a37-44bf-8360-d5f4aa6ceda7", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "e9861f4b-3a37-44bf-8360-d5f4aa6ceda7", + "x-ms-routing-request-id": "WESTUS2:20210629T225352Z:e9861f4b-3a37-44bf-8360-d5f4aa6ceda7" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg3710?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-727a0e8e46ae25468d8b1d150124ecf9-8c33156976651145-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "130ec5e7ab454556ee3fd31ae9f14cfd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c27c6a5d-0882-4473-817a-c95c208eb315", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "c27c6a5d-0882-4473-817a-c95c208eb315", + "x-ms-routing-request-id": "WESTUS2:20210629T225353Z:c27c6a5d-0882-4473-817a-c95c208eb315" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710", + "name": "testrg3710", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-65ef9e7b2a91684cbe3c7f66d6b7a739-74dd5b9d2fd8fa4e-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "240ec2754ba3fbdf5e3793ecd61b14f9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "59716b5a-6c5b-4aa1-90ad-8e969f52b9b0", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "59716b5a-6c5b-4aa1-90ad-8e969f52b9b0", + "x-ms-routing-request-id": "WESTUS2:20210629T225353Z:59716b5a-6c5b-4aa1-90ad-8e969f52b9b0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-65ef9e7b2a91684cbe3c7f66d6b7a739-875d9e827c132e4d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "14c7fb0c9fdc7b5c3ccb35a9e4e08bbd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "14c7fb0c9fdc7b5c3ccb35a9e4e08bbd", + "x-ms-correlation-request-id": "23ab2deb-a4ec-42e8-80e2-7ac39cdc0703", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1191", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "f5695410-45fb-4acf-885e-d2627d3e3eae", + "x-ms-routing-request-id": "WESTUS2:20210629T225354Z:23ab2deb-a4ec-42e8-80e2-7ac39cdc0703" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1454\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-06a5b76b9e6f0a4ab0e50f6e5378dcdb-e34369b92f12b141-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "f6dd20bfe884d5396692e7d71636177d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "4846", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c6d5802-3ed1-4d11-a7d9-40675769fcba", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "4c6d5802-3ed1-4d11-a7d9-40675769fcba", + "x-ms-routing-request-id": "WESTUS2:20210629T225354Z:4c6d5802-3ed1-4d11-a7d9-40675769fcba" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.9058134Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454", + "name": "test-aset1454", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:53.9956705Z", + "changedTime": "2021-06-29T22:53:54.1213806Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b317175978028e478d631ecc6d0869d7-52bd6a9b9891b241-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "f3b9d6ab88e9490fb74de6c4b9e8b9e3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "436", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f3b9d6ab88e9490fb74de6c4b9e8b9e3", + "x-ms-correlation-request-id": "8ed734a2-7dca-48de-9c24-5e56247077b3", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31998", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "0356f99a-8f35-438c-9894-f8b9e9bff88a", + "x-ms-routing-request-id": "WESTUS2:20210629T225354Z:8ed734a2-7dca-48de-9c24-5e56247077b3" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1454\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-b317175978028e478d631ecc6d0869d7-324cfbd5b76e4747-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "c3ea11b495034b38a95d2557da6b63f8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c3ea11b495034b38a95d2557da6b63f8", + "x-ms-correlation-request-id": "c99f8fc6-50b0-4def-99d4-b7cbcf9dc2d2", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1190", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "a572b501-1ece-4c3e-a56d-7a07c9d1be4b", + "x-ms-routing-request-id": "WESTUS2:20210629T225354Z:c99f8fc6-50b0-4def-99d4-b7cbcf9dc2d2" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1454\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-91f2125eb9f2294ab210c6b4c0bb3d7e-0b5482630fd74c40-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "042304d9534c167a9e6d4a8b63b76f4b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "460", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "042304d9534c167a9e6d4a8b63b76f4b", + "x-ms-correlation-request-id": "a5468ed7-c00b-497f-9efa-a8cfbf1f7f1e", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31997", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "f8d82ddf-9c0c-4daa-a468-823acbeb9910", + "x-ms-routing-request-id": "WESTUS2:20210629T225354Z:a5468ed7-c00b-497f-9efa-a8cfbf1f7f1e" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1454\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "154", + "Content-Type": "application/json", + "traceparent": "00-91f2125eb9f2294ab210c6b4c0bb3d7e-858ad58edf94dc4a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "51c4ede9cd1f9143d6b3b27056014934", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "51c4ede9cd1f9143d6b3b27056014934", + "x-ms-correlation-request-id": "e897a704-35a2-4097-b306-7c096a9fe199", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;234,Microsoft.Compute/PutVM30Min;1189", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "07204f2b-6f3e-4c91-881b-630d85787582", + "x-ms-routing-request-id": "WESTUS2:20210629T225355Z:e897a704-35a2-4097-b306-7c096a9fe199" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1454\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "2043030208", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/SetTags().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/SetTags().json new file mode 100644 index 0000000000000..78726a3ffa438 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/SetTags().json @@ -0,0 +1,4584 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "4262e90fc35037291d1b55b4586508a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "102c0dff-1293-4d44-864b-c38511dbba1b", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "102c0dff-1293-4d44-864b-c38511dbba1b", + "x-ms-routing-request-id": "WESTUS2:20210629T231055Z:102c0dff-1293-4d44-864b-c38511dbba1b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg9543?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-eb01ea09987c1243a7f6de3cbcd7c314-ba24986d1fb0d340-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "52ea394208f2d0e13f858b4e885ca086", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7cebed30-784c-4518-9a60-1c8fb8043119", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "7cebed30-784c-4518-9a60-1c8fb8043119", + "x-ms-routing-request-id": "WESTUS2:20210629T231056Z:7cebed30-784c-4518-9a60-1c8fb8043119" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543", + "name": "testrg9543", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-5fcc7e9d289a7244bb0320a1ad13fa57-eb6c7d2051e08c47-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "273f1312a96b23c6365273f6b3c8454f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c24ec81b-dc3d-4332-ba0d-dcc3513e3cd0", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "c24ec81b-dc3d-4332-ba0d-dcc3513e3cd0", + "x-ms-routing-request-id": "WESTUS2:20210629T231056Z:c24ec81b-dc3d-4332-ba0d-dcc3513e3cd0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-5fcc7e9d289a7244bb0320a1ad13fa57-8780b203aec8ac42-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "698903ff1dd180e171113d9de895bfb4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "698903ff1dd180e171113d9de895bfb4", + "x-ms-correlation-request-id": "f880b4ae-f3fd-4018-bf6c-a4889439d84c", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;233,Microsoft.Compute/PutVM30Min;1153", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "3664ca5d-6039-42ca-8537-855e0e1982ea", + "x-ms-routing-request-id": "WESTUS2:20210629T231057Z:f880b4ae-f3fd-4018-bf6c-a4889439d84c" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1460\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-917fdd7f848cce4aa0e0c91a6a0d4f90-1975e1f12d4fe24d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5988ff461c17f53d31beb5596c293ba1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "5234", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1200f391-f9aa-43fe-afe0-d3089c0e3e1b", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "1200f391-f9aa-43fe-afe0-d3089c0e3e1b", + "x-ms-routing-request-id": "WESTUS2:20210629T231057Z:1200f391-f9aa-43fe-afe0-d3089c0e3e1b" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:49.562002Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748", + "name": "test-aset4748", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:54.3601708Z", + "changedTime": "2021-06-29T23:10:55.2915703Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460", + "name": "test-aset1460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:57.42697Z", + "changedTime": "2021-06-29T23:10:57.6246866Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b292a46d8371fa409648d028f0612ce4-c91106c418f84546-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "6ac7be93507535e52cf945a2612c1297", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "436", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6ac7be93507535e52cf945a2612c1297", + "x-ms-correlation-request-id": "7fd6ea40-8586-4354-8c83-3b18e5f111a1", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31964", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "c23621ff-f21c-4670-8f0b-4d37e22ea14d", + "x-ms-routing-request-id": "WESTUS2:20210629T231057Z:7fd6ea40-8586-4354-8c83-3b18e5f111a1" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1460\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-b292a46d8371fa409648d028f0612ce4-7eb4edd412b96a47-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "e8568085650c119d0b5dc3aa147d23fa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e8568085650c119d0b5dc3aa147d23fa", + "x-ms-correlation-request-id": "9c8cb401-6989-4662-bbbe-52b4a54a9e62", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;232,Microsoft.Compute/PutVM30Min;1152", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "967ddf0a-977a-4529-bffc-58b2c69d6bf8", + "x-ms-routing-request-id": "WESTUS2:20210629T231058Z:9c8cb401-6989-4662-bbbe-52b4a54a9e62" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1460\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "195675395", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/SetTags()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/SetTags()Async.json new file mode 100644 index 0000000000000..d2b0a94a55a96 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/SetTags()Async.json @@ -0,0 +1,4584 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "62bc39a80cc19de38b937b8081cbf5ce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1ff8447f-b3c0-4252-a1f0-6b65e7a2ac7a", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "1ff8447f-b3c0-4252-a1f0-6b65e7a2ac7a", + "x-ms-routing-request-id": "WESTUS2:20210629T225355Z:1ff8447f-b3c0-4252-a1f0-6b65e7a2ac7a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg5139?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-fc0ece19480c3d49b8a5da2e9352658e-fc2b4aa5221d1b43-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "0953be5d30066a5ae627a736f6f9c6fe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "be40f12d-8654-4438-aaf2-f12bb82f1ea3", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "be40f12d-8654-4438-aaf2-f12bb82f1ea3", + "x-ms-routing-request-id": "WESTUS2:20210629T225356Z:be40f12d-8654-4438-aaf2-f12bb82f1ea3" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139", + "name": "testrg5139", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-921989f6a11e434eb3e70e9822e978af-dd61892898e56f44-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "763e52808424edaddf5ed4ffdb214efd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0dbd62eb-6661-4fc6-ab3e-f1191e727faa", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "0dbd62eb-6661-4fc6-ab3e-f1191e727faa", + "x-ms-routing-request-id": "WESTUS2:20210629T225356Z:0dbd62eb-6661-4fc6-ab3e-f1191e727faa" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-921989f6a11e434eb3e70e9822e978af-9aa8797ffc2ce44e-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "7b37376fa2106108f7dae53c669599b5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7b37376fa2106108f7dae53c669599b5", + "x-ms-correlation-request-id": "c7b40fdc-4218-4cf5-bdfd-8b3e40b9dc8e", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;233,Microsoft.Compute/PutVM30Min;1188", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "2fc3bb40-ccfd-47cc-b90c-abf2c2209d5f", + "x-ms-routing-request-id": "WESTUS2:20210629T225357Z:c7b40fdc-4218-4cf5-bdfd-8b3e40b9dc8e" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset6457\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-6d9c0770b2f8614b9e342a94c623a25c-47e2b5b9a7b8a44f-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "c1863959828eddbb49dc7e499e70864a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "5236", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7c0bf10d-a77d-4913-8a9d-1c3ed036724b", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "7c0bf10d-a77d-4913-8a9d-1c3ed036724b", + "x-ms-routing-request-id": "WESTUS2:20210629T225357Z:7c0bf10d-a77d-4913-8a9d-1c3ed036724b" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.9058134Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454", + "name": "test-aset1454", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:53.9956705Z", + "changedTime": "2021-06-29T22:53:55.0395886Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457", + "name": "test-aset6457", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:57.249965Z", + "changedTime": "2021-06-29T22:53:57.3754527Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-cee4e77576066a4ba6f711d50b4d2991-acca7b2c97e21d47-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "257d1ec5abd67b6dfefcd5f47b36db8c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "436", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "257d1ec5abd67b6dfefcd5f47b36db8c", + "x-ms-correlation-request-id": "9d4fb67a-8dd0-4068-b2ea-3e8630274704", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31996", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "d83423e5-31e7-4216-ada0-1ddbc2f22e35", + "x-ms-routing-request-id": "WESTUS2:20210629T225357Z:9d4fb67a-8dd0-4068-b2ea-3e8630274704" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset6457\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-cee4e77576066a4ba6f711d50b4d2991-a369a60176c7f244-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "2de3decfd80eff26fa6d59b375f09b35", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2de3decfd80eff26fa6d59b375f09b35", + "x-ms-correlation-request-id": "0ae4c660-9bdf-4e11-921e-e3971d537f87", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;232,Microsoft.Compute/PutVM30Min;1187", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "7bb2017d-da46-4388-8982-3f25bf4fe977", + "x-ms-routing-request-id": "WESTUS2:20210629T225358Z:0ae4c660-9bdf-4e11-921e-e3971d537f87" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset6457\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "732672590", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartAddTag().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartAddTag().json new file mode 100644 index 0000000000000..1f07024e0f022 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartAddTag().json @@ -0,0 +1,4599 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "329098ef8310efdca8b5b40081c12624", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6dd773de-744d-491e-99ab-b84cac1e83d9", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "6dd773de-744d-491e-99ab-b84cac1e83d9", + "x-ms-routing-request-id": "WESTUS2:20210629T231058Z:6dd773de-744d-491e-99ab-b84cac1e83d9" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg9818?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-cfac342730523543b0aa698b48aa5a6e-63aaddbbd6d65c4f-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5ddd665180cfe1cba927e4d1d755d97c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "03563436-a823-4bff-89fc-27f4b139b505", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "03563436-a823-4bff-89fc-27f4b139b505", + "x-ms-routing-request-id": "WESTUS2:20210629T231059Z:03563436-a823-4bff-89fc-27f4b139b505" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818", + "name": "testrg9818", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-946f7b0e869c6343beeb77cf65203c6e-70c998d36ac12a45-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "b5a6e9f854d80284c126cae19e1aec05", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d90ab40c-2d17-4243-bb4b-451502985ee7", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "d90ab40c-2d17-4243-bb4b-451502985ee7", + "x-ms-routing-request-id": "WESTUS2:20210629T231059Z:d90ab40c-2d17-4243-bb4b-451502985ee7" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-946f7b0e869c6343beeb77cf65203c6e-cf80a21a65b0444a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "0e13cdc81f24c41850665cf81dd060db", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:10:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0e13cdc81f24c41850665cf81dd060db", + "x-ms-correlation-request-id": "ad661c35-abd7-44bc-9540-ac74a43b2bbb", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;231,Microsoft.Compute/PutVM30Min;1151", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "b4810fde-96f0-4d8a-ad7d-d0341d48aafd", + "x-ms-routing-request-id": "WESTUS2:20210629T231100Z:ad661c35-abd7-44bc-9540-ac74a43b2bbb" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset2449\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-37dbf89660ad3f468b07b6a519e3f049-6c53376f7e8f0841-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "870fccf86ec5d8b6d0e16471f88ce5f0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "5638", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1c78ad2d-0478-472d-80dc-6495ed33184d", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "1c78ad2d-0478-472d-80dc-6495ed33184d", + "x-ms-routing-request-id": "WESTUS2:20210629T231100Z:1c78ad2d-0478-472d-80dc-6495ed33184d" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:49.562002Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748", + "name": "test-aset4748", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:54.3601708Z", + "changedTime": "2021-06-29T23:10:55.2915703Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460", + "name": "test-aset1460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:57.42697Z", + "changedTime": "2021-06-29T23:10:58.1251121Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449", + "name": "test-aset2449", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:59.9722158Z", + "changedTime": "2021-06-29T23:11:00.0950145Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-24ac0011d5a4164c847c0f66fb80b175-2852fe642be76c4e-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "f85deec6af505f875402b5ca11bfc350", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "436", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f85deec6af505f875402b5ca11bfc350", + "x-ms-correlation-request-id": "9efca5fb-6af6-496a-b3ac-182b197d25bd", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31963", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "2ca25c17-5106-4242-be76-4dfe63ef1808", + "x-ms-routing-request-id": "WESTUS2:20210629T231100Z:9efca5fb-6af6-496a-b3ac-182b197d25bd" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset2449\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-24ac0011d5a4164c847c0f66fb80b175-c43cacb3f55a314b-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "51004e5bd8c11515eff16c9b040718cc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "51004e5bd8c11515eff16c9b040718cc", + "x-ms-correlation-request-id": "44f6b9fb-5ea2-4cfc-9a40-1df7b56a60a6", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;230,Microsoft.Compute/PutVM30Min;1150", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "f5213359-bc2b-4ee5-bbd4-4a6d117ba4a5", + "x-ms-routing-request-id": "WESTUS2:20210629T231101Z:44f6b9fb-5ea2-4cfc-9a40-1df7b56a60a6" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset2449\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1793277309", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartAddTag()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartAddTag()Async.json new file mode 100644 index 0000000000000..bf497faf46471 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartAddTag()Async.json @@ -0,0 +1,4599 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "13c442dab58d80c1cbdd9637424d6f6d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb126e7d-0daa-4c90-8c93-2025de0d61c3", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "bb126e7d-0daa-4c90-8c93-2025de0d61c3", + "x-ms-routing-request-id": "WESTUS2:20210629T225358Z:bb126e7d-0daa-4c90-8c93-2025de0d61c3" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg3237?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-67588e4281a03a46a01192643babaf67-b7a81fa769061a44-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "dbbef82fb2f983e76e496591b2b7aec7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "197e09fe-b076-47d7-9cf7-ee001399108d", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "197e09fe-b076-47d7-9cf7-ee001399108d", + "x-ms-routing-request-id": "WESTUS2:20210629T225359Z:197e09fe-b076-47d7-9cf7-ee001399108d" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237", + "name": "testrg3237", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e94dc0e27fa02f449453c62f39db6896-e175536d24d04340-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "1a9e50e0d01fdd8fecf659c84d8187b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7461df0c-6436-47f3-8930-5b50b6ff8e65", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "7461df0c-6436-47f3-8930-5b50b6ff8e65", + "x-ms-routing-request-id": "WESTUS2:20210629T225359Z:7461df0c-6436-47f3-8930-5b50b6ff8e65" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-e94dc0e27fa02f449453c62f39db6896-8996c23a299b2148-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "954b9898e105dd908f1e6c5cee1926e8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "954b9898e105dd908f1e6c5cee1926e8", + "x-ms-correlation-request-id": "87d6c365-3bbf-42d1-951f-24e9885ce9c2", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;231,Microsoft.Compute/PutVM30Min;1186", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "1f4ed30a-f355-4fc4-a644-90d76ed933b8", + "x-ms-routing-request-id": "WESTUS2:20210629T225400Z:87d6c365-3bbf-42d1-951f-24e9885ce9c2" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset7809\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-3ac3f387a4805d4fb431cbacf6bffb8d-53c039387fec7c43-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "1f19dfdd3162ff86c0c18a006433efd3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "5638", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "df9eca23-3053-459f-99dc-a760a3506470", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "df9eca23-3053-459f-99dc-a760a3506470", + "x-ms-routing-request-id": "WESTUS2:20210629T225400Z:df9eca23-3053-459f-99dc-a760a3506470" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.9058134Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454", + "name": "test-aset1454", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:53.9956705Z", + "changedTime": "2021-06-29T22:53:55.0395886Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457", + "name": "test-aset6457", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:57.249965Z", + "changedTime": "2021-06-29T22:53:57.84373Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809", + "name": "test-aset7809", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:59.8702756Z", + "changedTime": "2021-06-29T22:54:00.0433174Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-87d318f1b36ffd4c8712452620ccf196-6a8144f872766f4f-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "965971d068147ce388246608d4d44ed4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "436", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:53:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "965971d068147ce388246608d4d44ed4", + "x-ms-correlation-request-id": "c5defcea-3897-47da-855a-616e05b7bd71", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31995", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "072102b1-37d5-48f7-9628-059af05baee9", + "x-ms-routing-request-id": "WESTUS2:20210629T225400Z:c5defcea-3897-47da-855a-616e05b7bd71" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset7809\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-87d318f1b36ffd4c8712452620ccf196-9f8907657924de44-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "0f7fa5fc07ff3d85306d5f0d910fc3fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0f7fa5fc07ff3d85306d5f0d910fc3fb", + "x-ms-correlation-request-id": "831f37ee-ec4d-4535-bc66-80b47b30977d", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;230,Microsoft.Compute/PutVM30Min;1185", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "86a08571-660f-4aa1-b150-d0ecaf3855e9", + "x-ms-routing-request-id": "WESTUS2:20210629T225400Z:831f37ee-ec4d-4535-bc66-80b47b30977d" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset7809\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1023102947", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartDelete().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartDelete().json new file mode 100644 index 0000000000000..1a64e93fb8571 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartDelete().json @@ -0,0 +1,4527 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "be4e8f128d35e5375582bf0911e351f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c66d92b8-c2dc-475a-a76d-f8dd3183cbd6", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "c66d92b8-c2dc-475a-a76d-f8dd3183cbd6", + "x-ms-routing-request-id": "WESTUS2:20210629T231102Z:c66d92b8-c2dc-475a-a76d-f8dd3183cbd6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg2153?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-bc32e4ca99f9dd4eb17b8ac5159e5790-6259c5608c801e43-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "fcbe75c13b2d8e68dd8c732882832c2d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "daf5b5e8-b165-401d-accf-b64901c760c4", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "daf5b5e8-b165-401d-accf-b64901c760c4", + "x-ms-routing-request-id": "WESTUS2:20210629T231103Z:daf5b5e8-b165-401d-accf-b64901c760c4" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2153", + "name": "testrg2153", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-9b648453076774438725bd21f7971326-deb7b1fdcc615243-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "8121ca4b31cd1710946c09f987ddf83f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8bd7e835-bb67-440a-9838-21d25fea40fd", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "8bd7e835-bb67-440a-9838-21d25fea40fd", + "x-ms-routing-request-id": "WESTUS2:20210629T231103Z:8bd7e835-bb67-440a-9838-21d25fea40fd" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2153/providers/Microsoft.Compute/availabilitySets/test-aset896?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-9b648453076774438725bd21f7971326-0223e477a9cee243-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "31595ed1e538e6542f5800c3bdd2ff93", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "406", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "31595ed1e538e6542f5800c3bdd2ff93", + "x-ms-correlation-request-id": "38441889-f5d5-4182-a254-dfd589b2bad3", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;229,Microsoft.Compute/PutVM30Min;1149", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "cc0e0993-47bc-4f88-af67-71056da898d6", + "x-ms-routing-request-id": "WESTUS2:20210629T231104Z:38441889-f5d5-4182-a254-dfd589b2bad3" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset896\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2153/providers/Microsoft.Compute/availabilitySets/test-aset896\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f3898fc58ee4874691f46c5858766e0e-77fc63c436b45241-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "24b1e87bfbd265b7763b5275304c5ac1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "6040", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3df4849a-3721-49ad-a1f4-69023ee5019f", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "3df4849a-3721-49ad-a1f4-69023ee5019f", + "x-ms-routing-request-id": "WESTUS2:20210629T231104Z:3df4849a-3721-49ad-a1f4-69023ee5019f" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:49.562002Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748", + "name": "test-aset4748", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:54.3601708Z", + "changedTime": "2021-06-29T23:10:55.2915703Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460", + "name": "test-aset1460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:57.42697Z", + "changedTime": "2021-06-29T23:10:58.1251121Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449", + "name": "test-aset2449", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:59.9722158Z", + "changedTime": "2021-06-29T23:11:00.9859033Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2153/providers/Microsoft.Compute/availabilitySets/test-aset896", + "name": "test-aset896", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:04.1286184Z", + "changedTime": "2021-06-29T23:11:04.3258223Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2153/providers/Microsoft.Compute/availabilitySets/test-aset896?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-746cfa07eece10429e1f4e8fcf1e3a6c-c3578c321e538c44-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "661c766d7245e86e6a1582534c858799", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 29 Jun 2021 23:11:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "661c766d7245e86e6a1582534c858799", + "x-ms-correlation-request-id": "5b17d4ee-920e-4095-957f-7b2cf7e821c4", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteVM3Min;238,Microsoft.Compute/DeleteVM30Min;1178", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "cf26b987-a42a-41da-86a0-7d3ba00dacfa", + "x-ms-routing-request-id": "WESTUS2:20210629T231105Z:5b17d4ee-920e-4095-957f-7b2cf7e821c4" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "1975457016", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartDelete()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartDelete()Async.json new file mode 100644 index 0000000000000..6f4ea984f20b1 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartDelete()Async.json @@ -0,0 +1,4527 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5cb684d932c9f82fe91e9177f2c75d28", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b27f692e-dfeb-4cfd-8912-f53ace83b40c", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "b27f692e-dfeb-4cfd-8912-f53ace83b40c", + "x-ms-routing-request-id": "WESTUS2:20210629T225401Z:b27f692e-dfeb-4cfd-8912-f53ace83b40c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg7079?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-d8311582e7c57b48a1a2370aed38a599-40fb3de264bf5a45-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "f7521f299a1f78215dab50d5b15f8f4b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "45fd4d45-a526-4854-9bdf-fa094445ff97", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "45fd4d45-a526-4854-9bdf-fa094445ff97", + "x-ms-routing-request-id": "WESTUS2:20210629T225402Z:45fd4d45-a526-4854-9bdf-fa094445ff97" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7079", + "name": "testrg7079", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1a1d1482f9351445a2b0d5f51474b43f-f384a56593aacc4b-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "593015d9c5587fb64e9b38b339ef88a5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "479a4bef-ec66-4447-b889-b1c955998f59", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "479a4bef-ec66-4447-b889-b1c955998f59", + "x-ms-routing-request-id": "WESTUS2:20210629T225402Z:479a4bef-ec66-4447-b889-b1c955998f59" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7079/providers/Microsoft.Compute/availabilitySets/test-aset6257?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-1a1d1482f9351445a2b0d5f51474b43f-ec7fca9fe2f3184d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5c5147e0b9ee94e9e36c87df2238be02", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5c5147e0b9ee94e9e36c87df2238be02", + "x-ms-correlation-request-id": "33e258b9-b248-4995-b7b0-5df4a2c26736", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;229,Microsoft.Compute/PutVM30Min;1184", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "17165438-55fd-455e-9ac4-743f385e86c1", + "x-ms-routing-request-id": "WESTUS2:20210629T225402Z:33e258b9-b248-4995-b7b0-5df4a2c26736" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset6257\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7079/providers/Microsoft.Compute/availabilitySets/test-aset6257\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-82cf02c94fee5d43bbcf56e20afadffa-914005c65cb25148-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "17d02fc7ee3d1f642b9b76ec3ed75c16", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "6042", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9dd1e2d9-7c07-4488-85e0-c043cb2de0a5", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "9dd1e2d9-7c07-4488-85e0-c043cb2de0a5", + "x-ms-routing-request-id": "WESTUS2:20210629T225403Z:9dd1e2d9-7c07-4488-85e0-c043cb2de0a5" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.9058134Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454", + "name": "test-aset1454", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:53.9956705Z", + "changedTime": "2021-06-29T22:53:55.0395886Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457", + "name": "test-aset6457", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:57.249965Z", + "changedTime": "2021-06-29T22:53:57.84373Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809", + "name": "test-aset7809", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:59.8702756Z", + "changedTime": "2021-06-29T22:54:00.6384285Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7079/providers/Microsoft.Compute/availabilitySets/test-aset6257", + "name": "test-aset6257", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:02.6732847Z", + "changedTime": "2021-06-29T22:54:02.8255662Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7079/providers/Microsoft.Compute/availabilitySets/test-aset6257?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f208e109b89b8a49a30264bcf382fee4-48a4a8228942404e-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "9a8735dc4001e6ad77f7c077e9eaaa1d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 29 Jun 2021 22:54:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9a8735dc4001e6ad77f7c077e9eaaa1d", + "x-ms-correlation-request-id": "7d049b67-d0f1-45bb-a551-5611753815c1", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteVM3Min;238,Microsoft.Compute/DeleteVM30Min;1193", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "eb815066-9602-4f29-9d24-fec8bed1c428", + "x-ms-routing-request-id": "WESTUS2:20210629T225403Z:7d049b67-d0f1-45bb-a551-5611753815c1" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "1735156871", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartRemoveTag().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartRemoveTag().json new file mode 100644 index 0000000000000..0b4a4028c8846 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartRemoveTag().json @@ -0,0 +1,4736 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "4b6fe3f6467b8eac577bc232d443fb7d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "03697cd3-65a0-44e6-83cb-0416e785eeb1", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "03697cd3-65a0-44e6-83cb-0416e785eeb1", + "x-ms-routing-request-id": "WESTUS2:20210629T231106Z:03697cd3-65a0-44e6-83cb-0416e785eeb1" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg4853?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-6d103f45473fb949bfff47ddf32f9294-9b43e220a41dda48-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5bd3f1d380631ca5bec017c74a8f8116", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6e64e99d-4cbd-4890-83b6-4425cbe7a8dd", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "6e64e99d-4cbd-4890-83b6-4425cbe7a8dd", + "x-ms-routing-request-id": "WESTUS2:20210629T231107Z:6e64e99d-4cbd-4890-83b6-4425cbe7a8dd" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853", + "name": "testrg4853", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1332049d6460af47a88e73acca015232-ce2e461ea6018f48-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "63447bce1069fba9a19de021944e6f3b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0446ddbc-59d7-4b6a-b9db-95cfd4ed6b8a", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "0446ddbc-59d7-4b6a-b9db-95cfd4ed6b8a", + "x-ms-routing-request-id": "WESTUS2:20210629T231107Z:0446ddbc-59d7-4b6a-b9db-95cfd4ed6b8a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-1332049d6460af47a88e73acca015232-7cd20256cd378a44-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "40b0f83692d7ca622fbd8594c60ceb40", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "40b0f83692d7ca622fbd8594c60ceb40", + "x-ms-correlation-request-id": "ae6725cc-5803-4cc1-8054-b1e97690f152", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;228,Microsoft.Compute/PutVM30Min;1148", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "aebc914a-99f4-4a92-9c45-59331e5b3e27", + "x-ms-routing-request-id": "WESTUS2:20210629T231107Z:ae6725cc-5803-4cc1-8054-b1e97690f152" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset9258\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-83c8de333a376b4a97eed4ad28810087-751e4f249ff3814c-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "97148ca7d6d13bf1187a34ac8a143594", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "6042", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "80cc13d8-6d16-443c-8bc5-161bc04f82b3", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "80cc13d8-6d16-443c-8bc5-161bc04f82b3", + "x-ms-routing-request-id": "WESTUS2:20210629T231107Z:80cc13d8-6d16-443c-8bc5-161bc04f82b3" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:49.562002Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748", + "name": "test-aset4748", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:54.3601708Z", + "changedTime": "2021-06-29T23:10:55.2915703Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460", + "name": "test-aset1460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:57.42697Z", + "changedTime": "2021-06-29T23:10:58.1251121Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449", + "name": "test-aset2449", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:59.9722158Z", + "changedTime": "2021-06-29T23:11:00.9859033Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258", + "name": "test-aset9258", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:07.4412835Z", + "changedTime": "2021-06-29T23:11:07.5281718Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-98c732e58ff2ed4baeec6b188473efe5-9b090a220058e74b-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "8a059fb1efd83d018ece1578d07f0434", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "436", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8a059fb1efd83d018ece1578d07f0434", + "x-ms-correlation-request-id": "f6b2bd45-e7b5-4201-99f8-08fece6ffc74", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31962", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "4679bd09-4c02-401a-bce5-6fb5a071256e", + "x-ms-routing-request-id": "WESTUS2:20210629T231107Z:f6b2bd45-e7b5-4201-99f8-08fece6ffc74" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset9258\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-98c732e58ff2ed4baeec6b188473efe5-70874e5410584a4a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "3aed139354f8466e183967bfc5bc5616", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3aed139354f8466e183967bfc5bc5616", + "x-ms-correlation-request-id": "e5a5abf9-e048-4d5d-ae45-ad33efc91005", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;227,Microsoft.Compute/PutVM30Min;1147", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "c13f2dc9-0e1f-4d7c-b999-3a6c5cdbc98e", + "x-ms-routing-request-id": "WESTUS2:20210629T231108Z:e5a5abf9-e048-4d5d-ae45-ad33efc91005" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset9258\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-3767c40948044a458f21533ae339f250-b5f132134b1a9042-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "7719ff75fb265d9b30bf719f884278d1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "460", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7719ff75fb265d9b30bf719f884278d1", + "x-ms-correlation-request-id": "602de463-5795-473f-91a5-8fca5b0ee2a8", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31961", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "8561b0ad-aef5-4636-9776-6980c06d5f21", + "x-ms-routing-request-id": "WESTUS2:20210629T231108Z:602de463-5795-473f-91a5-8fca5b0ee2a8" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset9258\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "154", + "Content-Type": "application/json", + "traceparent": "00-3767c40948044a458f21533ae339f250-0e6ca697f6011b4d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "a14dff77df4df33f7935af224a6b859e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a14dff77df4df33f7935af224a6b859e", + "x-ms-correlation-request-id": "705f661b-df4e-46d8-9233-3a46a4490dec", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;226,Microsoft.Compute/PutVM30Min;1146", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "61f5364b-1620-48f5-8821-eaaafaf1fd22", + "x-ms-routing-request-id": "WESTUS2:20210629T231108Z:705f661b-df4e-46d8-9233-3a46a4490dec" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset9258\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1209306459", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartRemoveTag()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartRemoveTag()Async.json new file mode 100644 index 0000000000000..4e36d5503fe39 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartRemoveTag()Async.json @@ -0,0 +1,4736 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "37832ce4850b15e57811f2706d8a7b58", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c04c2c7d-14b5-4cac-8b80-04489d7c07ca", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "c04c2c7d-14b5-4cac-8b80-04489d7c07ca", + "x-ms-routing-request-id": "WESTUS2:20210629T225404Z:c04c2c7d-14b5-4cac-8b80-04489d7c07ca" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg8525?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-4272a9395b4d2440bf8ad196da3fde68-3fb7dd1a44002e49-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "06ef5f4f62b092a62072967737676e13", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0b952200-7d16-4067-b435-36e921272e20", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "0b952200-7d16-4067-b435-36e921272e20", + "x-ms-routing-request-id": "WESTUS2:20210629T225405Z:0b952200-7d16-4067-b435-36e921272e20" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525", + "name": "testrg8525", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-29ddb6320efecf448353e470b34cc810-8d9c3789854e4b42-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "14d24db73774d28251a8ae092143c544", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c0abf145-06ae-4929-b229-d6102c6a800a", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "c0abf145-06ae-4929-b229-d6102c6a800a", + "x-ms-routing-request-id": "WESTUS2:20210629T225405Z:c0abf145-06ae-4929-b229-d6102c6a800a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-29ddb6320efecf448353e470b34cc810-57add4d9f08a0449-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "311af50c337fdcc9a4ea124f9e41aa84", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "311af50c337fdcc9a4ea124f9e41aa84", + "x-ms-correlation-request-id": "e6fd727c-3218-4302-809a-6688df538e82", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;228,Microsoft.Compute/PutVM30Min;1183", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "25fadf5f-5262-4dcf-b3ce-9d39464ee4ec", + "x-ms-routing-request-id": "WESTUS2:20210629T225406Z:e6fd727c-3218-4302-809a-6688df538e82" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1445\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-778fa40e87529c4a80823cd5628353b1-efe16f4507d2c24f-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "712b32d1e25383fb83f56f8a2533340f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "6042", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "56abbaf8-3714-4c8b-8908-fa1f020add26", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "56abbaf8-3714-4c8b-8908-fa1f020add26", + "x-ms-routing-request-id": "WESTUS2:20210629T225406Z:56abbaf8-3714-4c8b-8908-fa1f020add26" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.9058134Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454", + "name": "test-aset1454", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:53.9956705Z", + "changedTime": "2021-06-29T22:53:55.0395886Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457", + "name": "test-aset6457", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:57.249965Z", + "changedTime": "2021-06-29T22:53:57.84373Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809", + "name": "test-aset7809", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:59.8702756Z", + "changedTime": "2021-06-29T22:54:00.6384285Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445", + "name": "test-aset1445", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:05.8027989Z", + "changedTime": "2021-06-29T22:54:05.9194916Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e56c885d4db1c74bb073c9f01c95f069-c9f82ec15607f141-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "2fac2afe967032be1af2c44bd40ee51b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "436", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2fac2afe967032be1af2c44bd40ee51b", + "x-ms-correlation-request-id": "32bfd4ca-7654-4052-82bd-6544724b1758", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31994", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "1dba61c1-b3ef-4e78-b6ab-36741bedb265", + "x-ms-routing-request-id": "WESTUS2:20210629T225406Z:32bfd4ca-7654-4052-82bd-6544724b1758" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1445\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-e56c885d4db1c74bb073c9f01c95f069-f623c1413459f249-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "6b7de3eb38167a30f64faa916950023a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6b7de3eb38167a30f64faa916950023a", + "x-ms-correlation-request-id": "a4554eab-c2ca-45e9-8192-2e3712a81cc2", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;227,Microsoft.Compute/PutVM30Min;1182", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "c541c8a2-b775-4edd-a20e-bce2514ee47a", + "x-ms-routing-request-id": "WESTUS2:20210629T225406Z:a4554eab-c2ca-45e9-8192-2e3712a81cc2" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1445\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1618f493f22e3a4eb876b11e8cb1c566-fcfb78eb219b994a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "429e5310c9b5c6f9f9313820eb2cc8c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "460", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "429e5310c9b5c6f9f9313820eb2cc8c9", + "x-ms-correlation-request-id": "b5b59d35-4074-4d7e-a14c-45a50c918e83", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31993", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "955bd9ff-8521-4eb3-9ec3-e1b0614b1848", + "x-ms-routing-request-id": "WESTUS2:20210629T225406Z:b5b59d35-4074-4d7e-a14c-45a50c918e83" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1445\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "154", + "Content-Type": "application/json", + "traceparent": "00-1618f493f22e3a4eb876b11e8cb1c566-2b8e4f081ea54a47-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "844b8af017521c3f2442f61de0cf5d47", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "844b8af017521c3f2442f61de0cf5d47", + "x-ms-correlation-request-id": "32ab380f-baea-4573-b2ad-8d1d6dd6fe09", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;226,Microsoft.Compute/PutVM30Min;1181", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "6097f6e4-b050-438d-b22f-334e279a03e2", + "x-ms-routing-request-id": "WESTUS2:20210629T225407Z:32ab380f-baea-4573-b2ad-8d1d6dd6fe09" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset1445\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1912967268", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartSetTags().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartSetTags().json new file mode 100644 index 0000000000000..7a387db3cdd7f --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartSetTags().json @@ -0,0 +1,4627 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "eaec03a6eac0b223053a4110c01aad73", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3ebf807b-d23e-45fe-8ec9-02afad04bad5", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "3ebf807b-d23e-45fe-8ec9-02afad04bad5", + "x-ms-routing-request-id": "WESTUS2:20210629T231109Z:3ebf807b-d23e-45fe-8ec9-02afad04bad5" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg4176?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-cfea07c0a548aa469fbc3c552582c0f7-559ce86a0bfa184b-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "d7d28a9bb7ee169218734c8b38d4e35a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6a9d1878-c0ff-419d-94b1-791725bf4c03", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "6a9d1878-c0ff-419d-94b1-791725bf4c03", + "x-ms-routing-request-id": "WESTUS2:20210629T231109Z:6a9d1878-c0ff-419d-94b1-791725bf4c03" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176", + "name": "testrg4176", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b93d611788cde945b40c6a1a3b11ea4d-6ccae80f0ad6ec48-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "ecd30817c438ba237773730d22d0fb8b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2db8570f-77c7-49a1-b6e2-ce1d10a5fad7", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "2db8570f-77c7-49a1-b6e2-ce1d10a5fad7", + "x-ms-routing-request-id": "WESTUS2:20210629T231109Z:2db8570f-77c7-49a1-b6e2-ce1d10a5fad7" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176/providers/Microsoft.Compute/availabilitySets/test-aset933?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-b93d611788cde945b40c6a1a3b11ea4d-7a217324b30f4c4d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "7fa96d32b8025a4cd3a777d726cd665d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "406", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7fa96d32b8025a4cd3a777d726cd665d", + "x-ms-correlation-request-id": "5565210a-090c-4a70-927b-1673490746f7", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;225,Microsoft.Compute/PutVM30Min;1145", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "30cdec9e-8fb8-4124-b10b-ab4f0e4e06e7", + "x-ms-routing-request-id": "WESTUS2:20210629T231110Z:5565210a-090c-4a70-927b-1673490746f7" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset933\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176/providers/Microsoft.Compute/availabilitySets/test-aset933\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d011c48ab0dc884bb29690f90d81f413-3a3409cf7dba3548-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "67050050da3a5f8ebb7918904c4b93a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "6431", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d20f8328-c1ee-4c56-bef0-65d693c20fe3", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "d20f8328-c1ee-4c56-bef0-65d693c20fe3", + "x-ms-routing-request-id": "WESTUS2:20210629T231110Z:d20f8328-c1ee-4c56-bef0-65d693c20fe3" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:49.562002Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748", + "name": "test-aset4748", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:54.3601708Z", + "changedTime": "2021-06-29T23:10:55.2915703Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460", + "name": "test-aset1460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:57.42697Z", + "changedTime": "2021-06-29T23:10:58.1251121Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449", + "name": "test-aset2449", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:59.9722158Z", + "changedTime": "2021-06-29T23:11:00.9859033Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258", + "name": "test-aset9258", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:07.4412835Z", + "changedTime": "2021-06-29T23:11:08.4340247Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176/providers/Microsoft.Compute/availabilitySets/test-aset933", + "name": "test-aset933", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:10.1963593Z", + "changedTime": "2021-06-29T23:11:10.3232374Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176/providers/Microsoft.Compute/availabilitySets/test-aset933?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e05edddb60e1944f8be92797620eb633-fe8d514fecf82148-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "f356150d56cd06eb0ae2d1e541083ac9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "434", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f356150d56cd06eb0ae2d1e541083ac9", + "x-ms-correlation-request-id": "5632dbd1-3ddb-4032-9a84-cd65d1437cb9", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31960", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "87135b68-f3d8-4900-a003-64f149752530", + "x-ms-routing-request-id": "WESTUS2:20210629T231110Z:5632dbd1-3ddb-4032-9a84-cd65d1437cb9" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset933\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176/providers/Microsoft.Compute/availabilitySets/test-aset933\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176/providers/Microsoft.Compute/availabilitySets/test-aset933?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-e05edddb60e1944f8be92797620eb633-df2d1cb53caed247-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "2587d4b1ffc7dc23a0a2e92513d27962", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "430", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2587d4b1ffc7dc23a0a2e92513d27962", + "x-ms-correlation-request-id": "56255113-8e4a-4c05-bedb-e06220f5298d", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;224,Microsoft.Compute/PutVM30Min;1144", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "962aeb8f-839e-4f1c-a785-fcfc4d2f93a7", + "x-ms-routing-request-id": "WESTUS2:20210629T231110Z:56255113-8e4a-4c05-bedb-e06220f5298d" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset933\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176/providers/Microsoft.Compute/availabilitySets/test-aset933\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1123355153", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartSetTags()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartSetTags()Async.json new file mode 100644 index 0000000000000..0011788ea8dc2 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartSetTags()Async.json @@ -0,0 +1,4627 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "a3407a72826862a9319e9f8fe5e578fa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "781e2ee7-37da-4cbe-9334-100b565f2922", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "781e2ee7-37da-4cbe-9334-100b565f2922", + "x-ms-routing-request-id": "WESTUS2:20210629T225407Z:781e2ee7-37da-4cbe-9334-100b565f2922" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg340?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-ae9ab6a643786b4eac9a05d4b79b0e5b-68d65c37fcbf9b40-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "813f63a2bf9ff9beaba8146e17737af8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7e134822-dbe0-4904-92d1-be773fb4a73e", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "7e134822-dbe0-4904-92d1-be773fb4a73e", + "x-ms-routing-request-id": "WESTUS2:20210629T225408Z:7e134822-dbe0-4904-92d1-be773fb4a73e" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340", + "name": "testrg340", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-7f5ab4346bcf9b4e8e042bc761250c95-34bb1c865a38cf40-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "76d19ea4c5b0858b44d02ac4502a5612", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1424e934-bfbc-4239-a786-2ff49fbe281f", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "1424e934-bfbc-4239-a786-2ff49fbe281f", + "x-ms-routing-request-id": "WESTUS2:20210629T225408Z:1424e934-bfbc-4239-a786-2ff49fbe281f" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340/providers/Microsoft.Compute/availabilitySets/test-aset8373?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-7f5ab4346bcf9b4e8e042bc761250c95-5c120c396898fa41-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "197bf22ad32881bba9bdda94f31a2a24", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "407", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "197bf22ad32881bba9bdda94f31a2a24", + "x-ms-correlation-request-id": "b348a09a-09cd-4248-9f4e-73392be42e86", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;225,Microsoft.Compute/PutVM30Min;1180", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "58559bf6-ae60-447f-b2d2-45173026907a", + "x-ms-routing-request-id": "WESTUS2:20210629T225409Z:b348a09a-09cd-4248-9f4e-73392be42e86" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset8373\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340/providers/Microsoft.Compute/availabilitySets/test-aset8373\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-efe6d3e9bf545d4c9a16e9ea82331416-e73ea32c71f00c43-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "81ec5bbedfffd1c9e34fcdf3eaf7912a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "6429", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "af57ca33-704f-4035-819c-aa92f0f1b978", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "af57ca33-704f-4035-819c-aa92f0f1b978", + "x-ms-routing-request-id": "WESTUS2:20210629T225409Z:af57ca33-704f-4035-819c-aa92f0f1b978" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.9058134Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454", + "name": "test-aset1454", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:53.9956705Z", + "changedTime": "2021-06-29T22:53:55.0395886Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457", + "name": "test-aset6457", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:57.249965Z", + "changedTime": "2021-06-29T22:53:57.84373Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809", + "name": "test-aset7809", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:59.8702756Z", + "changedTime": "2021-06-29T22:54:00.6384285Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445", + "name": "test-aset1445", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:05.8027989Z", + "changedTime": "2021-06-29T22:54:06.94484Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340/providers/Microsoft.Compute/availabilitySets/test-aset8373", + "name": "test-aset8373", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:09.267911Z", + "changedTime": "2021-06-29T22:54:09.3570135Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340/providers/Microsoft.Compute/availabilitySets/test-aset8373?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-aa6b1e24ee4f1c41aa28483691d94f8c-5b61dbcd7eabab40-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5c2d06a57de915eaffdd652c79ccee74", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "435", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5c2d06a57de915eaffdd652c79ccee74", + "x-ms-correlation-request-id": "47c23a45-b076-4b29-87be-71b281a797be", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31992", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "2d1c58e2-2641-4bdc-806b-639ce77fcff9", + "x-ms-routing-request-id": "WESTUS2:20210629T225409Z:47c23a45-b076-4b29-87be-71b281a797be" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset8373\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340/providers/Microsoft.Compute/availabilitySets/test-aset8373\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2,\r\n", + " \u0022virtualMachines\u0022: []\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340/providers/Microsoft.Compute/availabilitySets/test-aset8373?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "167", + "Content-Type": "application/json", + "traceparent": "00-aa6b1e24ee4f1c41aa28483691d94f8c-382ecfda57963b40-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "98d65d61a92db7252a6ff5d948feb3bc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2, + "virtualMachines": [] + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "431", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "98d65d61a92db7252a6ff5d948feb3bc", + "x-ms-correlation-request-id": "4540bda9-19d3-4495-98e4-d3a874f16987", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;224,Microsoft.Compute/PutVM30Min;1179", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "ca800a09-01cf-4259-898a-46488b569a81", + "x-ms-routing-request-id": "WESTUS2:20210629T225410Z:4540bda9-19d3-4495-98e4-d3a874f16987" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset8373\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340/providers/Microsoft.Compute/availabilitySets/test-aset8373\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1502451937", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartUpdate().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartUpdate().json new file mode 100644 index 0000000000000..a0c547cc1629a --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartUpdate().json @@ -0,0 +1,4587 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "abbf817f8c4cd0af72dab7afe24137c1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9a931e7b-3fdb-41e1-8a65-597b37f4cad7", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "9a931e7b-3fdb-41e1-8a65-597b37f4cad7", + "x-ms-routing-request-id": "WESTUS2:20210629T231111Z:9a931e7b-3fdb-41e1-8a65-597b37f4cad7" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg6907?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-aed32a7eabda2e4db0f702e1029856d1-2be10d39d8b1f24a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "c2ea972c36c2e3617b534020646594f3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ffef69d9-49e8-48f0-9068-ac7449b6cf75", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "ffef69d9-49e8-48f0-9068-ac7449b6cf75", + "x-ms-routing-request-id": "WESTUS2:20210629T231112Z:ffef69d9-49e8-48f0-9068-ac7449b6cf75" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6907", + "name": "testrg6907", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d76f1310d8cde840a8316bf17730d90c-4a28662ff36cb742-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "b004c03df19d5653101930e774b9ad54", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f8d50dc5-4691-4df1-b97f-8c1cbb4c4334", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "f8d50dc5-4691-4df1-b97f-8c1cbb4c4334", + "x-ms-routing-request-id": "WESTUS2:20210629T231112Z:f8d50dc5-4691-4df1-b97f-8c1cbb4c4334" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6907/providers/Microsoft.Compute/availabilitySets/test-aset2758?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-d76f1310d8cde840a8316bf17730d90c-ffd04b4dc3d6da40-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "ea3eec31bdf75d4bc8d1396eb00d7522", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ea3eec31bdf75d4bc8d1396eb00d7522", + "x-ms-correlation-request-id": "8bcaf456-5494-4fca-bf58-af520740771e", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;223,Microsoft.Compute/PutVM30Min;1143", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "2532b436-aa7c-4a11-bc58-fa4b56fc2f83", + "x-ms-routing-request-id": "WESTUS2:20210629T231113Z:8bcaf456-5494-4fca-bf58-af520740771e" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset2758\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6907/providers/Microsoft.Compute/availabilitySets/test-aset2758\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-de3edfa1c9ffb744b9e66f2fe93997ed-4eb2e19d10e4e748-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "7933cc930856804475a7e8cbb8e4a603", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "6835", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c3dc1a1e-dcab-42f7-aace-d57144d658e7", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "c3dc1a1e-dcab-42f7-aace-d57144d658e7", + "x-ms-routing-request-id": "WESTUS2:20210629T231113Z:c3dc1a1e-dcab-42f7-aace-d57144d658e7" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:49.562002Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748", + "name": "test-aset4748", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:54.3601708Z", + "changedTime": "2021-06-29T23:10:55.2915703Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460", + "name": "test-aset1460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:57.42697Z", + "changedTime": "2021-06-29T23:10:58.1251121Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449", + "name": "test-aset2449", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:59.9722158Z", + "changedTime": "2021-06-29T23:11:00.9859033Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258", + "name": "test-aset9258", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:07.4412835Z", + "changedTime": "2021-06-29T23:11:08.4340247Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176/providers/Microsoft.Compute/availabilitySets/test-aset933", + "name": "test-aset933", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:10.1963593Z", + "changedTime": "2021-06-29T23:11:10.7863685Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6907/providers/Microsoft.Compute/availabilitySets/test-aset2758", + "name": "test-aset2758", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:12.7737876Z", + "changedTime": "2021-06-29T23:11:12.9016224Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6907/providers/Microsoft.Compute/availabilitySets/test-aset2758?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "146", + "Content-Type": "application/json", + "traceparent": "00-0674fa19dc74134f8a88e87bedc012be-ba09d4a45067504b-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "cd2b0ea336b6cb975c97548b0b2e2ccb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cd2b0ea336b6cb975c97548b0b2e2ccb", + "x-ms-correlation-request-id": "0488952a-1175-454d-9170-781669acf852", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;222,Microsoft.Compute/PutVM30Min;1142", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "28e6afd6-7064-4a3f-9b48-77152e430179", + "x-ms-routing-request-id": "WESTUS2:20210629T231113Z:0488952a-1175-454d-9170-781669acf852" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset2758\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6907/providers/Microsoft.Compute/availabilitySets/test-aset2758\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1307234193", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartUpdate()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartUpdate()Async.json new file mode 100644 index 0000000000000..7008ea6e5b418 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/StartUpdate()Async.json @@ -0,0 +1,4587 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "c73e64288182f5cfff5815cba9d8cbf7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "84af1536-cda9-4a83-b4d0-800d76eb13ae", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "84af1536-cda9-4a83-b4d0-800d76eb13ae", + "x-ms-routing-request-id": "WESTUS2:20210629T225410Z:84af1536-cda9-4a83-b4d0-800d76eb13ae" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg6585?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-62a96f998cef6c4fb8a89ea92718b073-7472cecabae5ef41-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5002ca1bd473db6798890c40a7824d65", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0b97de8b-4ca7-494b-9dea-b0c695c842b9", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "0b97de8b-4ca7-494b-9dea-b0c695c842b9", + "x-ms-routing-request-id": "WESTUS2:20210629T225411Z:0b97de8b-4ca7-494b-9dea-b0c695c842b9" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6585", + "name": "testrg6585", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-c561dd0f4476824682cea8cc7a53c2ab-92f01d11e3dd304a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "df1f7edbbbf592b523201a0f9c95fcf3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "abe7827b-e65e-4436-ad24-12f26431baa5", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "abe7827b-e65e-4436-ad24-12f26431baa5", + "x-ms-routing-request-id": "WESTUS2:20210629T225411Z:abe7827b-e65e-4436-ad24-12f26431baa5" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6585/providers/Microsoft.Compute/availabilitySets/test-aset5689?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-c561dd0f4476824682cea8cc7a53c2ab-14721be05e432041-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "1c442760b5b1d68febeaf7c2b458d6c7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1c442760b5b1d68febeaf7c2b458d6c7", + "x-ms-correlation-request-id": "5116f83b-9f63-48f8-b352-59d175480275", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;223,Microsoft.Compute/PutVM30Min;1178", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "5e97ef12-b468-454e-8e9f-14a7c8b5700b", + "x-ms-routing-request-id": "WESTUS2:20210629T225412Z:5116f83b-9f63-48f8-b352-59d175480275" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset5689\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6585/providers/Microsoft.Compute/availabilitySets/test-aset5689\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-3d71091a1e106a489bbb1ea95496d86d-6a4388ab02f7cc4e-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "5a464c0f490926d9ee48f30bc3f2ddcb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "6833", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2cbdb7ba-d0ab-42b7-9555-34c5f182c613", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "2cbdb7ba-d0ab-42b7-9555-34c5f182c613", + "x-ms-routing-request-id": "WESTUS2:20210629T225412Z:2cbdb7ba-d0ab-42b7-9555-34c5f182c613" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.9058134Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454", + "name": "test-aset1454", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:53.9956705Z", + "changedTime": "2021-06-29T22:53:55.0395886Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457", + "name": "test-aset6457", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:57.249965Z", + "changedTime": "2021-06-29T22:53:57.84373Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809", + "name": "test-aset7809", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:59.8702756Z", + "changedTime": "2021-06-29T22:54:00.6384285Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445", + "name": "test-aset1445", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:05.8027989Z", + "changedTime": "2021-06-29T22:54:06.94484Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340/providers/Microsoft.Compute/availabilitySets/test-aset8373", + "name": "test-aset8373", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:09.267911Z", + "changedTime": "2021-06-29T22:54:09.8761563Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6585/providers/Microsoft.Compute/availabilitySets/test-aset5689", + "name": "test-aset5689", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:11.7430651Z", + "changedTime": "2021-06-29T22:54:11.9382596Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6585/providers/Microsoft.Compute/availabilitySets/test-aset5689?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "146", + "Content-Type": "application/json", + "traceparent": "00-760a48900da5c84f846d82c18d4e1e49-d321504bac0ea242-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "7ca9534aae98a71b0235cff265dc891f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7ca9534aae98a71b0235cff265dc891f", + "x-ms-correlation-request-id": "9bbda687-e746-4451-abc8-7187dc692df7", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;222,Microsoft.Compute/PutVM30Min;1177", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "3bad9824-1979-4039-9387-81d5605bc314", + "x-ms-routing-request-id": "WESTUS2:20210629T225412Z:9bbda687-e746-4451-abc8-7187dc692df7" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset5689\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6585/providers/Microsoft.Compute/availabilitySets/test-aset5689\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1420235423", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Update().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Update().json new file mode 100644 index 0000000000000..86b313318859d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Update().json @@ -0,0 +1,4602 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "e18a506fc651f223118187f70d5ee296", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e3a17eed-da10-4cd8-a993-81659bac15f4", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "e3a17eed-da10-4cd8-a993-81659bac15f4", + "x-ms-routing-request-id": "WESTUS2:20210629T231114Z:e3a17eed-da10-4cd8-a993-81659bac15f4" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg2678?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-18b8e5594413cc489010836cae33fa2c-153e4d44efc80b48-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "ec4b7cefd791e57fb4114e3bed654bac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f6d3180c-08c8-46e4-a308-8960fbe23027", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "f6d3180c-08c8-46e4-a308-8960fbe23027", + "x-ms-routing-request-id": "WESTUS2:20210629T231115Z:f6d3180c-08c8-46e4-a308-8960fbe23027" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2678", + "name": "testrg2678", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-15119be33366cf468cdf8636b0ffdcbd-cf563630556af14b-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "3ed8ed2f1e4665446363745e048ec370", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "427e4d27-2cb2-430a-bf18-5561473ea47a", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "427e4d27-2cb2-430a-bf18-5561473ea47a", + "x-ms-routing-request-id": "WESTUS2:20210629T231115Z:427e4d27-2cb2-430a-bf18-5561473ea47a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2678/providers/Microsoft.Compute/availabilitySets/test-aset8446?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-15119be33366cf468cdf8636b0ffdcbd-8cde2ed5ac57e043-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "8382990fdd960b79fc9cb5d5b6241c3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8382990fdd960b79fc9cb5d5b6241c3c", + "x-ms-correlation-request-id": "fc9ff569-9fae-4fd8-a909-36caf379991d", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;221,Microsoft.Compute/PutVM30Min;1141", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "1cd24c82-9c24-49e8-b292-157bf3adaae8", + "x-ms-routing-request-id": "WESTUS2:20210629T231115Z:fc9ff569-9fae-4fd8-a909-36caf379991d" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset8446\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2678/providers/Microsoft.Compute/availabilitySets/test-aset8446\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-8b390b8084e915438f6e93380679192f-2f489ef70a170548-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "ccddcb8a28c951d474cd42a9696eae3f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f4cb8aa4-da96-4879-b163-fc7cdc93ed9a", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "f4cb8aa4-da96-4879-b163-fc7cdc93ed9a", + "x-ms-routing-request-id": "WESTUS2:20210629T231116Z:f4cb8aa4-da96-4879-b163-fc7cdc93ed9a" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8441/providers/Microsoft.Compute/availabilitySets/test-aset315", + "name": "test-aset315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:48.6316521Z", + "changedTime": "2021-06-29T23:10:49.562002Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6956/providers/Microsoft.Compute/availabilitySets/test-aset4748", + "name": "test-aset4748", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:54.3601708Z", + "changedTime": "2021-06-29T23:10:55.2915703Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9543/providers/Microsoft.Compute/availabilitySets/test-aset1460", + "name": "test-aset1460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:57.42697Z", + "changedTime": "2021-06-29T23:10:58.1251121Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9818/providers/Microsoft.Compute/availabilitySets/test-aset2449", + "name": "test-aset2449", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:10:59.9722158Z", + "changedTime": "2021-06-29T23:11:00.9859033Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4853/providers/Microsoft.Compute/availabilitySets/test-aset9258", + "name": "test-aset9258", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:07.4412835Z", + "changedTime": "2021-06-29T23:11:08.4340247Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg4176/providers/Microsoft.Compute/availabilitySets/test-aset933", + "name": "test-aset933", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:10.1963593Z", + "changedTime": "2021-06-29T23:11:10.7863685Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6907/providers/Microsoft.Compute/availabilitySets/test-aset2758", + "name": "test-aset2758", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:12.7737876Z", + "changedTime": "2021-06-29T23:11:13.3758972Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2678/providers/Microsoft.Compute/availabilitySets/test-aset8446", + "name": "test-aset8446", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T23:11:15.6783795Z", + "changedTime": "2021-06-29T23:11:15.8227949Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2678/providers/Microsoft.Compute/availabilitySets/test-aset8446?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "146", + "Content-Type": "application/json", + "traceparent": "00-2df0ae69312fcd408e5bc068d250d0ff-79fef97b8e623c4a-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "62133747ce5f4eb2f0247c0faf05ff75", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 23:11:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "62133747ce5f4eb2f0247c0faf05ff75", + "x-ms-correlation-request-id": "1ede97dc-822e-4936-8292-f0c18a832e5c", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;220,Microsoft.Compute/PutVM30Min;1140", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "f75d87e3-8aac-4546-a1dd-9c0af9a47e15", + "x-ms-routing-request-id": "WESTUS2:20210629T231116Z:1ede97dc-822e-4936-8292-f0c18a832e5c" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset8446\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg2678/providers/Microsoft.Compute/availabilitySets/test-aset8446\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "1478962693", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Update()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Update()Async.json new file mode 100644 index 0000000000000..7b4dc3dc27191 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/GenericResourceExpandedOperationsTests/Update()Async.json @@ -0,0 +1,4602 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "e0ed93493f62d037b3079715a40f4aa2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8a744b4e-cec7-4c58-b71b-398924d0ee0b", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "8a744b4e-cec7-4c58-b71b-398924d0ee0b", + "x-ms-routing-request-id": "WESTUS2:20210629T225413Z:8a744b4e-cec7-4c58-b71b-398924d0ee0b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testrg9445?api-version=2019-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-6ed422ae8e66dd4a87551a3b761c2605-9a44c86f694b1048-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "574a3a0a69c1d044aece24a6d0e7d0e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "West US 2", + "tags": {} + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a3108192-eee3-44ba-9a2f-b317df395ca9", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "a3108192-eee3-44ba-9a2f-b317df395ca9", + "x-ms-routing-request-id": "WESTUS2:20210629T225414Z:a3108192-eee3-44ba-9a2f-b317df395ca9" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9445", + "name": "testrg9445", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute?api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1222483f53eea24cb1c0d4639c46d3d7-217be1dd32bbcc44-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "ae2e4b5a381fb5e427f56524a0036dd1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "54403", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7006809a-4e24-4d6b-b23a-656b7cbb6af4", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "7006809a-4e24-4d6b-b23a-656b7cbb6af4", + "x-ms-routing-request-id": "WESTUS2:20210629T225414Z:7006809a-4e24-4d6b-b23a-656b7cbb6af4" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Compute", + "namespace": "Microsoft.Compute", + "authorizations": [ + { + "applicationId": "60e6cd67-9c8c-4951-9b3c-23c25a2169af", + "roleDefinitionId": "e4770acb-272e-4dc8-87f3-12f44a612224" + }, + { + "applicationId": "a303894e-f1d8-4a37-bf10-67aa654a0596", + "roleDefinitionId": "903ac751-8ad5-4e5a-bfc2-5e49f450a241" + }, + { + "applicationId": "a8b6bf88-1d1a-4626-b040-9a729ea93c65", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "184909ca-69f1-4368-a6a7-c558ee6eb0bd", + "roleDefinitionId": "45c8267c-80ba-4b96-9a43-115b8f49fccd" + }, + { + "applicationId": "5e5e43d4-54da-4211-86a4-c6e7f3715801", + "roleDefinitionId": "ffcd6e5b-8772-457d-bb17-89703c03428f" + }, + { + "applicationId": "ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "372140e0-b3b7-4226-8ef9-d57986796201", + "roleDefinitionId": "cb17cddc-dbac-4ae0-ae79-8db34eddfca0" + }, + { + "applicationId": "b9a92e36-2cf8-4f4e-bcb3-9d99e00e14ab", + "roleDefinitionId": "6efa92ca-56b6-40af-a468-5e3d2b5232f0" + }, + { + "applicationId": "579d9c9d-4c83-4efc-8124-7eba65ed3356", + "roleDefinitionId": "8c99c4ce-d744-4597-a2f0-0a0044d67560" + } + ], + "resourceTypes": [ + { + "resourceType": "availabilitySets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachineScaleSets/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2015-06-15", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/extensions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/virtualMachines/networkInterfaces", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-09-01", + "2016-08-01", + "2016-07-01", + "2016-06-01", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "virtualMachineScaleSets/publicIPAddresses", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-10-30-preview", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/vmSizes", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/runCommands", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/usages", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachines", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/virtualMachineScaleSets", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "locations/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "operations", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones", + "locations": [], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/edgeZones/publishers", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2020-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "restorePointCollections", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "restorePointCollections/restorePoints", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30" + ], + "capabilities": "None" + }, + { + "resourceType": "proximityPlacementGroups", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "sshPublicKeys", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "virtualMachines/metricDefinitions", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "West US 3", + "Jio India West" + ], + "apiVersions": [ + "2014-04-01" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/spotEvictionRates", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/spotPriceHistory", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01" + ], + "defaultApiVersion": "2020-06-01", + "capabilities": "None" + }, + { + "resourceType": "locations/sharedGalleries", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-09-30", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview", + "2016-03-30", + "2015-06-15", + "2015-05-01-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-03-30" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-12-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "sharedVMImages", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "sharedVMImages/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "defaultApiVersion": "2017-10-15-preview", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/artifactPublishers", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central" + ], + "apiVersions": [ + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/capsoperations", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01", + "2017-10-15-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "galleries/images/versions", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/galleries", + "locations": [ + "West Central US", + "South Central US", + "East US 2", + "Southeast Asia", + "West Europe", + "West US", + "East US", + "Canada Central", + "North Europe", + "North Central US", + "Brazil South", + "UK West", + "West India", + "East Asia", + "Australia East", + "Japan East", + "Korea South", + "West US 2", + "Canada East", + "UK South", + "Central India", + "South India", + "Australia Southeast", + "Japan West", + "Korea Central", + "France Central", + "Central US", + "Australia Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-09-30", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-06-01" + ], + "defaultApiVersion": "2018-06-01", + "capabilities": "None" + }, + { + "resourceType": "disks", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "snapshots", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-30", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/diskoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01", + "2019-03-01", + "2018-09-30", + "2018-06-01", + "2018-04-01", + "2017-03-30", + "2016-04-30-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "None" + }, + { + "resourceType": "diskEncryptionSets", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01", + "2019-11-01", + "2019-07-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SystemAssignedResourceIdentity, SupportsTags, SupportsLocation" + }, + { + "resourceType": "diskAccesses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-04-01", + "2020-12-01", + "2020-09-30", + "2020-06-30", + "2020-05-01" + ], + "defaultApiVersion": "2020-06-30", + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "cloudServices/roles", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/csoperations", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsVersions", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "locations/cloudServiceOsFamilies", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01" + ], + "defaultApiVersion": "2021-03-01", + "capabilities": "None" + }, + { + "resourceType": "cloudServices/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/roleInstances/networkInterfaces", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "cloudServices/publicIPAddresses", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-03-01", + "2020-10-01-preview" + ], + "capabilities": "None" + }, + { + "resourceType": "images", + "locations": [ + "Southeast Asia", + "East US 2", + "Central US", + "West Europe", + "East US", + "North Central US", + "South Central US", + "West US", + "North Europe", + "East Asia", + "Brazil South", + "West US 2", + "West Central US", + "UK West", + "UK South", + "Japan East", + "Japan West", + "Canada Central", + "Canada East", + "Central India", + "South India", + "Australia East", + "Australia Southeast", + "Korea Central", + "Korea South", + "West India", + "France Central", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01", + "2017-03-30", + "2016-08-30", + "2016-04-30-preview" + ], + "defaultApiVersion": "2020-06-01", + "apiProfiles": [ + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2017-03-30" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2018-04-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "locations/logAnalytics", + "locations": [ + "East US", + "East US 2", + "West US", + "Central US", + "North Central US", + "South Central US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "South India", + "Central India", + "West India", + "Canada Central", + "Canada East", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "South Africa North", + "UAE North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01", + "2018-06-01", + "2018-04-01", + "2017-12-01" + ], + "capabilities": "None" + }, + { + "resourceType": "hostGroups", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + }, + { + "resourceType": "hostGroups/hosts", + "locations": [ + "Central US", + "East US 2", + "West Europe", + "Southeast Asia", + "France Central", + "North Europe", + "West US 2", + "East US", + "UK South", + "Japan East", + "Japan West", + "East Asia", + "North Central US", + "South Central US", + "Canada East", + "Korea Central", + "Brazil South", + "UK West", + "Canada Central", + "West US", + "West Central US", + "Central India", + "South India", + "Australia Southeast", + "Korea South", + "West India", + "South Africa North", + "UAE North", + "Australia Central", + "Switzerland North", + "Germany West Central", + "Norway East", + "Australia East", + "Jio India West", + "West US 3" + ], + "apiVersions": [ + "2021-07-01", + "2021-04-01", + "2021-03-01", + "2020-12-01", + "2020-06-01", + "2019-12-01", + "2019-07-01", + "2019-03-01", + "2018-10-01" + ], + "defaultApiVersion": "2020-06-01", + "zoneMappings": [ + { + "location": "East US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "France Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Southeast Asia", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "West US 2", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "North Europe", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "East US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "UK South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Japan East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Australia East", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "South Africa North", + "zones": [] + }, + { + "location": "South Central US", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Canada Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Germany West Central", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Brazil South", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Central India", + "zones": [] + }, + { + "location": "Korea Central", + "zones": [] + }, + { + "location": "West US 3", + "zones": [ + "2", + "1", + "3" + ] + }, + { + "location": "Norway East", + "zones": [] + }, + { + "location": "East Asia", + "zones": [] + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ], + "registrationState": "Registered", + "registrationPolicy": "RegistrationRequired" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9445/providers/Microsoft.Compute/availabilitySets/test-aset9967?api-version=2021-07-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "133", + "Content-Type": "application/json", + "traceparent": "00-1222483f53eea24cb1c0d4639c46d3d7-4ffd643e0656e440-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "768ab4768866a82910b3711229e220c7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "408", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "768ab4768866a82910b3711229e220c7", + "x-ms-correlation-request-id": "5c9e7699-85aa-4b08-ad70-f675fe90ba22", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;221,Microsoft.Compute/PutVM30Min;1176", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "555f4f60-f714-4766-9a34-76e3c90baf7b", + "x-ms-routing-request-id": "WESTUS2:20210629T225415Z:5c9e7699-85aa-4b08-ad70-f675fe90ba22" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset9967\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9445/providers/Microsoft.Compute/availabilitySets/test-aset9967\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {},\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resources?$expand=createdTime%2CchangedTime%2CprovisioningState\u0026api-version=2019-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-081a71b8aa47374b99dff6c31881a2a7-cee46cdb738cf54e-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "325ad4b76d46d2f221869e6cc7d28b45", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7236", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c950ff3-5f9c-475e-8d78-a56286ceb6ea", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "6c950ff3-5f9c-475e-8d78-a56286ceb6ea", + "x-ms-routing-request-id": "WESTUS2:20210629T225415Z:6c950ff3-5f9c-475e-8d78-a56286ceb6ea" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AutoRestResources2/providers/Microsoft.ClassicStorage/storageAccounts/ema7925a82c", + "name": "ema7925a82c", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2015-02-20T19:43:15.0632092Z", + "changedTime": "2021-06-29T11:23:25.3390056Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds3285b8sydlcm1", + "name": "portalvhds3285b8sydlcm1", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastus", + "createdTime": "2014-05-24T04:55:36.974557Z", + "changedTime": "2021-06-29T11:44:55.2148104Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-EastAsia/providers/Microsoft.ClassicStorage/storageAccounts/storagetestghqqxrrqnr", + "name": "storagetestghqqxrrqnr", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "eastasia", + "createdTime": "2014-10-23T23:54:52.3824535Z", + "changedTime": "2021-06-29T11:11:28.0631193Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ClassicStorage/storageAccounts/portalvhds2wdcfvkv5phc9", + "name": "portalvhds2wdcfvkv5phc9", + "type": "Microsoft.ClassicStorage/storageAccounts", + "location": "westus", + "createdTime": "2014-05-24T04:55:34.6927361Z", + "changedTime": "2021-06-29T12:45:00.7701653Z", + "provisioningState": "Succeeded" + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", + "name": "AzSecPackAutoConfigUA-westus2", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus2", + "createdTime": "2021-03-18T21:55:37.839206Z", + "changedTime": "2021-03-18T22:05:38.7997788Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", + "name": "AzSecPackAutoConfigUA-eastus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "eastus", + "createdTime": "2021-04-27T07:14:50.9621072Z", + "changedTime": "2021-04-27T07:24:53.4570423Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus", + "name": "AzSecPackAutoConfigUA-westus", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "location": "westus", + "createdTime": "2021-06-17T22:32:45.5111313Z", + "changedTime": "2021-06-17T22:42:48.1625939Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7481/providers/Microsoft.Compute/availabilitySets/test-aset5192", + "name": "test-aset5192", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:53.9127442Z", + "changedTime": "2021-06-29T09:14:54.9037735Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7572/providers/Microsoft.Compute/availabilitySets/test-aset460", + "name": "test-aset460", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T09:04:58.0943519Z", + "changedTime": "2021-06-29T09:15:00.5875952Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg2789/providers/Microsoft.Compute/availabilitySets/test-aset1315", + "name": "test-aset1315", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T18:52:59.7552113Z", + "changedTime": "2021-06-29T19:03:01.0772368Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6694/providers/Microsoft.Compute/availabilitySets/test-aset611", + "name": "test-aset611", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:48.1685909Z", + "changedTime": "2021-06-29T22:53:48.9058134Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3710/providers/Microsoft.Compute/availabilitySets/test-aset1454", + "name": "test-aset1454", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:53.9956705Z", + "changedTime": "2021-06-29T22:53:55.0395886Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg5139/providers/Microsoft.Compute/availabilitySets/test-aset6457", + "name": "test-aset6457", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:57.249965Z", + "changedTime": "2021-06-29T22:53:57.84373Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg3237/providers/Microsoft.Compute/availabilitySets/test-aset7809", + "name": "test-aset7809", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:53:59.8702756Z", + "changedTime": "2021-06-29T22:54:00.6384285Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8525/providers/Microsoft.Compute/availabilitySets/test-aset1445", + "name": "test-aset1445", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:05.8027989Z", + "changedTime": "2021-06-29T22:54:06.94484Z", + "provisioningState": "Succeeded", + "tags": {} + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg340/providers/Microsoft.Compute/availabilitySets/test-aset8373", + "name": "test-aset8373", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:09.267911Z", + "changedTime": "2021-06-29T22:54:09.8761563Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg6585/providers/Microsoft.Compute/availabilitySets/test-aset5689", + "name": "test-aset5689", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:11.7430651Z", + "changedTime": "2021-06-29T22:54:12.4532706Z", + "provisioningState": "Succeeded", + "tags": { + "key": "value" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9445/providers/Microsoft.Compute/availabilitySets/test-aset9967", + "name": "test-aset9967", + "type": "Microsoft.Compute/availabilitySets", + "sku": { + "name": "Aligned" + }, + "location": "westus2", + "createdTime": "2021-06-29T22:54:14.876229Z", + "changedTime": "2021-06-29T22:54:15.0789406Z", + "provisioningState": "Succeeded", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9445/providers/Microsoft.Compute/availabilitySets/test-aset9967?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "146", + "Content-Type": "application/json", + "traceparent": "00-3e4052fc525c53468a07d2bc1ddc5085-b19eb20940640e4d-00", + "User-Agent": [ + "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210629.1", + "(.NET Core 4.6.30015.01; Microsoft Windows 10.0.19043 )" + ], + "x-ms-client-request-id": "55f29dd56e4e8e5dca8711c3eeb6c863", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "sku": { + "name": "Aligned" + }, + "location": "West US 2", + "tags": { + "key": "value" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "432", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Jun 2021 22:54:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "55f29dd56e4e8e5dca8711c3eeb6c863", + "x-ms-correlation-request-id": "e6f9112e-beab-40bb-a757-a82cf62a5694", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;220,Microsoft.Compute/PutVM30Min;1175", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "b0a23127-4a11-4874-8ba2-f46b5020b969", + "x-ms-routing-request-id": "WESTUS2:20210629T225415Z:e6f9112e-beab-40bb-a757-a82cf62a5694" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022test-aset9967\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg9445/providers/Microsoft.Compute/availabilitySets/test-aset9967\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Compute/availabilitySets\u0022,\r\n", + " \u0022location\u0022: \u0022westus2\u0022,\r\n", + " \u0022tags\u0022: {\r\n", + " \u0022key\u0022: \u0022value\u0022\r\n", + " },\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022platformUpdateDomainCount\u0022: 5,\r\n", + " \u0022platformFaultDomainCount\u0022: 2\r\n", + " },\r\n", + " \u0022sku\u0022: {\r\n", + " \u0022name\u0022: \u0022Aligned\u0022\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": { + "RandomSeed": "742208027", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ApiVersionsBaseTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ApiVersionsBaseTests.cs index 5c8e8b8f6ac55..f5ed047125f40 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ApiVersionsBaseTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ApiVersionsBaseTests.cs @@ -225,9 +225,20 @@ public void TestGreaterThanTrue(string leftString, string rightString) Assert.IsTrue(left > right); } + [TestCase("2019-12-01", null)] + [TestCase("2020-06-01", "2019-12-01")] + [TestCase("2020-06-01", "2020-06-01")] + public void TestGreaterThanOrEqualTrue(string leftString, string rightString) + { + FakeResourceApiVersions left = ConvertFromString(leftString); + FakeResourceApiVersions right = ConvertFromString(rightString); + Assert.IsTrue(left >= right); + } + [TestCase(null, "2019-12-01")] [TestCase("2019-12-01", "2020-06-01")] [TestCase(null, null)] + [TestCase("2020-06-01", "2020-06-01")] public void TestGreaterThanFalse(string leftString, string rightString) { FakeResourceApiVersions left = ConvertFromString(leftString); @@ -235,6 +246,15 @@ public void TestGreaterThanFalse(string leftString, string rightString) Assert.IsFalse(left > right); } + [TestCase(null, "2019-12-01")] + [TestCase("2019-12-01", "2020-06-01")] + public void TestGreaterThanOrEqualFalse(string leftString, string rightString) + { + FakeResourceApiVersions left = ConvertFromString(leftString); + FakeResourceApiVersions right = ConvertFromString(rightString); + Assert.IsFalse(left >= right); + } + [TestCase(null, "2019-12-01")] [TestCase("2019-12-01-foobar", "2019-12-01-preview-1")] public void TestLessThanTrue(string leftString, string rightString) @@ -244,9 +264,20 @@ public void TestLessThanTrue(string leftString, string rightString) Assert.IsTrue(left < right); } + [TestCase(null, "2019-12-01")] + [TestCase("2019-12-01-foobar", "2019-12-01-preview-1")] + [TestCase("2020-06-01", "2020-06-01")] + public void TestLessThanOrEqualTrue(string leftString, string rightString) + { + FakeResourceApiVersions left = ConvertFromString(leftString); + FakeResourceApiVersions right = ConvertFromString(rightString); + Assert.IsTrue(left <= right); + } + [TestCase("2019-12-01", null)] [TestCase("2020-06-01", "2019-12-01-foobar")] [TestCase(null, null)] + [TestCase("2020-06-01", "2020-06-01")] public void TestLessThanFalse(string leftString, string rightString) { FakeResourceApiVersions left = ConvertFromString(leftString); @@ -254,6 +285,15 @@ public void TestLessThanFalse(string leftString, string rightString) Assert.IsFalse(left < right); } + [TestCase("2019-12-01", null)] + [TestCase("2020-06-01", "2019-12-01-foobar")] + public void TestLessThanOrEqualFalse(string leftString, string rightString) + { + FakeResourceApiVersions left = ConvertFromString(leftString); + FakeResourceApiVersions right = ConvertFromString(rightString); + Assert.IsFalse(left <= right); + } + [TestCase] public void ValidateClone() { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/GenericResourceDataTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/GenericResourceDataTests.cs index 1a632bf3daedd..0b1b90c59171b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/GenericResourceDataTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/GenericResourceDataTests.cs @@ -19,7 +19,7 @@ public void SerializationTestType1() string expected = File.ReadAllText(Path.Combine(TestContext.CurrentContext.TestDirectory, "Unit", "TestAssets", "GenericResourceData", "SerializationTestType1.json")); ResourceGroupResourceIdentifier id = Id; Plan plan = new Plan("NameForPlan", "PublisherForPlan", "ProductForPlan", "PromotionCodeForPlan", "VersionForPlan"); - Sku sku = new Sku("NameForSku", "TierForSku", "FamilyForSku", "SizeForSku", 15464547); + Sku sku = new Sku("NameForSku", "TierForSku", "SizeForSku", "FamilyForSku", "ModelForSku", 15464547); GenericResourceData data = new GenericResourceData(id, id.Name, id.ResourceType, LocationData.EastUS, null, plan, null, "KindForResource", "ManagedByForResource", sku, null); var json = JsonHelper.SerializePropertiesToString(data, indented: true) + Environment.NewLine; @@ -34,7 +34,7 @@ public void SerializationTestType2() var plan = new Plan("NameForPlan", "PublisherForPlan", "ProductForPlan", "PromotionCodeForPlan", "VersionForPlan"); var kind = "KindForResource"; var managedBy = "ManagedByForResource"; - var sku = new Sku("NameForSku", "TierForSku", "FamilyForSku", "SizeForSku", 15464547); + var sku = new Sku("NameForSku", "TierForSku", "SizeForSku", "FamilyForSku", "ModelForSku", 15464547); GenericResourceData genericResource = new GenericResourceData(id, id.Name, id.ResourceType, LocationData.EastUS, null, plan, null, kind, managedBy, sku, null); genericResource.Tags.Add("key1", "value1"); genericResource.Tags.Add("key2", "value2"); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/IdentityTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/IdentityTests.cs index a725b9130f753..88419932480ce 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/IdentityTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/IdentityTests.cs @@ -151,7 +151,7 @@ public void EqualsTestFalseSameKey() public void TestDeserializerInvalidDefaultJson() { JsonElement invalid = default(JsonElement); - Assert.Throws(delegate { ResourceIdentity.Deserialize(invalid); }); + Assert.Throws(delegate { ResourceIdentity.DeserializeResourceIdentity(invalid); }); } public JsonProperty DeserializerHelper(string filename) @@ -166,14 +166,14 @@ public JsonProperty DeserializerHelper(string filename) public void TestDeserializerInvalidNullType() { var identityJsonProperty = DeserializerHelper("InvalidTypeIsNull.json"); - Assert.Throws(delegate { ResourceIdentity.Deserialize(identityJsonProperty.Value); }); + Assert.Throws(delegate { ResourceIdentity.DeserializeResourceIdentity(identityJsonProperty.Value); }); } [TestCase] public void TestDeserializerValidSystemAndUserAssigned() { var identityJsonProperty = DeserializerHelper("SystemAndUserAssignedValid.json"); - ResourceIdentity back = ResourceIdentity.Deserialize(identityJsonProperty.Value); + ResourceIdentity back = ResourceIdentity.DeserializeResourceIdentity(identityJsonProperty.Value); Assert.IsTrue("22fdaec1-8b9f-49dc-bd72-ddaf8f215577".Equals(back.SystemAssignedIdentity.PrincipalId.ToString())); Assert.IsTrue("72f988af-86f1-41af-91ab-2d7cd011db47".Equals(back.SystemAssignedIdentity.TenantId.ToString())); var user = back.UserAssignedIdentities; @@ -186,7 +186,7 @@ public void TestDeserializerValidSystemAndUserAssigned() public void TestDeserializerInvalidType() { var identityJsonProperty = DeserializerHelper("InvalidType.json"); - ResourceIdentity back = ResourceIdentity.Deserialize(identityJsonProperty.Value); + ResourceIdentity back = ResourceIdentity.DeserializeResourceIdentity(identityJsonProperty.Value); var user = back.UserAssignedIdentities; Assert.AreEqual("/subscriptions/d96407f5-db8f-4325-b582-84ad21310bd8/resourceGroups/tester/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity", user.Keys.First().ToString()); Assert.AreEqual("9a2eaa6a-b49c-4a63-afb5-3b72e3e65422", user.Values.First().ClientId.ToString()); @@ -197,7 +197,7 @@ public void TestDeserializerInvalidType() public void TestDeserializerValidInnerExtraField() { var identityJsonProperty = DeserializerHelper("SystemAndUserAssignedInnerExtraField.json"); - ResourceIdentity back = ResourceIdentity.Deserialize(identityJsonProperty.Value); + ResourceIdentity back = ResourceIdentity.DeserializeResourceIdentity(identityJsonProperty.Value); Assert.IsTrue("22fddec1-8b9f-49dc-bd72-ddaf8f215577".Equals(back.SystemAssignedIdentity.PrincipalId.ToString())); Assert.IsTrue("72f988bf-86f1-41af-91ab-2d7cd011db47".Equals(back.SystemAssignedIdentity.TenantId.ToString())); var user = back.UserAssignedIdentities; @@ -210,7 +210,7 @@ public void TestDeserializerValidInnerExtraField() public void TestDeserializerValidMiddleExtraField() { var identityJsonProperty = DeserializerHelper("SystemAndUserAssignedMiddleExtraField.json"); - ResourceIdentity back = ResourceIdentity.Deserialize(identityJsonProperty.Value); + ResourceIdentity back = ResourceIdentity.DeserializeResourceIdentity(identityJsonProperty.Value); Assert.IsTrue("22fddec1-8b9f-49dc-bd72-ddaf8f215577".Equals(back.SystemAssignedIdentity.PrincipalId.ToString())); Assert.IsTrue("72f988bf-86f1-41af-91ab-2d7cd011db47".Equals(back.SystemAssignedIdentity.TenantId.ToString())); var user = back.UserAssignedIdentities; @@ -226,7 +226,7 @@ public void TestDeserializerValidOuterExtraField() JsonDocument document = JsonDocument.Parse(json); JsonElement rootElement = document.RootElement; var identityJsonProperty = rootElement.EnumerateObject().ElementAt(1); - ResourceIdentity back = ResourceIdentity.Deserialize(identityJsonProperty.Value); + ResourceIdentity back = ResourceIdentity.DeserializeResourceIdentity(identityJsonProperty.Value); Assert.IsTrue("22fddec1-8b9f-49dc-bd72-ddaf8f215577".Equals(back.SystemAssignedIdentity.PrincipalId.ToString())); Assert.IsTrue("72f988bf-86f1-41af-91ab-2d7cd011db47".Equals(back.SystemAssignedIdentity.TenantId.ToString())); var user = back.UserAssignedIdentities; @@ -239,7 +239,7 @@ public void TestDeserializerValidOuterExtraField() public void TestDeserializerValidSystemAndMultUser() { var identityJsonProperty = DeserializerHelper("SystemAndUserAssignedValidMultIdentities.json"); - ResourceIdentity back = ResourceIdentity.Deserialize(identityJsonProperty.Value); + ResourceIdentity back = ResourceIdentity.DeserializeResourceIdentity(identityJsonProperty.Value); Assert.IsTrue("22fddec1-8b9f-49dc-bd72-ddaf8f215570".Equals(back.SystemAssignedIdentity.PrincipalId.ToString())); Assert.IsTrue("72f988bf-86f1-41af-91ab-2d7cd011db40".Equals(back.SystemAssignedIdentity.TenantId.ToString())); var user = back.UserAssignedIdentities; @@ -255,7 +255,7 @@ public void TestDeserializerValidSystemAndMultUser() public void TestDeserializerValidSystemAssigned() { var identityJsonProperty = DeserializerHelper("SystemAssigned.json"); - ResourceIdentity back = ResourceIdentity.Deserialize(identityJsonProperty.Value); + ResourceIdentity back = ResourceIdentity.DeserializeResourceIdentity(identityJsonProperty.Value); Assert.IsTrue("22fddec1-8b9f-49dc-bd72-ddaf8f215577".Equals(back.SystemAssignedIdentity.PrincipalId.ToString())); Assert.IsTrue("72f988bf-86f1-41af-91ab-2d7cd011db47".Equals(back.SystemAssignedIdentity.TenantId.ToString())); Assert.IsTrue(back.UserAssignedIdentities.Count == 0); @@ -265,7 +265,7 @@ public void TestDeserializerValidSystemAssigned() public void TestDeserializerValidUserAssigned() { var identityJsonProperty = DeserializerHelper("UserAssigned.json"); - ResourceIdentity back = ResourceIdentity.Deserialize(identityJsonProperty.Value); + ResourceIdentity back = ResourceIdentity.DeserializeResourceIdentity(identityJsonProperty.Value); Assert.IsNull(back.SystemAssignedIdentity); var user = back.UserAssignedIdentities; Assert.AreEqual("/subscriptions/db1ab6f0-4769-4b2e-930e-01e2ef9c123c/resourceGroups/tester-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity", user.Keys.First().ToString()); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/LocationTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/LocationTests.cs index db1d3d214c681..584a90de1c7cb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/LocationTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/LocationTests.cs @@ -83,11 +83,12 @@ public void NameTypeIsDisplayName(string location) [TestCase(false, "West US", "!#()@(#@")] [TestCase(false, "West US", "W3$t U$")] [TestCase(false, "West US", null)] - public void EqualsToObject(bool expected, string left, string right) + public void EqualsToLocation(bool expected, string left, string right) { LocationData loc1 = left; LocationData loc2 = right; Assert.AreEqual(expected, loc1.Equals(loc2)); + Assert.AreEqual(expected, loc1.GetHashCode() == loc2?.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({loc1.GetHashCode()}, {loc2?.GetHashCode()})"); if (expected) { @@ -99,6 +100,24 @@ public void EqualsToObject(bool expected, string left, string right) } } + [Test] + public void EqualsToObject() + { + LocationData loc = LocationData.WestUS2; + + object intLoc = 5; + Assert.IsFalse(loc.Equals(intLoc)); + + object nullLoc = null; + Assert.IsFalse(loc.Equals(nullLoc)); + + object sameLoc = loc; + Assert.IsTrue(loc.Equals(sameLoc)); + + object loc2 = LocationData.EastUS2; + Assert.IsFalse(loc.Equals(loc2)); + } + [TestCase(true, "West Us", "West Us")] [TestCase(true, "West Us", "WestUs")] [TestCase(true, "!#()@(#@", "!#()@(#@")] @@ -222,5 +241,106 @@ public void CanAccessDefaultLocation() LocationData location = LocationData.Default; Assert.IsTrue(location.Equals(LocationData.Default)); } + + [Test] + public void LessThanNull() + { + LocationData loc = LocationData.WestUS2; + Assert.IsTrue(null < loc); + Assert.IsFalse(loc < null); + } + + [Test] + public void LessThanOrEqualNull() + { + LocationData loc = LocationData.WestUS2; + Assert.IsTrue(null <= loc); + Assert.IsFalse(loc <= null); + } + + [Test] + public void GreaterThanNull() + { + LocationData loc = LocationData.WestUS2; + Assert.IsFalse(null > loc); + Assert.IsTrue(loc > null); + } + + [Test] + public void GreaterThanOrEqualNull() + { + LocationData loc = LocationData.WestUS2; + Assert.IsFalse(null >= loc); + Assert.IsTrue(loc >= null); + } + + [Test] + public void EqualOperatorNull() + { + LocationData loc = LocationData.WestUS2; + Assert.IsFalse(loc == null); + Assert.IsFalse(null == loc); + } + + [TestCase(false, "WESTUS2", "EASTUS2")] + [TestCase(true, "EASTUS2", "WESTUS2")] + [TestCase(false, "WESTUS2", "WESTUS2")] + public void LessThanOperator(bool expected, string string1, string string2) + { + LocationData loc1 = string1; + LocationData loc2 = string2; + Assert.AreEqual(expected, loc1 < loc2); + } + + [TestCase(false, "WESTUS2", "EASTUS2")] + [TestCase(true, "EASTUS2", "WESTUS2")] + [TestCase(true, "WESTUS2", "WESTUS2")] + public void LessThanOrEqualOperator(bool expected, string string1, string string2) + { + LocationData loc1 = string1; + LocationData loc2 = string2; + Assert.AreEqual(expected, loc1 <= loc2); + } + + [TestCase(true, "WESTUS2", "EASTUS2")] + [TestCase(false, "EASTUS2", "WESTUS2")] + [TestCase(false, "WESTUS2", "WESTUS2")] + public void GreaterThanOperator(bool expected, string string1, string string2) + { + LocationData loc1 = string1; + LocationData loc2 = string2; + Assert.AreEqual(expected, loc1 > loc2); + } + + [TestCase(true, "WESTUS2", "EASTUS2")] + [TestCase(false, "EASTUS2", "WESTUS2")] + [TestCase(true, "WESTUS2", "WESTUS2")] + public void GreaterThanOrEqualOperator(bool expected, string string1, string string2) + { + LocationData loc1 = string1; + LocationData loc2 = string2; + Assert.AreEqual(expected, loc1 >= loc2); + } + + [TestCase(false, "WESTUS2", "EASTUS2")] + [TestCase(false, "EASTUS2", "WESTUS2")] + [TestCase(true, "WESTUS2", "WESTUS2")] + public void EqualOperator(bool expected, string string1, string string2) + { + LocationData loc1 = string1; + LocationData loc2 = string2; + Assert.AreEqual(expected, loc1 == loc2); + } + + [TestCase(true, "WESTUS2", "EASTUS2")] + [TestCase(true, "EASTUS2", "WESTUS2")] + [TestCase(false, "WESTUS2", "WESTUS2")] + public void NotEqualOperator(bool expected, string string1, string string2) + { + LocationData loc1 = string1; + LocationData loc2 = string2; + Assert.AreEqual(expected, loc1 != loc2); + } + } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/PlanTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/PlanTests.cs index d8fd8e2273ba2..1403ed3481734 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/PlanTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/PlanTests.cs @@ -117,14 +117,8 @@ public void EqualsToName(bool expected, string name1, string name2) { Plan plan1 = new Plan(name1, null, null, null, null); Plan plan2 = new Plan(name2, null, null, null, null); - if (expected) - { - Assert.IsTrue(plan1.Equals(plan2)); - } - else - { - Assert.IsFalse(plan1.Equals(plan2)); - } + Assert.AreEqual(expected, plan1.Equals(plan2), "Plans did not match expected equality"); + Assert.AreEqual(expected, plan1.GetHashCode() == plan2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({plan1.GetHashCode()}, {plan2.GetHashCode()})"); } [TestCase(true, "product", "product")] @@ -138,14 +132,8 @@ public void EqualsToProduct(bool expected, string product1, string product2) { Plan plan1 = new Plan(null, null, product1, null, null); Plan plan2 = new Plan(null, null, product2, null, null); - if (expected) - { - Assert.IsTrue(plan1.Equals(plan2)); - } - else - { - Assert.IsFalse(plan1.Equals(plan2)); - } + Assert.AreEqual(expected, plan1.Equals(plan2), "Plans did not match expected equality"); + Assert.AreEqual(expected, plan1.GetHashCode() == plan2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({plan1.GetHashCode()}, {plan2.GetHashCode()})"); } [TestCase(true, "promotionCode", "promotionCode")] @@ -159,14 +147,8 @@ public void EqualsToPromotionCode(bool expected, string promotionCode1, string p { Plan plan1 = new Plan(null, null, null, promotionCode1, null); Plan plan2 = new Plan(null, null, null, promotionCode2, null); - if (expected) - { - Assert.IsTrue(plan1.Equals(plan2)); - } - else - { - Assert.IsFalse(plan1.Equals(plan2)); - } + Assert.AreEqual(expected, plan1.Equals(plan2), "Plans did not match expected equality"); + Assert.AreEqual(expected, plan1.GetHashCode() == plan2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({plan1.GetHashCode()}, {plan2.GetHashCode()})"); } [TestCase(true, "publisher", "publisher")] @@ -180,14 +162,8 @@ public void EqualsToPublisher(bool expected, string publisher1, string publisher { Plan plan1 = new Plan(null, publisher1, null, null, null); Plan plan2 = new Plan(null, publisher2, null, null, null); - if (expected) - { - Assert.IsTrue(plan1.Equals(plan2)); - } - else - { - Assert.IsFalse(plan1.Equals(plan2)); - } + Assert.AreEqual(expected, plan1.Equals(plan2), "Plans did not match expected equality"); + Assert.AreEqual(expected, plan1.GetHashCode() == plan2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({plan1.GetHashCode()}, {plan2.GetHashCode()})"); } [TestCase(true, "version", "version")] @@ -201,14 +177,8 @@ public void EqualsToVersion(bool expected, string version1, string version2) { Plan plan1 = new Plan(null, null, null, null, version1); Plan plan2 = new Plan(null, null, null, null, version2); - if (expected) - { - Assert.IsTrue(plan1.Equals(plan2)); - } - else - { - Assert.IsFalse(plan1.Equals(plan2)); - } + Assert.AreEqual(expected, plan1.Equals(plan2), "Plans did not match expected equality"); + Assert.AreEqual(expected, plan1.GetHashCode() == plan2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({plan1.GetHashCode()}, {plan2.GetHashCode()})"); } [Test] @@ -223,7 +193,16 @@ public void EqualsToNullPlan() public void EqualsToObject() { Plan plan1 = new Plan(null, null, null, null, null); - object plan2 = "random"; + object stringPlan = "random"; + Assert.IsFalse(plan1.Equals(stringPlan)); + + object nullObject = null; + Assert.IsFalse(plan1.Equals(nullObject)); + + object samePlan = plan1; + Assert.IsTrue(plan1.Equals(samePlan)); + + object plan2 = new Plan("Plan2", null, null, null, null); Assert.IsFalse(plan1.Equals(plan2)); } @@ -271,5 +250,121 @@ public void InvalidDeserializationTest() Assert.IsTrue(plan.Publisher == null); Assert.IsTrue(plan.PromotionCode == null); } + + [Test] + public void LessThanNull() + { + Plan plan = new Plan("PlanName", null, null, "PlanPromoCode", null); + Assert.IsTrue(null < plan); + Assert.IsFalse(plan < null); + } + + [Test] + public void LessThanOrEqualNull() + { + Plan plan = new Plan("PlanName", null, null, "PlanPromoCode", null); + Assert.IsTrue(null <= plan); + Assert.IsFalse(plan <= null); + } + + [Test] + public void GreaterThanNull() + { + Plan plan = new Plan("PlanName", null, null, "PlanPromoCode", null); + Assert.IsFalse(null > plan); + Assert.IsTrue(plan > null); + } + + [Test] + public void GreaterThanOrEqualNull() + { + Plan plan = new Plan("PlanName", null, null, "PlanPromoCode", null); + Assert.IsFalse(null >= plan); + Assert.IsTrue(plan >= null); + } + + [TestCase(false, "Nameb", "namea", "familya", "Familyb")] + [TestCase(false, "Nameb", "namea", "familya", "familya")] + [TestCase(false, "namea", "namea", "familya", "familya")] + [TestCase(true, "namea", "Nameb", "Familyb", "familya")] + public void LessThanOperator(bool expected, string name1, string name2, string promo1, string promo2) + { + Plan plan1 = new Plan(name1, null, null, promo1, null); + Plan plan2 = new Plan(name2, null, null, promo2, null); + Assert.AreEqual(expected, plan1 < plan2); + } + + [TestCase(false, "Nameb", "namea", "familya", "Familyb")] + [TestCase(false, "Nameb", "namea", "familya", "familya")] + [TestCase(true, "namea", "namea", "familya", "familya")] + [TestCase(true, "namea", "Nameb", "Familyb", "familya")] + public void LessThanOrEqualOperator(bool expected, string name1, string name2, string promo1, string promo2) + { + Plan plan1 = new Plan(name1, null, null, promo1, null); + Plan plan2 = new Plan(name2, null, null, promo2, null); + Assert.AreEqual(expected, plan1 <= plan2); + } + + [TestCase(true, "Nameb", "namea", "familya", "Familyb")] + [TestCase(true, "Nameb", "namea", "familya", "familya")] + [TestCase(false, "namea", "namea", "familya", "familya")] + [TestCase(false, "namea", "Nameb", "Familyb", "familya")] + public void GreaterThanOperator(bool expected, string name1, string name2, string promo1, string promo2) + { + Plan plan1 = new Plan(name1, null, null, promo1, null); + Plan plan2 = new Plan(name2, null, null, promo2, null); + Assert.AreEqual(expected, plan1 > plan2); + } + + [TestCase(true, "Nameb", "namea", "familya", "Familyb")] + [TestCase(true, "Nameb", "namea", "familya", "familya")] + [TestCase(true, "namea", "namea", "familya", "familya")] + [TestCase(false, "namea", "Nameb", "Familyb", "familya")] + public void GreaterThanOrEqualOperator(bool expected, string name1, string name2, string promo1, string promo2) + { + Plan plan1 = new Plan(name1, null, null, promo1, null); + Plan plan2 = new Plan(name2, null, null, promo2, null); + Assert.AreEqual(expected, plan1 >= plan2); + } + + [TestCase(true, "name", "name", "family", "family")] + [TestCase(true, "Name", "name", "Family", "family")] + [TestCase(false, "name", "name1", "family", "family")] + [TestCase(false, "Name", "name", "Family", "family1")] + [TestCase(true, null, null, null, null)] + [TestCase(false, "name", null, "family", null)] + [TestCase(false, null, "name", null, "family")] + [TestCase(true, "${?/>._`", "${?/>._`", "${?/>._`", "${?/>._`")] + [TestCase(false, "${?/>._`", "", "${?/>._`", "")] + public void EqualsToOperator(bool expected, string name1, string name2, string promo1, string promo2) + { + Plan plan1 = new Plan(name1, null, null, promo1, null); + Plan plan2 = new Plan(name2, null, null, promo2, null); + Assert.AreEqual(expected, plan1 == plan2); + } + + [TestCase(false, "name", "name", "family", "family")] + [TestCase(false, "Name", "name", "Family", "family")] + [TestCase(true, "name", "name1", "family", "family")] + [TestCase(true, "Name", "name", "Family", "family1")] + [TestCase(false, null, null, null, null)] + [TestCase(true, "name", null, "family", null)] + [TestCase(true, null, "name", null, "family")] + [TestCase(false, "${?/>._`", "${?/>._`", "${?/>._`", "${?/>._`")] + [TestCase(true, "${?/>._`", "", "${?/>._`", "")] + public void NotEqualsToOperator(bool expected, string name1, string name2, string promo1, string promo2) + { + Plan plan1 = new Plan(name1, null, null, promo1, null); + Plan plan2 = new Plan(name2, null, null, promo2, null); + Assert.AreEqual(expected, plan1 != plan2); + } + + [Test] + public void EqualOperatorNull() + { + Plan plan1 = new Plan("PlanName", null, null, "PlanPromo", null); + Assert.IsFalse(plan1 == null); + Assert.IsFalse(null == plan1); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/PropertyReferenceTypeTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/PropertyReferenceTypeTests.cs new file mode 100644 index 0000000000000..e78c36d909b73 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/PropertyReferenceTypeTests.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using NUnit.Framework; + +namespace Azure.ResourceManager.Core.Tests +{ + public class PropertyReferenceTypeTests + { + private static readonly Type PropertyReferenceTypeAttribute = typeof(PropertyReferenceTypeAttribute); + private static readonly Type SerializationConstructor = typeof(SerializationConstructorAttribute); + private static readonly Type InitializationConstructor = typeof(InitializationConstructorAttribute); + private static readonly IEnumerable AssemblyTypes = typeof(ArmClient).Assembly.GetTypes(); + + [Test] + public void ValidatePropertyReferenceTypeAttribute() + { + var type = typeof(PropertyReferenceTypeAttribute); + var fieldInfo = type.GetProperties(BindingFlags.Instance | BindingFlags.Public).FirstOrDefault(p => p.Name == "SkipTypes"); + Assert.NotNull(fieldInfo, $"Field 'SkipTypes' is not found"); + Assert.AreEqual(fieldInfo.PropertyType, typeof(Type[])); + Assert.True(fieldInfo.CanRead); + Assert.False(fieldInfo.CanWrite); + } + + [Test] + public void ValidateSerializationConstructor() + { + foreach (var refType in AssemblyTypes.Where(t => HasAttribute(t.GetCustomAttributes(false), PropertyReferenceTypeAttribute))) + { + var serializationCtor = refType.GetConstructors(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic) + .Where(c => HasAttribute(c.GetCustomAttributes(false), SerializationConstructor)).FirstOrDefault(); + Assert.IsNotNull(serializationCtor); + Assert.IsTrue(serializationCtor.IsPublic, $"Serialization ctor for {refType.Name} should not be public"); + } + } + + [Test] + public void ValidateInitializationConstructor() + { + foreach (var refType in AssemblyTypes.Where(t => HasAttribute(t.GetCustomAttributes(false), PropertyReferenceTypeAttribute))) + { + var initializationCtor = refType.GetConstructors(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic) + .Where(c => HasAttribute(c.GetCustomAttributes(false), InitializationConstructor)).FirstOrDefault(); + Assert.IsNotNull(initializationCtor); + Assert.IsTrue(refType.IsAbstract == initializationCtor.IsFamily, $"If {refType.Name} is abstract then its initialization ctor should be protected"); + Assert.IsTrue(refType.IsAbstract != initializationCtor.IsPublic, $"If {refType.Name} is abstract then its initialization ctor should be public"); + Assert.IsFalse(initializationCtor.IsAssembly, $"Initialization ctor for {refType.Name} should not be internal"); + } + } + + public bool HasAttribute(IEnumerable list, Type attributeType) + { + return list.FirstOrDefault(a => a.GetType() == attributeType) is not null; + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceIdentifierTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceIdentifierTests.cs index 605a8cabb0fb2..feaf6948a8008 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceIdentifierTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceIdentifierTests.cs @@ -433,16 +433,16 @@ public void ThrowOnMistypedResource() Assert.DoesNotThrow(() => tenant = "/subscriptions/6b085460-5f21-477e-ba44-1035046e9101"); Assert.DoesNotThrow(() => tenant = "/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/locations/westus2"); Assert.DoesNotThrow(() => tenant = "/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/resourceGroups/myRg"); - SubscriptionResourceIdentifier subscription; - Assert.Throws(() => subscription = "/providers/Contoso.Widgets/widgets/myWidget"); + SubscriptionResourceIdentifier subscription = "/providers/Contoso.Widgets/widgets/myWidget"; + Assert.IsNull(subscription); Assert.Throws(() => subscription = new SubscriptionResourceIdentifier("/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/locations/westus2")); Assert.Throws(() => subscription = new SubscriptionResourceIdentifier("/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/resourceGroups/myRg")); Assert.DoesNotThrow(() => subscription = "/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/locations/westus2"); Assert.DoesNotThrow(() => subscription = "/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/resourceGroups/myRg"); - ResourceGroupResourceIdentifier group; - Assert.Throws(() => group = "/subscriptions/6b085460-5f21-477e-ba44-1035046e9101"); - LocationResourceIdentifier location; - Assert.Throws(() => location = "/subscriptions/6b085460-5f21-477e-ba44-1035046e9101"); + ResourceGroupResourceIdentifier group = "/subscriptions/6b085460-5f21-477e-ba44-1035046e9101"; + Assert.IsNull(group); + LocationResourceIdentifier location = "/subscriptions/6b085460-5f21-477e-ba44-1035046e9101"; + Assert.IsNull(location); } [TestCase(TrackedResourceId, TrackedResourceId, 0)] @@ -731,5 +731,77 @@ public void NotEqualsOperator(string resourceProviderID1, string resourceProvide Assert.AreEqual(expected, a != resourceProviderID2); } } + + [TestCase(false, TrackedResourceId, TrackedResourceId)] + [TestCase(true, TrackedResourceId, ChildResourceId)] + [TestCase(false, ChildResourceId, TrackedResourceId)] + public void LessThanOperator(bool expected, string string1, string string2) + { + ResourceIdentifier id1 = string1; + ResourceIdentifier id2 = string2; + Assert.AreEqual(expected, id1 < id2); + } + + [TestCase(true, TrackedResourceId, TrackedResourceId)] + [TestCase(true, TrackedResourceId, ChildResourceId)] + [TestCase(false, ChildResourceId, TrackedResourceId)] + public void LessThanOrEqualOperator(bool expected, string string1, string string2) + { + ResourceIdentifier id1 = string1; + ResourceIdentifier id2 = string2; + Assert.AreEqual(expected, id1 <= id2); + } + + [TestCase(false, TrackedResourceId, TrackedResourceId)] + [TestCase(false, TrackedResourceId, ChildResourceId)] + [TestCase(true, ChildResourceId, TrackedResourceId)] + public void GreaterThanOperator(bool expected, string string1, string string2) + { + ResourceIdentifier id1 = string1; + ResourceIdentifier id2 = string2; + Assert.AreEqual(expected, id1 > id2); + } + + [TestCase(true, TrackedResourceId, TrackedResourceId)] + [TestCase(false, TrackedResourceId, ChildResourceId)] + [TestCase(true, ChildResourceId, TrackedResourceId)] + public void GreaterThanOrEqualOperator(bool expected, string string1, string string2) + { + ResourceIdentifier id1 = string1; + ResourceIdentifier id2 = string2; + Assert.AreEqual(expected, id1 >= id2); + } + + [Test] + public void LessThanNull() + { + ResourceIdentifier id = TrackedResourceId; + Assert.IsTrue(null < id); + Assert.IsFalse(id < null); + } + + [Test] + public void LessThanOrEqualNull() + { + ResourceIdentifier id = TrackedResourceId; + Assert.IsTrue(null <= id); + Assert.IsFalse(id <= null); + } + + [Test] + public void GreaterThanNull() + { + ResourceIdentifier id = TrackedResourceId; + Assert.IsFalse(null > id); + Assert.IsTrue(id > null); + } + + [Test] + public void GreaterThanOrEqualNull() + { + ResourceIdentifier id = TrackedResourceId; + Assert.IsFalse(null >= id); + Assert.IsTrue(id >= null); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceListOperationsTest.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceListOperationsTest.cs index c169ed69fda01..0f7ef2bcee402 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceListOperationsTest.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceListOperationsTest.cs @@ -14,7 +14,7 @@ private static Plan GetPlan() private static Sku GetSku() { - return new Sku("name", "tier", "family", "size", 10); + return new Sku("name", "tier", "family", "size", "model", 10); } private static GenericResourceData GetGenericResource() diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTests.cs deleted file mode 100644 index 4bb596b7c7ede..0000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTests.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using NUnit.Framework; - -namespace Azure.ResourceManager.Core.Tests -{ - [Parallelizable] - public class ResourceTests - { - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] - [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - public void CompareToObject(int expected, string id1, string id2) - { - TestResource resource1 = new TestResource(id1); - TestResource resource2 = new TestResource(id2); - Assert.AreEqual(expected, resource1.CompareTo(resource2)); - } - - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] - [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - public void CompareToString(int expected, string id1, string id2) - { - TestResource resource1 = new TestResource(id1); - Assert.AreEqual(expected, resource1.CompareTo(id2)); - } - - [Test] - public void CompareToNull() - { - var resource1 = new TestResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); - TestResource resource2 = null; - Assert.AreEqual(1, resource1.CompareTo(resource2)); - Assert.AreEqual(1, resource1.CompareTo((string)null)); - } - - [Test] - public void CompareToSame() - { - var resource1 = new TestResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); - var resource2 = resource1; - Assert.AreEqual(0, resource1.CompareTo(resource2)); - } - } -} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTypeTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTypeTests.cs index b0b3bfe766086..1507a2750e54f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTypeTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/ResourceTypeTests.cs @@ -174,6 +174,7 @@ public void EqualsOpResourceTypeToResourceType(bool expected, string left, strin ResourceType leftResource = left; ResourceType rightResource = right; Assert.AreEqual(expected, leftResource == rightResource); + Assert.AreEqual(expected, leftResource?.GetHashCode() == rightResource?.GetHashCode()); } [TestCase(true, null, "Microsoft.Network1/VirtualNetworks2/subnets1")] @@ -229,6 +230,13 @@ public void EqualsWithObjectResourceType(bool expected, string left, string righ ResourceType rightRt = right; object rightObject = rightRt; Assert.AreEqual(expected, rt.Equals(rightObject)); + Assert.AreEqual(expected, rt?.GetHashCode() == rightRt?.GetHashCode()); + + object sameRt = rt; + Assert.IsTrue(rt.Equals(sameRt)); + + object intRt = 5; + Assert.IsFalse(rt.Equals(intRt)); } [TestCase(false, "Microsoft.Network1/VirtualNetworks2/subnets1", null)] @@ -277,5 +285,77 @@ public void ValidateIsParentOf(string childId, string parentId, bool expectedEqu ResourceType parentRt = parentId; Assert.AreEqual(expectedEquals, parentRt.IsParentOf(childRt)); } + + [TestCase(false, "Microsoft.Network/virtualNetworks/subnets2", "Microsoft.Network/virtualNetworks/subnets1")] + [TestCase(true, "Microsoft.Network/virtualNetworks/subnets1", "Microsoft.Network/virtualNetworks/subnets2")] + [TestCase(false, "Microsoft.Network/virtualNetworks/subnets1", "Microsoft.Network/virtualNetworks/subnets1")] + public void LessThanOperator(bool expected, string string1, string string2) + { + ResourceType rt1 = string1; + ResourceType rt2 = string2; + Assert.AreEqual(expected, rt1 < rt2); + } + + [TestCase(false, "Microsoft.Network/virtualNetworks/subnets2", "Microsoft.Network/virtualNetworks/subnets1")] + [TestCase(true, "Microsoft.Network/virtualNetworks/subnets1", "Microsoft.Network/virtualNetworks/subnets2")] + [TestCase(true, "Microsoft.Network/virtualNetworks/subnets1", "Microsoft.Network/virtualNetworks/subnets1")] + public void LessThanOrEqualOperator(bool expected, string string1, string string2) + { + ResourceType rt1 = string1; + ResourceType rt2 = string2; + Assert.AreEqual(expected, rt1 <= rt2); + } + + [TestCase(true, "Microsoft.Network/virtualNetworks/subnets2", "Microsoft.Network/virtualNetworks/subnets1")] + [TestCase(false, "Microsoft.Network/virtualNetworks/subnets1", "Microsoft.Network/virtualNetworks/subnets2")] + [TestCase(false, "Microsoft.Network/virtualNetworks/subnets1", "Microsoft.Network/virtualNetworks/subnets1")] + public void GreaterThanOperator(bool expected, string string1, string string2) + { + ResourceType rt1 = string1; + ResourceType rt2 = string2; + Assert.AreEqual(expected, rt1 > rt2); + } + + [TestCase(true, "Microsoft.Network/virtualNetworks/subnets2", "Microsoft.Network/virtualNetworks/subnets1")] + [TestCase(false, "Microsoft.Network/virtualNetworks/subnets1", "Microsoft.Network/virtualNetworks/subnets2")] + [TestCase(true, "Microsoft.Network/virtualNetworks/subnets1", "Microsoft.Network/virtualNetworks/subnets1")] + public void GreaterThanOrEqualOperator(bool expected, string string1, string string2) + { + ResourceType rt1 = string1; + ResourceType rt2 = string2; + Assert.AreEqual(expected, rt1 >= rt2); + } + + [Test] + public void LessThanNull() + { + ResourceType rt = "Microsoft.Network/virtualNetworks/subnets1"; + Assert.IsTrue(null < rt); + Assert.IsFalse(rt < null); + } + + [Test] + public void LessThanOrEqualNull() + { + ResourceType rt = "Microsoft.Network/virtualNetworks/subnets1"; + Assert.IsTrue(null <= rt); + Assert.IsFalse(rt <= null); + } + + [Test] + public void GreaterThanNull() + { + ResourceType rt = "Microsoft.Network/virtualNetworks/subnets1"; + Assert.IsFalse(null > rt); + Assert.IsTrue(rt > null); + } + + [Test] + public void GreaterThanOrEqualNull() + { + ResourceType rt = "Microsoft.Network/virtualNetworks/subnets1"; + Assert.IsFalse(null >= rt); + Assert.IsTrue(rt >= null); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SkuTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SkuTests.cs index 793d13903cde0..c0ec508248f88 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SkuTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SkuTests.cs @@ -19,8 +19,8 @@ class SkuTests [TestCase(1, "${?/>._`", "")] public void CompareToName(int expected, string name1, string name2) { - Sku sku1 = new Sku(name1, null, null, null); - Sku sku2 = new Sku(name2, null, null, null); + Sku sku1 = new Sku(name1, null, null, null, null); + Sku sku2 = new Sku(name2, null, null, null, null); Assert.AreEqual(expected, sku1.CompareTo(sku2)); } @@ -33,8 +33,22 @@ public void CompareToName(int expected, string name1, string name2) [TestCase(1, "${?/>._`", "")] public void CompareToFamily(int expected, string family1, string family2) { - Sku sku1 = new Sku(null, null, family1, null); - Sku sku2 = new Sku(null, null, family2, null); + Sku sku1 = new Sku(null, null, null, family1, null); + Sku sku2 = new Sku(null, null, null, family2, null); + Assert.AreEqual(expected, sku1.CompareTo(sku2)); + } + + [TestCase(0, "model", "model")] + [TestCase(0, "Model", "model")] + [TestCase(0, null, null)] + [TestCase(1, "model", null)] + [TestCase(-1, null, "model")] + [TestCase(0, "${?/>._`", "${?/>._`")] + [TestCase(1, "${?/>._`", "")] + public void CompareToModel(int expected, string model1, string model2) + { + Sku sku1 = new Sku(null, null, null, null, model1); + Sku sku2 = new Sku(null, null, null, null, model2); Assert.AreEqual(expected, sku1.CompareTo(sku2)); } @@ -47,8 +61,8 @@ public void CompareToFamily(int expected, string family1, string family2) [TestCase(1, "${?/>._`", "")] public void CompareToSize(int expected, string size1, string size2) { - Sku sku1 = new Sku(null, null, null, size1); - Sku sku2 = new Sku(null, null, null, size2); + Sku sku1 = new Sku(null, null, size1, null, null); + Sku sku2 = new Sku(null, null, size2, null, null); Assert.AreEqual(expected, sku1.CompareTo(sku2)); } @@ -61,8 +75,8 @@ public void CompareToSize(int expected, string size1, string size2) [TestCase(1, "${?/>._`", "")] public void CompareToTier(int expected, string tier1, string tier2) { - Sku sku1 = new Sku(null, tier1, null, null); - Sku sku2 = new Sku(null, tier2, null, null); + Sku sku1 = new Sku(null, tier1, null, null, null); + Sku sku2 = new Sku(null, tier2, null, null, null); Assert.AreEqual(expected, sku1.CompareTo(sku2)); } @@ -73,15 +87,15 @@ public void CompareToTier(int expected, string tier1, string tier2) [TestCase(-1, null, 1)] public void CompareToCapacity(int expected, long? capacity1, long? capacity2) { - Sku sku1 = capacity1 == null ? new Sku(null, null, null, null) : new Sku(null, null, null, null, capacity1); - Sku sku2 = capacity2 == null ? new Sku(null, null, null, null) : new Sku(null, null, null, null, capacity2); + Sku sku1 = capacity1 == null ? new Sku(null, null, null, null, null) : new Sku(null, null, null, null, null, capacity1); + Sku sku2 = capacity2 == null ? new Sku(null, null, null, null, null) : new Sku(null, null, null, null, null, capacity2); Assert.AreEqual(expected, sku1.CompareTo(sku2)); } [Test] public void CompareToNullSku() { - Sku sku1 = new Sku(null, null, null, null); + Sku sku1 = new Sku(null, null, null, null, null); Sku sku2 = null; Assert.AreEqual(1, sku1.CompareTo(sku2)); } @@ -89,7 +103,7 @@ public void CompareToNullSku() [Test] public void CompareToSameSkus() { - Sku sku1 = new Sku(null, null, null, null); + Sku sku1 = new Sku(null, null, null, null, null); Sku sku2 = sku1; Assert.AreEqual(0, sku1.CompareTo(sku2)); } @@ -99,11 +113,87 @@ public void CompareToSameSkus() [TestCase(-1, "namea", "Nameb", "Familyb", "familya")] public void CompareToMore(int expected, string name1, string name2, string family1, string family2) { - Sku sku1 = new Sku(name1, null, family1, null); - Sku sku2 = new Sku(name2, null, family2, null); + Sku sku1 = new Sku(name1, null, null, family1, null); + Sku sku2 = new Sku(name2, null, null, family2, null); Assert.AreEqual(expected, sku1.CompareTo(sku2)); } + [Test] + public void LessThanNull() + { + Sku sku = new Sku("SkuName", null, null, "SkuFamily", null); + Assert.IsTrue(null < sku); + Assert.IsFalse(sku < null); + } + + [Test] + public void LessThanOrEqualNull() + { + Sku sku = new Sku("SkuName", null, null, "SkuFamily", null); + Assert.IsTrue(null <= sku); + Assert.IsFalse(sku <= null); + } + + [Test] + public void GreaterThanNull() + { + Sku sku = new Sku("SkuName", null, null, "SkuFamily", null); + Assert.IsFalse(null > sku); + Assert.IsTrue(sku > null); + } + + [Test] + public void GreaterThanOrEqualNull() + { + Sku sku = new Sku("SkuName", null, null, "SkuFamily", null); + Assert.IsFalse(null >= sku); + Assert.IsTrue(sku >= null); + } + + [TestCase(false, "Nameb", "namea", "familya", "Familyb")] + [TestCase(false, "Nameb", "namea", "familya", "familya")] + [TestCase(false, "namea", "namea", "familya", "familya")] + [TestCase(true, "namea", "Nameb", "Familyb", "familya")] + public void LessThanOperator(bool expected, string name1, string name2, string family1, string family2) + { + Sku sku1 = new Sku(name1, null, null, family1, null); + Sku sku2 = new Sku(name2, null, null, family2, null); + Assert.AreEqual(expected, sku1 < sku2); + } + + [TestCase(false, "Nameb", "namea", "familya", "Familyb")] + [TestCase(false, "Nameb", "namea", "familya", "familya")] + [TestCase(true, "namea", "namea", "familya", "familya")] + [TestCase(true, "namea", "Nameb", "Familyb", "familya")] + public void LessThanOrEqualOperator(bool expected, string name1, string name2, string family1, string family2) + { + Sku sku1 = new Sku(name1, null, null, family1, null); + Sku sku2 = new Sku(name2, null, null, family2, null); + Assert.AreEqual(expected, sku1 <= sku2); + } + + [TestCase(true, "Nameb", "namea", "familya", "Familyb")] + [TestCase(true, "Nameb", "namea", "familya", "familya")] + [TestCase(false, "namea", "namea", "familya", "familya")] + [TestCase(false, "namea", "Nameb", "Familyb", "familya")] + public void GreaterThanOperator(bool expected, string name1, string name2, string family1, string family2) + { + Sku sku1 = new Sku(name1, null, null, family1, null); + Sku sku2 = new Sku(name2, null, null, family2, null); + Assert.AreEqual(expected, sku1 > sku2); + } + + [TestCase(true, "Nameb", "namea", "familya", "Familyb")] + [TestCase(true, "Nameb", "namea", "familya", "familya")] + [TestCase(true, "namea", "namea", "familya", "familya")] + [TestCase(false, "namea", "Nameb", "Familyb", "familya")] + public void GreaterThanOrEqualOperator(bool expected, string name1, string name2, string family1, string family2) + { + Sku sku1 = new Sku(name1, null, null, family1, null); + Sku sku2 = new Sku(name2, null, null, family2, null); + Assert.AreEqual(expected, sku1 >= sku2); + } + [TestCase(true, "name", "name")] [TestCase(true, "Name", "name")] [TestCase(true, null, null)] @@ -113,16 +203,42 @@ public void CompareToMore(int expected, string name1, string name2, string famil [TestCase(false, "${?/>._`", "")] public void EqualsToName(bool expected, string name1, string name2) { - Sku sku1 = new Sku(name1, null, null, null); - Sku sku2 = new Sku(name2, null, null, null); - if (expected) - { - Assert.IsTrue(sku1.Equals(sku2)); - } - else - { - Assert.IsFalse(sku1.Equals(sku2)); - } + Sku sku1 = new Sku(name1, null, null, null, null); + Sku sku2 = new Sku(name2, null, null, null, null); + Assert.AreEqual(expected, sku1.Equals(sku2), "Skus did not match expected equals"); + Assert.AreEqual(expected, sku1.GetHashCode() == sku2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({sku1.GetHashCode()}, {sku2.GetHashCode()})"); + } + + [TestCase(true, "name", "name", "family", "family")] + [TestCase(true, "Name", "name", "Family", "family")] + [TestCase(false, "name", "name1", "family", "family")] + [TestCase(false, "Name", "name", "Family", "family1")] + [TestCase(true, null, null, null, null)] + [TestCase(false, "name", null, "family", null)] + [TestCase(false, null, "name", null, "family")] + [TestCase(true, "${?/>._`", "${?/>._`", "${?/>._`", "${?/>._`")] + [TestCase(false, "${?/>._`", "", "${?/>._`", "")] + public void EqualsToOperator(bool expected, string name1, string name2, string family1, string family2) + { + Sku sku1 = new Sku(name1, family1, null, null, null); + Sku sku2 = new Sku(name2, family2, null, null, null); + Assert.AreEqual(expected, sku1 == sku2); + } + + [TestCase(false, "name", "name", "family", "family")] + [TestCase(false, "Name", "name", "Family", "family")] + [TestCase(true, "name", "name1", "family", "family")] + [TestCase(true, "Name", "name", "Family", "family1")] + [TestCase(false, null, null, null, null)] + [TestCase(true, "name", null, "family", null)] + [TestCase(true, null, "name", null, "family")] + [TestCase(false, "${?/>._`", "${?/>._`", "${?/>._`", "${?/>._`")] + [TestCase(true, "${?/>._`", "", "${?/>._`", "")] + public void NotEqualsToOperator(bool expected, string name1, string name2, string family1, string family2) + { + Sku sku1 = new Sku(name1, family1, null, null, null); + Sku sku2 = new Sku(name2, family2, null, null, null); + Assert.AreEqual(expected, sku1 != sku2); } [TestCase(true, "family", "family")] @@ -134,16 +250,10 @@ public void EqualsToName(bool expected, string name1, string name2) [TestCase(false, "${?/>._`", "")] public void EqualsToFamily(bool expected, string family1, string family2) { - Sku sku1 = new Sku(null, null, family1, null); - Sku sku2 = new Sku(null, null, family2, null); - if (expected) - { - Assert.IsTrue(sku1.Equals(sku2)); - } - else - { - Assert.IsFalse(sku1.Equals(sku2)); - } + Sku sku1 = new Sku(null, null, null, family1, null); + Sku sku2 = new Sku(null, null, null, family2, null); + Assert.AreEqual(expected, sku1.Equals(sku2), "Skus did not match expected equals"); + Assert.AreEqual(expected, sku1.GetHashCode() == sku2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({sku1.GetHashCode()}, {sku2.GetHashCode()})"); } [TestCase(true, "size", "size")] @@ -155,16 +265,10 @@ public void EqualsToFamily(bool expected, string family1, string family2) [TestCase(false, "${?/>._`", "")] public void EqualsToSize(bool expected, string size1, string size2) { - Sku sku1 = new Sku(null, null, null, size1); - Sku sku2 = new Sku(null, null, null, size2); - if (expected) - { - Assert.IsTrue(sku1.Equals(sku2)); - } - else - { - Assert.IsFalse(sku1.Equals(sku2)); - } + Sku sku1 = new Sku(null, null, size1, null, null); + Sku sku2 = new Sku(null, null, size2, null, null); + Assert.AreEqual(expected, sku1.Equals(sku2), "Skus did not match expected equals"); + Assert.AreEqual(expected, sku1.GetHashCode() == sku2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({sku1.GetHashCode()}, {sku2.GetHashCode()})"); } [TestCase(true, "tier", "tier")] @@ -176,16 +280,25 @@ public void EqualsToSize(bool expected, string size1, string size2) [TestCase(false, "${?/>._`", "")] public void EqualsToTier(bool expected, string tier1, string tier2) { - Sku sku1 = new Sku(null, tier1, null, null); - Sku sku2 = new Sku(null, tier2, null, null); - if (expected) - { - Assert.IsTrue(sku1.Equals(sku2)); - } - else - { - Assert.IsFalse(sku1.Equals(sku2)); - } + Sku sku1 = new Sku(null, tier1, null, null, null, null); + Sku sku2 = new Sku(null, tier2, null, null, null, null); + Assert.AreEqual(expected, sku1.Equals(sku2), "Skus did not match expected equals"); + Assert.AreEqual(expected, sku1.GetHashCode() == sku2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({sku1.GetHashCode()}, {sku2.GetHashCode()})"); + } + + [TestCase(true, "model", "model")] + [TestCase(true, "Model", "model")] + [TestCase(true, null, null)] + [TestCase(false, "model", null)] + [TestCase(false, null, "model")] + [TestCase(true, "${?/>._`", "${?/>._`")] + [TestCase(false, "${?/>._`", "")] + public void EqualsToModel(bool expected, string model1, string model2) + { + Sku sku1 = new Sku(null, null, null, null, model1, null); + Sku sku2 = new Sku(null, null, null, null, model2, null); + Assert.AreEqual(expected, sku1.Equals(sku2), "Skus did not match expected equals"); + Assert.AreEqual(expected, sku1.GetHashCode() == sku2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({sku1.GetHashCode()}, {sku2.GetHashCode()})"); } [TestCase(true, 1, 1)] @@ -195,22 +308,16 @@ public void EqualsToTier(bool expected, string tier1, string tier2) [TestCase(false, null, 1)] public void EqualsToCapacity(bool expected, long? capacity1, long? capacity2) { - Sku sku1 = capacity1 == null ? new Sku(null, null, null, null) : new Sku(null, null, null, null, capacity1); - Sku sku2 = capacity2 == null ? new Sku(null, null, null, null) : new Sku(null, null, null, null, capacity2); - if (expected) - { - Assert.IsTrue(sku1.Equals(sku2)); - } - else - { - Assert.IsFalse(sku1.Equals(sku2)); - } + Sku sku1 = capacity1 == null ? new Sku(null, null, null, null, null) : new Sku(null, null, null, null, null, capacity1); + Sku sku2 = capacity2 == null ? new Sku(null, null, null, null, null) : new Sku(null, null, null, null, null, capacity2); + Assert.AreEqual(expected, sku1.Equals(sku2), "Skus did not match expected equals"); + Assert.AreEqual(expected, sku1.GetHashCode() == sku2.GetHashCode(), $"Hashcodes comparison was expect {expected} but was {!expected}, ({sku1.GetHashCode()}, {sku2.GetHashCode()})"); } [Test] public void EqualsToNullSku() { - Sku sku1 = new Sku(null, null, null, null); + Sku sku1 = new Sku(null, null, null, null, null); Sku sku2 = null; Assert.IsFalse(sku1.Equals(sku2)); } @@ -218,15 +325,24 @@ public void EqualsToNullSku() [Test] public void EqualsToObject() { - Sku sku1 = new Sku(null, null, null, null); - object sku2 = "random"; + Sku sku1 = new Sku(null, null, null, null, null); + object sku2 = new Sku("SkuName", null, null, null, null); + object stringSku = "random"; + Assert.IsFalse(sku1.Equals(stringSku)); + + object nullSku = null; + Assert.IsFalse(sku1.Equals(nullSku)); + + object sameSku = sku1; + Assert.IsTrue(sku1.Equals(sameSku)); + Assert.IsFalse(sku1.Equals(sku2)); } [Test] public void EqualsToSameSkus() { - Sku sku1 = new Sku(null, null, null, null); + Sku sku1 = new Sku(null, null, null, null, null); Sku sku2 = sku1; Assert.IsTrue(sku1.Equals(sku2)); } @@ -234,16 +350,16 @@ public void EqualsToSameSkus() [Test] public void SerializationTest() { - string expected = "{\"properties\":{\"name\":\"NameForSku\",\"tier\":\"TierForSku\",\"size\":\"SizeForSku\",\"family\":\"FamilyForSku\",\"capacity\":123456789}}"; - Sku sku = new("NameForSku", "TierForSku", "FamilyForSku", "SizeForSku", 123456789); + string expected = "{\"properties\":{\"name\":\"NameForSku\",\"tier\":\"TierForSku\",\"size\":\"SizeForSku\",\"family\":\"FamilyForSku\",\"model\":\"ModelForSku\",\"capacity\":123456789}}"; + Sku sku = new("NameForSku", "TierForSku", "SizeForSku", "FamilyForSku", "ModelForSku", 123456789); var json = JsonHelper.SerializePropertiesToString(sku); - Assert.IsTrue(expected.Equals(json)); + Assert.AreEqual(expected, json); } [Test] public void InvalidSerializationTest() { - Sku sku = new(null, null, null, null); + Sku sku = new(null, null, null, null, null); var json = JsonHelper.SerializePropertiesToString(sku); Assert.IsTrue(json.Equals("{\"properties\":{}}")); } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SubResourceTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SubResourceTests.cs index c82a98544162d..f250a5e2c4404 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SubResourceTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/SubResourceTests.cs @@ -1,10 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; -using System.Text; using System.Text.Json; -using Azure.Core; using Azure.ResourceManager.TestFramework; using NUnit.Framework; @@ -13,74 +10,17 @@ namespace Azure.ResourceManager.Core.Tests [Parallelizable] public class SubResourceTests { - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] - [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - public void CompareToObject(int expected, string id1, string id2) - { - SubResource resource1 = new SubResource(id1); - SubResource resource2 = new SubResource(id2); - Assert.AreEqual(expected, resource1.CompareTo(resource2)); - } - - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] - [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - public void CompareToString(int expected, string id1, string id2) - { - SubResource resource1 = new SubResource(id1); - Assert.AreEqual(expected, resource1.CompareTo(id2)); - } - - [Test] - public void CompareToNull() - { - var resource1 = new SubResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); - SubResource resource2 = null; - var resource3 = new SubResource(); - Assert.AreEqual(1, resource1.CompareTo(resource2)); - Assert.AreEqual(1, resource1.CompareTo(resource3)); - Assert.AreEqual(1, resource1.CompareTo((string)null)); - } - - [Test] - public void CompareToSame() - { - var resource1 = new SubResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); - var resource2 = resource1; - Assert.AreEqual(0, resource1.CompareTo(resource2)); - } - [Test] public void Deserialization() { var id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"; + var expected = "{\"id\":\"" + id + "\"}"; var resource1 = new SubResource(id); var jsonString = JsonHelper.SerializeToString(resource1); var json = JsonDocument.Parse(jsonString).RootElement; var resource2 = SubResource.DeserializeSubResource(json); - Assert.AreEqual(0, resource1.CompareTo(resource2)); - Assert.IsTrue(resource1.Equals(resource2)); - Assert.IsTrue(resource1.Equals(id)); - Assert.IsFalse(resource1.Equals(id + "1")); + Assert.AreEqual(expected, jsonString); + Assert.AreEqual(jsonString, JsonHelper.SerializeToString(resource2)); } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/GenericResourceData/SerializationTestType1.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/GenericResourceData/SerializationTestType1.json index b03951d669965..9c9df56dd47ce 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/GenericResourceData/SerializationTestType1.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/GenericResourceData/SerializationTestType1.json @@ -14,6 +14,7 @@ "tier": "TierForSku", "size": "SizeForSku", "family": "FamilyForSku", + "model": "ModelForSku", "capacity": 15464547 }, "location": "East US", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/GenericResourceData/SerializationTestType2.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/GenericResourceData/SerializationTestType2.json index c673726e7f600..7ecfaa0720937 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/GenericResourceData/SerializationTestType2.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/TestAssets/GenericResourceData/SerializationTestType2.json @@ -14,6 +14,7 @@ "tier": "TierForSku", "size": "SizeForSku", "family": "FamilyForSku", + "model": "ModelForSku", "capacity": 15464547 }, "location": "East US", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/WritableSubResourceTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/WritableSubResourceTests.cs deleted file mode 100644 index a5141148820fa..0000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Unit/WritableSubResourceTests.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using NUnit.Framework; - -namespace Azure.ResourceManager.Core.Tests -{ - [Parallelizable] - public class WritableSubResourceTests - { - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] - [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - public void CompareToObject(int expected, string id1, string id2) - { - WritableSubResource resource1 = new WritableSubResource(id1); - WritableSubResource resource2 = new WritableSubResource(id2); - Assert.AreEqual(expected, resource1.CompareTo(resource2)); - } - - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.classicStorage/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account2")] - [TestCase(1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.DiffSpace/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - [TestCase(0, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.${?>._`/storageAccounts/account1")] - [TestCase(-1, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/${?>._`", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account2")] - public void CompareToString(int expected, string id1, string id2) - { - WritableSubResource resource1 = new WritableSubResource(id1); - Assert.AreEqual(expected, resource1.CompareTo(id2)); - } - - [Test] - public void CompareToNull() - { - var resource1 = new WritableSubResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); - WritableSubResource resource2 = null; - Assert.AreEqual(1, resource1.CompareTo(resource2)); - Assert.AreEqual(1, resource1.CompareTo((string)null)); - } - - [Test] - public void CompareToSame() - { - var resource1 = new WritableSubResource("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.ClassicStorage/storageAccounts/account1"); - var resource2 = resource1; - Assert.AreEqual(0, resource1.CompareTo(resource2)); - } - } -}