From a46238f956268ff40b77242f62532302ee691e90 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Fri, 9 Jul 2021 23:19:16 +0800 Subject: [PATCH 1/5] constructors with OperationsBase --- .../Generated/AvailabilitySet.cs | 2 +- .../Generated/AvailabilitySetContainer.cs | 18 +++++++++--------- .../Generated/AvailabilitySetOperations.cs | 2 +- .../AvailabilitySetsCreateOrUpdateOperation.cs | 2 +- .../AvailabilitySetsUpdateOperation.cs | 2 +- .../Generated/DedicatedHost.cs | 2 +- .../Generated/DedicatedHostContainer.cs | 18 +++++++++--------- .../Generated/DedicatedHostGroup.cs | 2 +- .../Generated/DedicatedHostGroupContainer.cs | 18 +++++++++--------- .../Generated/DedicatedHostGroupOperations.cs | 2 +- ...dicatedHostGroupsCreateOrUpdateOperation.cs | 2 +- .../DedicatedHostGroupsUpdateOperation.cs | 2 +- .../Generated/DedicatedHostOperations.cs | 2 +- .../DedicatedHostsCreateOrUpdateOperation.cs | 4 ++-- .../Generated/DedicatedHostsUpdateOperation.cs | 4 ++-- .../Generated/Image.cs | 2 +- .../Generated/ImageContainer.cs | 18 +++++++++--------- .../Generated/ImageOperations.cs | 2 +- .../Generated/ImagesCreateOrUpdateOperation.cs | 4 ++-- .../Generated/ImagesUpdateOperation.cs | 4 ++-- .../Generated/ProximityPlacementGroup.cs | 2 +- .../ProximityPlacementGroupContainer.cs | 18 +++++++++--------- .../ProximityPlacementGroupOperations.cs | 2 +- ...tyPlacementGroupsCreateOrUpdateOperation.cs | 2 +- .../ProximityPlacementGroupsUpdateOperation.cs | 2 +- .../Generated/SshPublicKey.cs | 2 +- .../Generated/SshPublicKeyContainer.cs | 18 +++++++++--------- .../Generated/SshPublicKeyOperations.cs | 2 +- .../Generated/SshPublicKeysCreateOperation.cs | 2 +- .../Generated/SshPublicKeysUpdateOperation.cs | 2 +- .../Generated/VirtualMachine.cs | 2 +- .../Generated/VirtualMachineContainer.cs | 18 +++++++++--------- .../Generated/VirtualMachineExtension.cs | 2 +- .../VirtualMachineExtensionContainer.cs | 10 +++++----- .../Generated/VirtualMachineExtensionImage.cs | 2 +- .../VirtualMachineExtensionImageContainer.cs | 6 +++--- .../VirtualMachineExtensionImageOperations.cs | 2 +- .../VirtualMachineExtensionOperations.cs | 2 +- ...alMachineExtensionVirtualMachineScaleSet.cs | 2 +- ...ExtensionVirtualMachineScaleSetContainer.cs | 10 +++++----- ...xtensionVirtualMachineScaleSetOperations.cs | 2 +- ...MachineExtensionsCreateOrUpdateOperation.cs | 4 ++-- .../VirtualMachineExtensionsUpdateOperation.cs | 4 ++-- .../Generated/VirtualMachineOperations.cs | 2 +- .../Generated/VirtualMachineScaleSet.cs | 2 +- .../VirtualMachineScaleSetContainer.cs | 18 +++++++++--------- .../VirtualMachineScaleSetExtension.cs | 2 +- ...VirtualMachineScaleSetExtensionContainer.cs | 18 +++++++++--------- ...irtualMachineScaleSetExtensionOperations.cs | 2 +- ...caleSetExtensionsCreateOrUpdateOperation.cs | 4 ++-- ...MachineScaleSetExtensionsUpdateOperation.cs | 4 ++-- .../VirtualMachineScaleSetOperations.cs | 2 +- .../VirtualMachineScaleSetRollingUpgrade.cs | 2 +- ...lMachineScaleSetRollingUpgradeOperations.cs | 2 +- .../Generated/VirtualMachineScaleSetVM.cs | 2 +- .../VirtualMachineScaleSetVMContainer.cs | 18 +++++++++--------- ...leSetVMExtensionsCreateOrUpdateOperation.cs | 4 ++-- ...chineScaleSetVMExtensionsUpdateOperation.cs | 4 ++-- .../VirtualMachineScaleSetVMOperations.cs | 2 +- ...VirtualMachineScaleSetVMsUpdateOperation.cs | 4 ++-- ...lMachineScaleSetsCreateOrUpdateOperation.cs | 4 ++-- .../VirtualMachineScaleSetsUpdateOperation.cs | 4 ++-- .../VirtualMachinesCreateOrUpdateOperation.cs | 4 ++-- .../VirtualMachinesUpdateOperation.cs | 4 ++-- .../MgmtLongRunningOperationWriter.cs | 4 ++-- .../NonLongRunningOperationWriter.cs | 2 +- .../Mgmt/Generation/ResourceContainerWriter.cs | 18 +++++++++--------- .../Mgmt/Generation/ResourceOperationWriter.cs | 2 +- .../Mgmt/Generation/ResourceWriter.cs | 2 +- .../TenantOnly/Generated/Agreement.cs | 2 +- .../TenantOnly/Generated/AgreementContainer.cs | 6 +++--- .../Generated/AgreementOperations.cs | 2 +- .../TenantOnly/Generated/BillingAccount.cs | 2 +- .../Generated/BillingAccountContainer.cs | 10 +++++----- .../Generated/BillingAccountOperations.cs | 2 +- .../BillingAccountsUpdateOperation.cs | 4 ++-- 76 files changed, 197 insertions(+), 197 deletions(-) diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySet.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySet.cs index f2633147ae3..55e84326037 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySet.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySet.cs @@ -17,7 +17,7 @@ public class AvailabilitySet : AvailabilitySetOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal AvailabilitySet(ResourceOperationsBase options, AvailabilitySetData resource) : base(options, resource.Id) + internal AvailabilitySet(OperationsBase options, AvailabilitySetData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetContainer.cs index c53d9be5ddc..be693f32b83 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetContainer.cs @@ -26,7 +26,7 @@ protected AvailabilitySetContainer() /// Initializes a new instance of AvailabilitySetContainer class. /// The resource representing the parent resource. - internal AvailabilitySetContainer(ResourceOperationsBase parent) : base(parent) + internal AvailabilitySetContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public AvailabilitySetsCreateOrUpdateOperation StartCreateOrUpdate(string availa } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, availabilitySetName, parameters, cancellationToken: cancellationToken); - return new AvailabilitySetsCreateOrUpdateOperation(Parent, originalResponse); + return new AvailabilitySetsCreateOrUpdateOperation(this, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOrUpdateAs } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, availabilitySetName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new AvailabilitySetsCreateOrUpdateOperation(Parent, originalResponse); + return new AvailabilitySetsCreateOrUpdateOperation(this, originalResponse); } catch (Exception e) { @@ -174,7 +174,7 @@ public Response Get(string availabilitySetName, CancellationTok } var response = _restClient.Get(Id.ResourceGroupName, availabilitySetName, cancellationToken: cancellationToken); - return Response.FromValue(new AvailabilitySet(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new AvailabilitySet(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +198,7 @@ public async Task> GetAsync(string availabilitySetName } var response = await _restClient.GetAsync(Id.ResourceGroupName, availabilitySetName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new AvailabilitySet(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new AvailabilitySet(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +219,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +234,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +257,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +272,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHin try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetOperations.cs index 24a615ead48..824ac2596e4 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetOperations.cs @@ -30,7 +30,7 @@ protected AvailabilitySetOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal AvailabilitySetOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal AvailabilitySetOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new AvailabilitySetsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsCreateOrUpdateOperation.cs index 90cabe7697d..cd75da91329 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsCreateOrUpdateOperation.cs @@ -24,7 +24,7 @@ protected AvailabilitySetsCreateOrUpdateOperation() { } - internal AvailabilitySetsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, Response response) + internal AvailabilitySetsCreateOrUpdateOperation(OperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new AvailabilitySet(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsUpdateOperation.cs index af107ad506c..585214ee5b3 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsUpdateOperation.cs @@ -24,7 +24,7 @@ protected AvailabilitySetsUpdateOperation() { } - internal AvailabilitySetsUpdateOperation(ResourceOperationsBase operationsBase, Response response) + internal AvailabilitySetsUpdateOperation(OperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new AvailabilitySet(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHost.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHost.cs index ef3deaa263e..144f66ddbef 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHost.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHost.cs @@ -17,7 +17,7 @@ public class DedicatedHost : DedicatedHostOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal DedicatedHost(ResourceOperationsBase options, DedicatedHostData resource) : base(options, resource.Id) + internal DedicatedHost(OperationsBase options, DedicatedHostData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostContainer.cs index 064518a555f..356f3b3833f 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostContainer.cs @@ -26,7 +26,7 @@ protected DedicatedHostContainer() /// Initializes a new instance of DedicatedHostContainer class. /// The resource representing the parent resource. - internal DedicatedHostContainer(ResourceOperationsBase parent) : base(parent) + internal DedicatedHostContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public DedicatedHostsCreateOrUpdateOperation StartCreateOrUpdate(string hostName } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, Id.Name, hostName, parameters, cancellationToken: cancellationToken); - return new DedicatedHostsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, hostName, parameters).Request, originalResponse); + return new DedicatedHostsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, hostName, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOrUpdateAsyn } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, Id.Name, hostName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new DedicatedHostsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, hostName, parameters).Request, originalResponse); + return new DedicatedHostsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, hostName, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +174,7 @@ public Response Get(string hostName, CancellationToken cancellati } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, hostName, cancellationToken: cancellationToken); - return Response.FromValue(new DedicatedHost(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new DedicatedHost(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +198,7 @@ public async Task> GetAsync(string hostName, Cancellatio } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, hostName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DedicatedHost(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new DedicatedHost(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +219,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByHostGroup(Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +234,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByHostGroupNextPage(nextLink, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +257,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByHostGroupAsync(Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +272,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) try { var response = await _restClient.ListByHostGroupNextPageAsync(nextLink, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroup.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroup.cs index 69fd13a78ed..d135d15f64a 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroup.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroup.cs @@ -17,7 +17,7 @@ public class DedicatedHostGroup : DedicatedHostGroupOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal DedicatedHostGroup(ResourceOperationsBase options, DedicatedHostGroupData resource) : base(options, resource.Id) + internal DedicatedHostGroup(OperationsBase options, DedicatedHostGroupData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupContainer.cs index 1ba82ea21bb..b1b0e2ffa94 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupContainer.cs @@ -26,7 +26,7 @@ protected DedicatedHostGroupContainer() /// Initializes a new instance of DedicatedHostGroupContainer class. /// The resource representing the parent resource. - internal DedicatedHostGroupContainer(ResourceOperationsBase parent) : base(parent) + internal DedicatedHostGroupContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public DedicatedHostGroupsCreateOrUpdateOperation StartCreateOrUpdate(string hos } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, hostGroupName, parameters, cancellationToken: cancellationToken); - return new DedicatedHostGroupsCreateOrUpdateOperation(Parent, originalResponse); + return new DedicatedHostGroupsCreateOrUpdateOperation(this, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOrUpdat } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, hostGroupName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new DedicatedHostGroupsCreateOrUpdateOperation(Parent, originalResponse); + return new DedicatedHostGroupsCreateOrUpdateOperation(this, originalResponse); } catch (Exception e) { @@ -174,7 +174,7 @@ public Response Get(string hostGroupName, CancellationToken } var response = _restClient.Get(Id.ResourceGroupName, hostGroupName, cancellationToken: cancellationToken); - return Response.FromValue(new DedicatedHostGroup(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new DedicatedHostGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +198,7 @@ public async Task> GetAsync(string hostGroupName, C } var response = await _restClient.GetAsync(Id.ResourceGroupName, hostGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DedicatedHostGroup(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new DedicatedHostGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +219,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByResourceGroup(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +234,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByResourceGroupNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +257,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +272,7 @@ async Task> NextPageFunc(string nextLink, int? pageSize try { var response = await _restClient.ListByResourceGroupNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupOperations.cs index 2c5bd90e749..283407f8611 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupOperations.cs @@ -30,7 +30,7 @@ protected DedicatedHostGroupOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal DedicatedHostGroupOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal DedicatedHostGroupOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new DedicatedHostGroupsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsCreateOrUpdateOperation.cs index c4e8c2a13c6..c6584b1ef1b 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsCreateOrUpdateOperation.cs @@ -24,7 +24,7 @@ protected DedicatedHostGroupsCreateOrUpdateOperation() { } - internal DedicatedHostGroupsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, Response response) + internal DedicatedHostGroupsCreateOrUpdateOperation(OperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new DedicatedHostGroup(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsUpdateOperation.cs index 48b6e01d477..1649f66f968 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsUpdateOperation.cs @@ -24,7 +24,7 @@ protected DedicatedHostGroupsUpdateOperation() { } - internal DedicatedHostGroupsUpdateOperation(ResourceOperationsBase operationsBase, Response response) + internal DedicatedHostGroupsUpdateOperation(OperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new DedicatedHostGroup(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostOperations.cs index d44ab0ec179..4edd3304c4a 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostOperations.cs @@ -30,7 +30,7 @@ protected DedicatedHostOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal DedicatedHostOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal DedicatedHostOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new DedicatedHostsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsCreateOrUpdateOperation.cs index 9a03fab5f13..2fc56414e26 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class DedicatedHostsCreateOrUpdateOperation : Operation _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of DedicatedHostsCreateOrUpdateOperation for mocking. protected DedicatedHostsCreateOrUpdateOperation() { } - internal DedicatedHostsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal DedicatedHostsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "DedicatedHostsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsUpdateOperation.cs index f43aa34ac9a..ed2093a7aba 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class DedicatedHostsUpdateOperation : Operation, I { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of DedicatedHostsUpdateOperation for mocking. protected DedicatedHostsUpdateOperation() { } - internal DedicatedHostsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal DedicatedHostsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "DedicatedHostsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/Image.cs b/samples/Azure.ResourceManager.Sample/Generated/Image.cs index e864c6ff4c5..4f1adc588a1 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/Image.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/Image.cs @@ -17,7 +17,7 @@ public class Image : ImageOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal Image(ResourceOperationsBase options, ImageData resource) : base(options, resource.Id) + internal Image(OperationsBase options, ImageData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/ImageContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/ImageContainer.cs index 1d92b19325f..eb24fea71fe 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ImageContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ImageContainer.cs @@ -26,7 +26,7 @@ protected ImageContainer() /// Initializes a new instance of ImageContainer class. /// The resource representing the parent resource. - internal ImageContainer(ResourceOperationsBase parent) : base(parent) + internal ImageContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public ImagesCreateOrUpdateOperation StartCreateOrUpdate(string imageName, Image } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, imageName, parameters, cancellationToken: cancellationToken); - return new ImagesCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, imageName, parameters).Request, originalResponse); + return new ImagesCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, imageName, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOrUpdateAsync(string } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, imageName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new ImagesCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, imageName, parameters).Request, originalResponse); + return new ImagesCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, imageName, parameters).Request, originalResponse); } catch (Exception e) { @@ -175,7 +175,7 @@ public Response Get(string imageName, string expand = null, CancellationT } var response = _restClient.Get(Id.ResourceGroupName, imageName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new Image(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new Image(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +200,7 @@ public async Task> GetAsync(string imageName, string expand = nu } var response = await _restClient.GetAsync(Id.ResourceGroupName, imageName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new Image(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new Image(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,7 +221,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByResourceGroup(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new Image(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new Image(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -236,7 +236,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByResourceGroupNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new Image(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new Image(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -259,7 +259,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new Image(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new Image(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +274,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new Image(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new Image(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/ImageOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/ImageOperations.cs index b3c52bf27da..71fc5b88db7 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ImageOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ImageOperations.cs @@ -30,7 +30,7 @@ protected ImageOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal ImageOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal ImageOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new ImagesRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/ImagesCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/ImagesCreateOrUpdateOperation.cs index 192bd907fff..c727f0f20a6 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ImagesCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ImagesCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class ImagesCreateOrUpdateOperation : Operation, IOperatio { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of ImagesCreateOrUpdateOperation for mocking. protected ImagesCreateOrUpdateOperation() { } - internal ImagesCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal ImagesCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ImagesCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/ImagesUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/ImagesUpdateOperation.cs index a5c6d834e4a..0d92396d0ea 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ImagesUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ImagesUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class ImagesUpdateOperation : Operation, IOperationSource< { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of ImagesUpdateOperation for mocking. protected ImagesUpdateOperation() { } - internal ImagesUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal ImagesUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ImagesUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroup.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroup.cs index 23cb88c72e0..648ad08474d 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroup.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroup.cs @@ -17,7 +17,7 @@ public class ProximityPlacementGroup : ProximityPlacementGroupOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ProximityPlacementGroup(ResourceOperationsBase options, ProximityPlacementGroupData resource) : base(options, resource.Id) + internal ProximityPlacementGroup(OperationsBase options, ProximityPlacementGroupData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupContainer.cs index b2f47a4ca43..b63d992f599 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupContainer.cs @@ -26,7 +26,7 @@ protected ProximityPlacementGroupContainer() /// Initializes a new instance of ProximityPlacementGroupContainer class. /// The resource representing the parent resource. - internal ProximityPlacementGroupContainer(ResourceOperationsBase parent) : base(parent) + internal ProximityPlacementGroupContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public ProximityPlacementGroupsCreateOrUpdateOperation StartCreateOrUpdate(strin } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, proximityPlacementGroupName, parameters, cancellationToken: cancellationToken); - return new ProximityPlacementGroupsCreateOrUpdateOperation(Parent, originalResponse); + return new ProximityPlacementGroupsCreateOrUpdateOperation(this, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOr } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, proximityPlacementGroupName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new ProximityPlacementGroupsCreateOrUpdateOperation(Parent, originalResponse); + return new ProximityPlacementGroupsCreateOrUpdateOperation(this, originalResponse); } catch (Exception e) { @@ -175,7 +175,7 @@ public Response Get(string proximityPlacementGroupName, } var response = _restClient.Get(Id.ResourceGroupName, proximityPlacementGroupName, includeColocationStatus, cancellationToken: cancellationToken); - return Response.FromValue(new ProximityPlacementGroup(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new ProximityPlacementGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +200,7 @@ public async Task> GetAsync(string proximityPl } var response = await _restClient.GetAsync(Id.ResourceGroupName, proximityPlacementGroupName, includeColocationStatus, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProximityPlacementGroup(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new ProximityPlacementGroup(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,7 +221,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByResourceGroup(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -236,7 +236,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByResourceGroupNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -259,7 +259,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +274,7 @@ async Task> NextPageFunc(string nextLink, int? pag try { var response = await _restClient.ListByResourceGroupNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupOperations.cs index 01bc8cbca1c..7d11021daa7 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupOperations.cs @@ -30,7 +30,7 @@ protected ProximityPlacementGroupOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal ProximityPlacementGroupOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal ProximityPlacementGroupOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new ProximityPlacementGroupsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsCreateOrUpdateOperation.cs index d1fc404f32d..e4b34e76f76 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsCreateOrUpdateOperation.cs @@ -24,7 +24,7 @@ protected ProximityPlacementGroupsCreateOrUpdateOperation() { } - internal ProximityPlacementGroupsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, Response response) + internal ProximityPlacementGroupsCreateOrUpdateOperation(OperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new ProximityPlacementGroup(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsUpdateOperation.cs index ccd4b4d7975..1c5f6bf79dd 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsUpdateOperation.cs @@ -24,7 +24,7 @@ protected ProximityPlacementGroupsUpdateOperation() { } - internal ProximityPlacementGroupsUpdateOperation(ResourceOperationsBase operationsBase, Response response) + internal ProximityPlacementGroupsUpdateOperation(OperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new ProximityPlacementGroup(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKey.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKey.cs index 7171c4d7adc..71d6b4346bf 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKey.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKey.cs @@ -17,7 +17,7 @@ public class SshPublicKey : SshPublicKeyOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal SshPublicKey(ResourceOperationsBase options, SshPublicKeyData resource) : base(options, resource.Id) + internal SshPublicKey(OperationsBase options, SshPublicKeyData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyContainer.cs index 739a240b155..f145b49f7c0 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyContainer.cs @@ -26,7 +26,7 @@ protected SshPublicKeyContainer() /// Initializes a new instance of SshPublicKeyContainer class. /// The resource representing the parent resource. - internal SshPublicKeyContainer(ResourceOperationsBase parent) : base(parent) + internal SshPublicKeyContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public SshPublicKeysCreateOperation StartCreateOrUpdate(string sshPublicKeyName, } var originalResponse = _restClient.Create(Id.ResourceGroupName, sshPublicKeyName, parameters, cancellationToken: cancellationToken); - return new SshPublicKeysCreateOperation(Parent, originalResponse); + return new SshPublicKeysCreateOperation(this, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOrUpdateAsync(string } var originalResponse = await _restClient.CreateAsync(Id.ResourceGroupName, sshPublicKeyName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new SshPublicKeysCreateOperation(Parent, originalResponse); + return new SshPublicKeysCreateOperation(this, originalResponse); } catch (Exception e) { @@ -174,7 +174,7 @@ public Response Get(string sshPublicKeyName, CancellationToken can } var response = _restClient.Get(Id.ResourceGroupName, sshPublicKeyName, cancellationToken: cancellationToken); - return Response.FromValue(new SshPublicKey(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new SshPublicKey(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +198,7 @@ public async Task> GetAsync(string sshPublicKeyName, Canc } var response = await _restClient.GetAsync(Id.ResourceGroupName, sshPublicKeyName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new SshPublicKey(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new SshPublicKey(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +219,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByResourceGroup(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +234,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByResourceGroupNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +257,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +272,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyOperations.cs index b385b1c3ac3..fde6581a79c 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyOperations.cs @@ -30,7 +30,7 @@ protected SshPublicKeyOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal SshPublicKeyOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal SshPublicKeyOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new SshPublicKeysRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysCreateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysCreateOperation.cs index 71ec377b3bc..7ed47d85eab 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysCreateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysCreateOperation.cs @@ -24,7 +24,7 @@ protected SshPublicKeysCreateOperation() { } - internal SshPublicKeysCreateOperation(ResourceOperationsBase operationsBase, Response response) + internal SshPublicKeysCreateOperation(OperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new SshPublicKey(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysUpdateOperation.cs index 039c2733620..71d31ff4952 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysUpdateOperation.cs @@ -24,7 +24,7 @@ protected SshPublicKeysUpdateOperation() { } - internal SshPublicKeysUpdateOperation(ResourceOperationsBase operationsBase, Response response) + internal SshPublicKeysUpdateOperation(OperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new SshPublicKey(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachine.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachine.cs index 9e5e1b1414a..80a6e3bb1d3 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachine.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachine.cs @@ -17,7 +17,7 @@ public class VirtualMachine : VirtualMachineOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachine(ResourceOperationsBase options, VirtualMachineData resource) : base(options, resource.Id) + internal VirtualMachine(OperationsBase options, VirtualMachineData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineContainer.cs index ff03f171d69..545641b983c 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineContainer.cs @@ -26,7 +26,7 @@ protected VirtualMachineContainer() /// Initializes a new instance of VirtualMachineContainer class. /// The resource representing the parent resource. - internal VirtualMachineContainer(ResourceOperationsBase parent) : base(parent) + internal VirtualMachineContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public VirtualMachinesCreateOrUpdateOperation StartCreateOrUpdate(string vmName, } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, vmName, parameters, cancellationToken: cancellationToken); - return new VirtualMachinesCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmName, parameters).Request, originalResponse); + return new VirtualMachinesCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmName, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOrUpdateAsy } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, vmName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachinesCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmName, parameters).Request, originalResponse); + return new VirtualMachinesCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmName, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +174,7 @@ public Response Get(string vmName, CancellationToken cancellatio } var response = _restClient.Get(Id.ResourceGroupName, vmName, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachine(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachine(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +198,7 @@ public async Task> GetAsync(string vmName, Cancellation } var response = await _restClient.GetAsync(Id.ResourceGroupName, vmName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachine(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachine(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +219,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +234,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +257,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +272,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtension.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtension.cs index d97882588ca..eb7967c62a5 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtension.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtension.cs @@ -17,7 +17,7 @@ public class VirtualMachineExtension : VirtualMachineExtensionOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineExtension(ResourceOperationsBase options, VirtualMachineExtensionData resource) : base(options, resource.Id) + internal VirtualMachineExtension(OperationsBase options, VirtualMachineExtensionData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionContainer.cs index 683cc2cb7f9..332a0956405 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionContainer.cs @@ -26,7 +26,7 @@ protected VirtualMachineExtensionContainer() /// Initializes a new instance of VirtualMachineExtensionContainer class. /// The resource representing the parent resource. - internal VirtualMachineExtensionContainer(ResourceOperationsBase parent) : base(parent) + internal VirtualMachineExtensionContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public VirtualMachineExtensionsCreateOrUpdateOperation StartCreateOrUpdate(strin } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters, cancellationToken: cancellationToken); - return new VirtualMachineExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOr } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -175,7 +175,7 @@ public Response Get(string vmExtensionName, string expa } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, vmExtensionName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineExtension(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtension(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +200,7 @@ public async Task> GetAsync(string vmExtension } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, vmExtensionName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineExtension(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtension(this, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImage.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImage.cs index a845dd216f5..49ebebae597 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImage.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImage.cs @@ -17,7 +17,7 @@ public class VirtualMachineExtensionImage : VirtualMachineExtensionImageOperatio /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineExtensionImage(ResourceOperationsBase options, VirtualMachineExtensionImageData resource) : base(options, resource.Id) + internal VirtualMachineExtensionImage(OperationsBase options, VirtualMachineExtensionImageData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageContainer.cs index 5080655b0bb..cbf578dbef6 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageContainer.cs @@ -26,7 +26,7 @@ protected VirtualMachineExtensionImageContainer() /// Initializes a new instance of VirtualMachineExtensionImageContainer class. /// The resource representing the parent resource. - internal VirtualMachineExtensionImageContainer(ResourceOperationsBase parent) : base(parent) + internal VirtualMachineExtensionImageContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -74,7 +74,7 @@ public Response Get(string location, string publis } var response = _restClient.Get(location, publisherName, type, version, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineExtensionImage(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtensionImage(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -113,7 +113,7 @@ public async Task> GetAsync(string locati } var response = await _restClient.GetAsync(location, publisherName, type, version, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineExtensionImage(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtensionImage(this, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageOperations.cs index ac6010ba0ca..8816b77e22e 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineExtensionImageOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineExtensionImageOperations(ResourceOperationsBase options, SubscriptionResourceIdentifier id) : base(options, id) + protected internal VirtualMachineExtensionImageOperations(OperationsBase options, SubscriptionResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineExtensionImagesRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionOperations.cs index 7fde6833e3e..a5803dd0990 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineExtensionOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineExtensionOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineExtensionOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineExtensionsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSet.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSet.cs index ebeddac9c92..4d6fb8d5108 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSet.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSet.cs @@ -17,7 +17,7 @@ public class VirtualMachineExtensionVirtualMachineScaleSet : VirtualMachineExten /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineExtensionVirtualMachineScaleSet(ResourceOperationsBase options, VirtualMachineExtensionData resource) : base(options, resource.Id) + internal VirtualMachineExtensionVirtualMachineScaleSet(OperationsBase options, VirtualMachineExtensionData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetContainer.cs index e618d99ffe3..6bfd1ab1892 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetContainer.cs @@ -26,7 +26,7 @@ protected VirtualMachineExtensionVirtualMachineScaleSetContainer() /// Initializes a new instance of VirtualMachineExtensionVirtualMachineScaleSetContainer class. /// The resource representing the parent resource. - internal VirtualMachineExtensionVirtualMachineScaleSetContainer(ResourceOperationsBase parent) : base(parent) + internal VirtualMachineExtensionVirtualMachineScaleSetContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation StartCreateOrUp } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters, cancellationToken: cancellationToken); - return new VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task Sta } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -175,7 +175,7 @@ public Response Get(string vmExte } var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineExtensionVirtualMachineScaleSet(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtensionVirtualMachineScaleSet(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +200,7 @@ public async Task> GetAs } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineExtensionVirtualMachineScaleSet(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtensionVirtualMachineScaleSet(this, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetOperations.cs index 275da0f5410..6318152f10a 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineExtensionVirtualMachineScaleSetOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineExtensionVirtualMachineScaleSetOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineExtensionVirtualMachineScaleSetOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineScaleSetVMExtensionsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsCreateOrUpdateOperation.cs index b1447137751..9d722e36e57 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineExtensionsCreateOrUpdateOperation : Operation { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachineExtensionsCreateOrUpdateOperation for mocking. protected VirtualMachineExtensionsCreateOrUpdateOperation() { } - internal VirtualMachineExtensionsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineExtensionsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineExtensionsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsUpdateOperation.cs index 557cde0d5c4..52ff5c45f78 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineExtensionsUpdateOperation : Operation _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachineExtensionsUpdateOperation for mocking. protected VirtualMachineExtensionsUpdateOperation() { } - internal VirtualMachineExtensionsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineExtensionsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineExtensionsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineOperations.cs index c917f68af5c..64b12c13da2 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachinesRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSet.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSet.cs index 3371b5afc6e..19acfdf8f14 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSet.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSet.cs @@ -17,7 +17,7 @@ public class VirtualMachineScaleSet : VirtualMachineScaleSetOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineScaleSet(ResourceOperationsBase options, VirtualMachineScaleSetData resource) : base(options, resource.Id) + internal VirtualMachineScaleSet(OperationsBase options, VirtualMachineScaleSetData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetContainer.cs index 30a56efb3cb..b8f731bd39e 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetContainer.cs @@ -26,7 +26,7 @@ protected VirtualMachineScaleSetContainer() /// Initializes a new instance of VirtualMachineScaleSetContainer class. /// The resource representing the parent resource. - internal VirtualMachineScaleSetContainer(ResourceOperationsBase parent) : base(parent) + internal VirtualMachineScaleSetContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public VirtualMachineScaleSetsCreateOrUpdateOperation StartCreateOrUpdate(string } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, vmScaleSetName, parameters, cancellationToken: cancellationToken); - return new VirtualMachineScaleSetsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmScaleSetName, parameters).Request, originalResponse); + return new VirtualMachineScaleSetsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmScaleSetName, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOrU } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, vmScaleSetName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineScaleSetsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmScaleSetName, parameters).Request, originalResponse); + return new VirtualMachineScaleSetsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmScaleSetName, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +174,7 @@ public Response Get(string vmScaleSetName, CancellationT } var response = _restClient.Get(Id.ResourceGroupName, vmScaleSetName, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineScaleSet(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSet(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +198,7 @@ public async Task> GetAsync(string vmScaleSetNa } var response = await _restClient.GetAsync(Id.ResourceGroupName, vmScaleSetName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineScaleSet(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSet(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +219,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +234,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +257,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +272,7 @@ async Task> NextPageFunc(string nextLink, int? page try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtension.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtension.cs index 93c71d48125..f2aaf3aa3b5 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtension.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtension.cs @@ -17,7 +17,7 @@ public class VirtualMachineScaleSetExtension : VirtualMachineScaleSetExtensionOp /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineScaleSetExtension(ResourceOperationsBase options, VirtualMachineScaleSetExtensionData resource) : base(options, resource.Id) + internal VirtualMachineScaleSetExtension(OperationsBase options, VirtualMachineScaleSetExtensionData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionContainer.cs index e1c33802910..193f10b6a8c 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionContainer.cs @@ -26,7 +26,7 @@ protected VirtualMachineScaleSetExtensionContainer() /// Initializes a new instance of VirtualMachineScaleSetExtensionContainer class. /// The resource representing the parent resource. - internal VirtualMachineScaleSetExtensionContainer(ResourceOperationsBase parent) : base(parent) + internal VirtualMachineScaleSetExtensionContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public VirtualMachineScaleSetExtensionsCreateOrUpdateOperation StartCreateOrUpda } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters, cancellationToken: cancellationToken); - return new VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task Start } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -175,7 +175,7 @@ public Response Get(string vmssExtensionName, s } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, vmssExtensionName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineScaleSetExtension(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSetExtension(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +200,7 @@ public async Task> GetAsync(string vms } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, vmssExtensionName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineScaleSetExtension(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSetExtension(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,7 +221,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -236,7 +236,7 @@ Page NextPageFunc(string nextLink, int? pageSiz try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -259,7 +259,7 @@ async Task> FirstPageFunc(int? pageSizeHin try { var response = await _restClient.ListAsync(Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +274,7 @@ async Task> NextPageFunc(string nextLink, try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionOperations.cs index c4aaad1e45f..5f8bdd192db 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineScaleSetExtensionOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineScaleSetExtensionOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineScaleSetExtensionOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineScaleSetExtensionsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsCreateOrUpdateOperation.cs index 1f124156768..0cea9615085 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetExtensionsCreateOrUpdateOperation : O { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetExtensionsCreateOrUpdateOperation for mocking. protected VirtualMachineScaleSetExtensionsCreateOrUpdateOperation() { } - internal VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetExtensionsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsUpdateOperation.cs index 82971c62af3..d2ba41ed4b5 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetExtensionsUpdateOperation : Operation { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetExtensionsUpdateOperation for mocking. protected VirtualMachineScaleSetExtensionsUpdateOperation() { } - internal VirtualMachineScaleSetExtensionsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetExtensionsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetExtensionsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetOperations.cs index 00999d6c132..145947e9fd1 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineScaleSetOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineScaleSetOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineScaleSetOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineScaleSetsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgrade.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgrade.cs index 1357ec812c0..054756805aa 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgrade.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgrade.cs @@ -15,7 +15,7 @@ public class VirtualMachineScaleSetRollingUpgrade : VirtualMachineScaleSetRollin /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineScaleSetRollingUpgrade(ResourceOperationsBase options, VirtualMachineScaleSetRollingUpgradeData resource) : base(options) + internal VirtualMachineScaleSetRollingUpgrade(OperationsBase options, VirtualMachineScaleSetRollingUpgradeData resource) : base(options) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgradeOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgradeOperations.cs index eef90ac8ad0..8e2dd2c81d3 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgradeOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgradeOperations.cs @@ -21,7 +21,7 @@ protected VirtualMachineScaleSetRollingUpgradeOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. - protected internal VirtualMachineScaleSetRollingUpgradeOperations(ResourceOperationsBase options) : base(options) + protected internal VirtualMachineScaleSetRollingUpgradeOperations(OperationsBase options) : base(options) { } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVM.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVM.cs index d0ede5b5da5..9cc2ac87b42 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVM.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVM.cs @@ -17,7 +17,7 @@ public class VirtualMachineScaleSetVM : VirtualMachineScaleSetVMOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineScaleSetVM(ResourceOperationsBase options, VirtualMachineScaleSetVMData resource) : base(options, resource.Id) + internal VirtualMachineScaleSetVM(OperationsBase options, VirtualMachineScaleSetVMData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMContainer.cs index 2fd037a9e4b..6053ba0a6eb 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMContainer.cs @@ -26,7 +26,7 @@ protected VirtualMachineScaleSetVMContainer() /// Initializes a new instance of VirtualMachineScaleSetVMContainer class. /// The resource representing the parent resource. - internal VirtualMachineScaleSetVMContainer(ResourceOperationsBase parent) : base(parent) + internal VirtualMachineScaleSetVMContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -121,7 +121,7 @@ public VirtualMachineScaleSetVMsUpdateOperation StartCreateOrUpdate(string insta } var originalResponse = _restClient.Update(Id.ResourceGroupName, Id.Name, instanceId, parameters, cancellationToken: cancellationToken); - return new VirtualMachineScaleSetVMsUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(Id.ResourceGroupName, Id.Name, instanceId, parameters).Request, originalResponse); + return new VirtualMachineScaleSetVMsUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(Id.ResourceGroupName, Id.Name, instanceId, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +150,7 @@ public async Task StartCreateOrUpdateA } var originalResponse = await _restClient.UpdateAsync(Id.ResourceGroupName, Id.Name, instanceId, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineScaleSetVMsUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(Id.ResourceGroupName, Id.Name, instanceId, parameters).Request, originalResponse); + return new VirtualMachineScaleSetVMsUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(Id.ResourceGroupName, Id.Name, instanceId, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +174,7 @@ public Response Get(string instanceId, CancellationTok } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, instanceId, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineScaleSetVM(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSetVM(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +198,7 @@ public async Task> GetAsync(string instanceId } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, instanceId, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineScaleSetVM(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSetVM(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -222,7 +222,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, Id.Name, filter, select, expand, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -237,7 +237,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, Id.Name, filter, select, expand, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -263,7 +263,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListAsync(Id.ResourceGroupName, Id.Name, filter, select, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -278,7 +278,7 @@ async Task> NextPageFunc(string nextLink, int? pa try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, Id.Name, filter, select, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(Parent, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation.cs index f9e82e3698e..f0ee0454a2f 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation : { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation for mocking. protected VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation() { } - internal VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsUpdateOperation.cs index eaca59a86a1..c7d84487654 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetVMExtensionsUpdateOperation : Operati { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetVMExtensionsUpdateOperation for mocking. protected VirtualMachineScaleSetVMExtensionsUpdateOperation() { } - internal VirtualMachineScaleSetVMExtensionsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetVMExtensionsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetVMExtensionsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMOperations.cs index 3589ee92bb3..774abbd861d 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineScaleSetVMOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineScaleSetVMOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineScaleSetVMOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineScaleSetVMsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMsUpdateOperation.cs index a7759fda247..afa1d37c036 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetVMsUpdateOperation : Operation _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetVMsUpdateOperation for mocking. protected VirtualMachineScaleSetVMsUpdateOperation() { } - internal VirtualMachineScaleSetVMsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetVMsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetVMsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsCreateOrUpdateOperation.cs index 69b03fb640a..fe98c9714b2 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetsCreateOrUpdateOperation : Operation< { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetsCreateOrUpdateOperation for mocking. protected VirtualMachineScaleSetsCreateOrUpdateOperation() { } - internal VirtualMachineScaleSetsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsUpdateOperation.cs index 2a04317fc77..2b05be9675f 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetsUpdateOperation : Operation _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetsUpdateOperation for mocking. protected VirtualMachineScaleSetsUpdateOperation() { } - internal VirtualMachineScaleSetsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesCreateOrUpdateOperation.cs index e86cceb057e..b8e7bb2fae2 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachinesCreateOrUpdateOperation : Operation _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachinesCreateOrUpdateOperation for mocking. protected VirtualMachinesCreateOrUpdateOperation() { } - internal VirtualMachinesCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachinesCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachinesCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesUpdateOperation.cs index ec65fff5615..81deb999220 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachinesUpdateOperation : Operation, { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of VirtualMachinesUpdateOperation for mocking. protected VirtualMachinesUpdateOperation() { } - internal VirtualMachinesUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachinesUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachinesUpdateOperation"); _operationBase = operationsBase; diff --git a/src/AutoRest.CSharp/Mgmt/Generation/MgmtLongRunningOperationWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/MgmtLongRunningOperationWriter.cs index 3c20aa08a0f..4485d7191d7 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/MgmtLongRunningOperationWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/MgmtLongRunningOperationWriter.cs @@ -54,7 +54,7 @@ protected override void WriteFields(CodeWriter writer, LongRunningOperation oper if (mgmtOperation.WrapperType != null) { writer.Line(); - writer.Line($"private readonly {typeof(ResourceOperationsBase)} {_operationBaseField};"); + writer.Line($"private readonly {typeof(OperationsBase)} {_operationBaseField};"); } } @@ -65,7 +65,7 @@ protected override void WriteConstructor(CodeWriter writer, LongRunningOperation if (mgmtOperation.WrapperType != null) { // pass operationsBase in so that the construction of [Resource] is possible - writer.Append($"internal {cs.Name}({typeof(ResourceOperationsBase)} operationsBase, {typeof(ClientDiagnostics)} clientDiagnostics, {typeof(HttpPipeline)} pipeline, {typeof(Request)} request, {typeof(Response)} response"); + writer.Append($"internal {cs.Name}({typeof(OperationsBase)} operationsBase, {typeof(ClientDiagnostics)} clientDiagnostics, {typeof(HttpPipeline)} pipeline, {typeof(Request)} request, {typeof(Response)} response"); if (pagingResponse != null) { diff --git a/src/AutoRest.CSharp/Mgmt/Generation/NonLongRunningOperationWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/NonLongRunningOperationWriter.cs index 4690ba4bb9c..86aa87c6f21 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/NonLongRunningOperationWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/NonLongRunningOperationWriter.cs @@ -52,7 +52,7 @@ public static void Write(CodeWriter writer, NonLongRunningOperation operation) if (operation.ResultDataType != null) { // todo: programmatically get the type of operationBase from the definition of [Resource] - writer.Append($"{typeof(ResourceOperationsBase)} operationsBase, "); + writer.Append($"{typeof(OperationsBase)} operationsBase, "); writer.Append($"{typeof(Response)}<{operation.ResultDataType}> {responseVariable}"); } else diff --git a/src/AutoRest.CSharp/Mgmt/Generation/ResourceContainerWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/ResourceContainerWriter.cs index 223e7dba257..4ba2fd72ff6 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/ResourceContainerWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/ResourceContainerWriter.cs @@ -65,7 +65,7 @@ public void WriteContainer() string baseClass = GetBaseType(); using (_writer.Scope($"{_resourceContainer.Declaration.Accessibility} partial class {cs.Name:D} : {baseClass}")) { - WriteContainerCtors(_writer, _resourceContainer.Type.Name, "ResourceOperationsBase", "parent"); + WriteContainerCtors(_writer, _resourceContainer.Type.Name, "OperationsBase", "parent"); WriteFields(_writer, _restClient!); WriteIdProperty(); WriteContainerProperties(_writer, _resourceContainer.GetValidResourceValue()); @@ -165,7 +165,7 @@ private void WriteCreateOrUpdateVariants(RestClientMethod restClientMethod) if (isLongRunning) { _writer.Append($"return new {lroObjectType}("); - _writer.Append($"{_parentProperty}, {ClientDiagnosticsField}, {PipelineProperty}, {RestClientField}.Create{restClientMethod.Name}Request("); + _writer.Append($"this, {ClientDiagnosticsField}, {PipelineProperty}, {RestClientField}.Create{restClientMethod.Name}Request("); WriteArguments(writer, parameterMapping); _writer.RemoveTrailingComma(); _writer.Append($").Request,"); @@ -174,7 +174,7 @@ private void WriteCreateOrUpdateVariants(RestClientMethod restClientMethod) else { _writer.Append($"return new {lroObjectType}("); - _writer.Append($"{_parentProperty},"); + _writer.Append($"this,"); _writer.Line($"originalResponse);"); } }); @@ -189,7 +189,7 @@ private void WriteCreateOrUpdateVariants(RestClientMethod restClientMethod) if (isLongRunning) { _writer.Append($"return new {lroObjectType}("); - _writer.Append($"{_parentProperty}, {ClientDiagnosticsField}, {PipelineProperty}, {RestClientField}.Create{restClientMethod.Name}Request("); + _writer.Append($"this, {ClientDiagnosticsField}, {PipelineProperty}, {RestClientField}.Create{restClientMethod.Name}Request("); WriteArguments(writer, parameterMapping); _writer.RemoveTrailingComma(); _writer.Append($").Request,"); @@ -198,7 +198,7 @@ private void WriteCreateOrUpdateVariants(RestClientMethod restClientMethod) else { _writer.Append($"return new {lroObjectType}("); - _writer.Append($"{_parentProperty},"); + _writer.Append($"this,"); _writer.Line($"originalResponse);"); } }); @@ -261,7 +261,7 @@ private void WriteGetVariants(RestClientMethod method) _writer.AppendRaw(", "); } _writer.Line($"cancellationToken: cancellationToken);"); - _writer.Line($"return {typeof(Response)}.FromValue(new {_resource.Type}({_parentProperty}, response.Value), response.GetRawResponse());"); + _writer.Line($"return {typeof(Response)}.FromValue(new {_resource.Type}(this, response.Value), response.GetRawResponse());"); }, isOverride: false); _writer.Line(); @@ -275,7 +275,7 @@ private void WriteGetVariants(RestClientMethod method) _writer.AppendRaw(", "); } _writer.Line($"cancellationToken: cancellationToken).ConfigureAwait(false);"); - _writer.Line($"return {typeof(Response)}.FromValue(new {_resource.Type}({_parentProperty}, response.Value), response.GetRawResponse());"); + _writer.Line($"return {typeof(Response)}.FromValue(new {_resource.Type}(this, response.Value), response.GetRawResponse());"); }, isOverride: false); } @@ -283,8 +283,8 @@ private void WriteListVariants() { if (_resourceContainer.ListMethod != null) { - WriteList(_writer, false, _resource.Type, _resourceContainer.ListMethod, $".Select(value => new {_resource.Type.Name}({_parentProperty}, value))"); - WriteList(_writer, true, _resource.Type, _resourceContainer.ListMethod, $".Select(value => new {_resource.Type.Name}({_parentProperty}, value))"); + WriteList(_writer, false, _resource.Type, _resourceContainer.ListMethod, $".Select(value => new {_resource.Type.Name}(this, value))"); + WriteList(_writer, true, _resource.Type, _resourceContainer.ListMethod, $".Select(value => new {_resource.Type.Name}(this, value))"); } WriteListAsGenericResource(async: false); diff --git a/src/AutoRest.CSharp/Mgmt/Generation/ResourceOperationWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/ResourceOperationWriter.cs index 5ff09ccc3f8..44c45c4bcf0 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/ResourceOperationWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/ResourceOperationWriter.cs @@ -140,7 +140,7 @@ private void WriteClientCtors(CodeWriter writer, ResourceOperation resourceOpera writer.WriteXmlDocumentationParameter("id", "The identifier of the resource that is the target of operations."); } var baseConstructorCall = isSingleton ? "base(options)" : "base(options, id)"; - using (writer.Scope($"protected internal {typeOfThis}({typeof(ResourceOperationsBase)} options{constructorIdParam}) : {baseConstructorCall}")) + using (writer.Scope($"protected internal {typeOfThis}({typeof(OperationsBase)} options{constructorIdParam}) : {baseConstructorCall}")) { if (!isSingleton) { diff --git a/src/AutoRest.CSharp/Mgmt/Generation/ResourceWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/ResourceWriter.cs index 032ad3d2f5b..48274476d0c 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/ResourceWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/ResourceWriter.cs @@ -37,7 +37,7 @@ public void WriteResource(CodeWriter writer, Resource resource, BuildContext Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal Agreement(ResourceOperationsBase options, AgreementData resource) : base(options, resource.Id) + internal Agreement(OperationsBase options, AgreementData resource) : base(options, resource.Id) { Data = resource; } diff --git a/test/TestProjects/TenantOnly/Generated/AgreementContainer.cs b/test/TestProjects/TenantOnly/Generated/AgreementContainer.cs index f1ca67284e5..bbf94316556 100644 --- a/test/TestProjects/TenantOnly/Generated/AgreementContainer.cs +++ b/test/TestProjects/TenantOnly/Generated/AgreementContainer.cs @@ -25,7 +25,7 @@ protected AgreementContainer() /// Initializes a new instance of AgreementContainer class. /// The resource representing the parent resource. - internal AgreementContainer(ResourceOperationsBase parent) : base(parent) + internal AgreementContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -59,7 +59,7 @@ public Response Get(string agreementName, string expand = null, Cance } var response = _restClient.Get(Id.Name, agreementName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new Agreement(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new Agreement(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -84,7 +84,7 @@ public async Task> GetAsync(string agreementName, string exp } var response = await _restClient.GetAsync(Id.Name, agreementName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new Agreement(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new Agreement(this, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/test/TestProjects/TenantOnly/Generated/AgreementOperations.cs b/test/TestProjects/TenantOnly/Generated/AgreementOperations.cs index b25461b1aa4..22259c1128e 100644 --- a/test/TestProjects/TenantOnly/Generated/AgreementOperations.cs +++ b/test/TestProjects/TenantOnly/Generated/AgreementOperations.cs @@ -30,7 +30,7 @@ protected AgreementOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal AgreementOperations(ResourceOperationsBase options, TenantResourceIdentifier id) : base(options, id) + protected internal AgreementOperations(OperationsBase options, TenantResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new AgreementsRestOperations(_clientDiagnostics, Pipeline, BaseUri); diff --git a/test/TestProjects/TenantOnly/Generated/BillingAccount.cs b/test/TestProjects/TenantOnly/Generated/BillingAccount.cs index da47ae9a5c9..a4cfe0b54c3 100644 --- a/test/TestProjects/TenantOnly/Generated/BillingAccount.cs +++ b/test/TestProjects/TenantOnly/Generated/BillingAccount.cs @@ -17,7 +17,7 @@ public class BillingAccount : BillingAccountOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal BillingAccount(ResourceOperationsBase options, BillingAccountData resource) : base(options, resource.Id) + internal BillingAccount(OperationsBase options, BillingAccountData resource) : base(options, resource.Id) { Data = resource; } diff --git a/test/TestProjects/TenantOnly/Generated/BillingAccountContainer.cs b/test/TestProjects/TenantOnly/Generated/BillingAccountContainer.cs index 4aff4597df1..4e2e356f7f8 100644 --- a/test/TestProjects/TenantOnly/Generated/BillingAccountContainer.cs +++ b/test/TestProjects/TenantOnly/Generated/BillingAccountContainer.cs @@ -25,7 +25,7 @@ protected BillingAccountContainer() /// Initializes a new instance of BillingAccountContainer class. /// The resource representing the parent resource. - internal BillingAccountContainer(ResourceOperationsBase parent) : base(parent) + internal BillingAccountContainer(OperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } @@ -120,7 +120,7 @@ public BillingAccountsUpdateOperation StartCreateOrUpdate(string billingAccountN } var originalResponse = _restClient.Update(billingAccountName, parameters, cancellationToken: cancellationToken); - return new BillingAccountsUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(billingAccountName, parameters).Request, originalResponse); + return new BillingAccountsUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(billingAccountName, parameters).Request, originalResponse); } catch (Exception e) { @@ -149,7 +149,7 @@ public async Task StartCreateOrUpdateAsync(strin } var originalResponse = await _restClient.UpdateAsync(billingAccountName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new BillingAccountsUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(billingAccountName, parameters).Request, originalResponse); + return new BillingAccountsUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(billingAccountName, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +174,7 @@ public Response Get(string billingAccountName, string expand = n } var response = _restClient.Get(billingAccountName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new BillingAccount(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new BillingAccount(this, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -199,7 +199,7 @@ public async Task> GetAsync(string billingAccountName, } var response = await _restClient.GetAsync(billingAccountName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new BillingAccount(Parent, response.Value), response.GetRawResponse()); + return Response.FromValue(new BillingAccount(this, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/test/TestProjects/TenantOnly/Generated/BillingAccountOperations.cs b/test/TestProjects/TenantOnly/Generated/BillingAccountOperations.cs index b16a28b70d2..65cc32cc8f1 100644 --- a/test/TestProjects/TenantOnly/Generated/BillingAccountOperations.cs +++ b/test/TestProjects/TenantOnly/Generated/BillingAccountOperations.cs @@ -30,7 +30,7 @@ protected BillingAccountOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal BillingAccountOperations(ResourceOperationsBase options, TenantResourceIdentifier id) : base(options, id) + protected internal BillingAccountOperations(OperationsBase options, TenantResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new BillingAccountsRestOperations(_clientDiagnostics, Pipeline, BaseUri); diff --git a/test/TestProjects/TenantOnly/Generated/BillingAccountsUpdateOperation.cs b/test/TestProjects/TenantOnly/Generated/BillingAccountsUpdateOperation.cs index 951d42a80d7..d725de8dfbf 100644 --- a/test/TestProjects/TenantOnly/Generated/BillingAccountsUpdateOperation.cs +++ b/test/TestProjects/TenantOnly/Generated/BillingAccountsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class BillingAccountsUpdateOperation : Operation, { private readonly OperationInternals _operation; - private readonly ResourceOperationsBase _operationBase; + private readonly OperationsBase _operationBase; /// Initializes a new instance of BillingAccountsUpdateOperation for mocking. protected BillingAccountsUpdateOperation() { } - internal BillingAccountsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal BillingAccountsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.AzureAsyncOperation, "BillingAccountsUpdateOperation"); _operationBase = operationsBase; From 4f4f26e01632923eb44203045cf848489e6d45f1 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Sat, 10 Jul 2021 11:51:59 +0800 Subject: [PATCH 2/5] add resources sample --- eng/Generate.ps1 | 1 + .../Azure.Resources.Sample.csproj | 23 + .../Generated/CodeModel.yaml | 18583 ++++++++++++++++ .../Generated/Configuration.json | 37 + samples/Azure.Resources.Sample/readme.md | 144 + .../Properties/launchSettings.json | 4 + 6 files changed, 18792 insertions(+) create mode 100644 samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj create mode 100644 samples/Azure.Resources.Sample/Generated/CodeModel.yaml create mode 100644 samples/Azure.Resources.Sample/Generated/Configuration.json create mode 100644 samples/Azure.Resources.Sample/readme.md diff --git a/eng/Generate.ps1 b/eng/Generate.ps1 index 986c7f69761..48ac9648e73 100644 --- a/eng/Generate.ps1 +++ b/eng/Generate.ps1 @@ -139,6 +139,7 @@ $projectNames = 'Azure.AI.FormRecognizer', 'Azure.Storage.Tables', 'Azure.ResourceManager.Sample', + 'Azure.Resources.Sample', 'Azure.Management.Storage', 'Azure.Network.Management.Interface', 'Azure.AI.DocumentTranslation' diff --git a/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj b/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj new file mode 100644 index 00000000000..426f8446715 --- /dev/null +++ b/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj @@ -0,0 +1,23 @@ + + + + netstandard2.0 + true + annotations + + + + true + + + + + + + + + + +© 2021 GitHub, Inc. \ No newline at end of file diff --git a/samples/Azure.Resources.Sample/Generated/CodeModel.yaml b/samples/Azure.Resources.Sample/Generated/CodeModel.yaml new file mode 100644 index 00000000000..fed542e913f --- /dev/null +++ b/samples/Azure.Resources.Sample/Generated/CodeModel.yaml @@ -0,0 +1,18583 @@ +!CodeModel +info: !Info + description: Provides operations for working with resources and resource groups. + title: ResourceManagementClient +schemas: !Schemas + booleans: + - !BooleanSchema &ref_9 + type: boolean + language: !Languages + default: + name: Boolean + description: >- + Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the + assignment scope. + protocol: !Protocols {} + - !BooleanSchema &ref_262 + type: boolean + language: !Languages + default: + name: Boolean + description: If this is a service role. + protocol: !Protocols {} + - !BooleanSchema &ref_269 + type: boolean + language: !Languages + default: + name: Boolean + description: A value indicating whether authorization is consented or not. + protocol: !Protocols {} + numbers: + - !NumberSchema &ref_339 + type: integer + apiVersions: + - !ApiVersion + version: '2021-04-01' + precision: 32 + language: !Languages + default: + name: Integer + description: '' + protocol: !Protocols {} + - !NumberSchema &ref_479 + type: integer + apiVersions: + - !ApiVersion + version: '2020-09-01' + maximum: 1000 + minimum: 1 + precision: 32 + language: !Languages + default: + name: Integer + description: '' + protocol: !Protocols {} + - !NumberSchema &ref_194 + type: integer + apiVersions: + - !ApiVersion + version: '2021-04-01' + precision: 32 + language: !Languages + default: + name: SkuCapacity + description: The SKU capacity. + protocol: !Protocols {} + - !NumberSchema &ref_227 + type: integer + apiVersions: + - !ApiVersion + version: '2021-04-01' + precision: 32 + language: !Languages + default: + name: TagCountValue + description: Value of count. + protocol: !Protocols {} + strings: + - !StringSchema &ref_0 + type: string + language: !Languages + default: + name: String + description: simple string + protocol: !Protocols {} + - !StringSchema &ref_1 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: '' + header: Location + protocol: !Protocols {} + - !StringSchema &ref_315 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + maxLength: 64 + minLength: 1 + pattern: ^[-\w\._\(\)]+$ + language: !Languages + default: + name: String + description: '' + protocol: !Protocols {} + - !StringSchema &ref_14 + type: string + apiVersions: + - !ApiVersion + version: '1.0' + language: !Languages + default: + name: ErrorResponseCode + description: The error code. + protocol: !Protocols {} + - !StringSchema &ref_15 + type: string + apiVersions: + - !ApiVersion + version: '1.0' + language: !Languages + default: + name: ErrorResponseMessage + description: The error message. + protocol: !Protocols {} + - !StringSchema &ref_16 + type: string + apiVersions: + - !ApiVersion + version: '1.0' + language: !Languages + default: + name: ErrorResponseTarget + description: The error target. + protocol: !Protocols {} + - !StringSchema &ref_18 + type: string + apiVersions: + - !ApiVersion + version: '1.0' + language: !Languages + default: + name: ErrorAdditionalInfoType + description: The additional info type. + protocol: !Protocols {} + - !StringSchema &ref_20 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentLocation + description: The location to store the deployment data. + protocol: !Protocols {} + - !StringSchema &ref_24 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TemplateLinkUri + description: The URI of the template to deploy. Use either the uri or id property, but not both. + protocol: !Protocols {} + - !StringSchema &ref_25 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TemplateLinkId + description: The resource id of a Template Spec. Use either the id or uri property, but not both. + protocol: !Protocols {} + - !StringSchema &ref_26 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TemplateLinkRelativePath + description: >- + The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent + was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs + protocol: !Protocols {} + - !StringSchema &ref_27 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TemplateLinkContentVersion + description: If included, must match the ContentVersion in the template. + protocol: !Protocols {} + - !StringSchema &ref_28 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TemplateLinkQueryString + description: The query string (for example, a SAS token) to be used with the templateLink URI. + protocol: !Protocols {} + - !StringSchema &ref_29 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ParametersLinkUri + description: The URI of the parameters file. + protocol: !Protocols {} + - !StringSchema &ref_30 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ParametersLinkContentVersion + description: If included, must match the ContentVersion in the template. + protocol: !Protocols {} + - !StringSchema &ref_32 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DebugSettingDetailLevel + description: >- + Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this + value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment + operations. + protocol: !Protocols {} + - !StringSchema &ref_34 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: OnErrorDeploymentName + description: The deployment to be used on error case. + protocol: !Protocols {} + - !StringSchema &ref_42 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentExtendedId + description: The ID of the deployment. + protocol: !Protocols {} + - !StringSchema &ref_43 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentExtendedName + description: The name of the deployment. + protocol: !Protocols {} + - !StringSchema &ref_44 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentExtendedType + description: The type of the deployment. + protocol: !Protocols {} + - !StringSchema &ref_45 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentExtendedLocation + description: the location of the deployment. + protocol: !Protocols {} + - !StringSchema &ref_47 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentPropertiesExtendedCorrelationId + description: The correlation ID of the deployment. + protocol: !Protocols {} + - !StringSchema &ref_49 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentPropertiesExtendedDuration + description: The duration of the template deployment. + protocol: !Protocols {} + - !StringSchema &ref_50 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderId + description: The provider ID. + protocol: !Protocols {} + - !StringSchema &ref_51 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderNamespace + description: The namespace of the resource provider. + protocol: !Protocols {} + - !StringSchema &ref_52 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderRegistrationState + description: The registration state of the resource provider. + protocol: !Protocols {} + - !StringSchema &ref_53 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderRegistrationPolicy + description: The registration policy of the resource provider. + protocol: !Protocols {} + - !StringSchema &ref_54 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderResourceType + description: The resource type. + protocol: !Protocols {} + - !StringSchema &ref_55 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderResourceTypeLocationsItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_56 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderExtendedLocation + description: The azure location. + protocol: !Protocols {} + - !StringSchema &ref_57 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderExtendedLocationType + description: The extended location type. + protocol: !Protocols {} + - !StringSchema &ref_58 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderExtendedLocationExtendedLocationsItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_59 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: AliasName + description: The alias name. + protocol: !Protocols {} + - !StringSchema &ref_60 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: AliasPath + description: The path of an alias. + protocol: !Protocols {} + - !StringSchema &ref_61 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: AliasPathApiVersionsItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_62 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: AliasPatternPhrase + description: The alias pattern phrase. + protocol: !Protocols {} + - !StringSchema &ref_63 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: AliasPatternVariable + description: The alias pattern variable. + protocol: !Protocols {} + - !StringSchema &ref_68 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: AliasDefaultPath + description: The default path for an alias. + protocol: !Protocols {} + - !StringSchema &ref_71 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderResourceTypeApiVersionsItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_72 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderResourceTypeDefaultApiVersion + description: The default API version. + protocol: !Protocols {} + - !StringSchema &ref_73 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ApiProfileVersion + description: The profile version. + protocol: !Protocols {} + - !StringSchema &ref_74 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ApiProfileApiVersion + description: The API version. + protocol: !Protocols {} + - !StringSchema &ref_75 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderResourceTypeCapabilities + description: The additional capabilities offered by this resource type. + protocol: !Protocols {} + - !StringSchema &ref_2 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: 'The additional properties. ' + protocol: !Protocols {} + - !StringSchema &ref_78 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: BasicDependencyId + description: The ID of the dependency. + protocol: !Protocols {} + - !StringSchema &ref_79 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: BasicDependencyResourceType + description: The dependency resource type. + protocol: !Protocols {} + - !StringSchema &ref_80 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: BasicDependencyResourceName + description: The dependency resource name. + protocol: !Protocols {} + - !StringSchema &ref_81 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DependencyId + description: The ID of the dependency. + protocol: !Protocols {} + - !StringSchema &ref_82 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DependencyResourceType + description: The dependency resource type. + protocol: !Protocols {} + - !StringSchema &ref_83 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DependencyResourceName + description: The dependency resource name. + protocol: !Protocols {} + - !StringSchema &ref_84 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: OnErrorDeploymentExtendedProvisioningState + description: The state of the provisioning for the on error deployment. + protocol: !Protocols {} + - !StringSchema &ref_85 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: OnErrorDeploymentExtendedDeploymentName + description: The deployment to be used on error case. + protocol: !Protocols {} + - !StringSchema &ref_86 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentPropertiesExtendedTemplateHash + description: The hash produced for the template. + protocol: !Protocols {} + - !StringSchema &ref_87 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceReferenceId + description: The fully qualified resource Id. + protocol: !Protocols {} + - !StringSchema &ref_101 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + - !StringSchema &ref_102 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ScopedDeploymentLocation + description: The location to store the deployment data. + protocol: !Protocols {} + - !StringSchema &ref_104 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ScopedDeploymentWhatIfLocation + description: The location to store the deployment data. + protocol: !Protocols {} + - !StringSchema &ref_106 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: WhatIfOperationResultStatus + description: Status of the What-If operation. + protocol: !Protocols {} + - !StringSchema &ref_107 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: WhatIfChangeResourceId + description: Resource ID + protocol: !Protocols {} + - !StringSchema &ref_109 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: WhatIfChangeUnsupportedReason + description: The explanation about why the resource is unsupported by What-If. + protocol: !Protocols {} + - !StringSchema &ref_110 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: WhatIfPropertyChangePath + description: The path of the property. + protocol: !Protocols {} + - !StringSchema &ref_361 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: '' + header: Retry-After + protocol: !Protocols {} + - !StringSchema &ref_363 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: '' + header: Location + protocol: !Protocols {} + - !StringSchema &ref_366 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + maxLength: 90 + minLength: 1 + language: !Languages + default: + name: String + description: '' + protocol: !Protocols {} + - !StringSchema &ref_386 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: '' + header: Retry-After + protocol: !Protocols {} + - !StringSchema &ref_389 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: '' + header: Location + protocol: !Protocols {} + - !StringSchema &ref_313 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: String + description: '' + protocol: !Protocols {} + - !StringSchema &ref_114 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentWhatIfLocation + description: The location to store the deployment data. + protocol: !Protocols {} + - !StringSchema &ref_409 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: '' + header: Retry-After + protocol: !Protocols {} + - !StringSchema &ref_411 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: '' + header: Location + protocol: !Protocols {} + - !StringSchema &ref_414 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + maxLength: 90 + minLength: 1 + pattern: ^[-\w\._\(\)]+$ + language: !Languages + default: + name: String + description: '' + protocol: !Protocols {} + - !StringSchema &ref_434 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: '' + header: Retry-After + protocol: !Protocols {} + - !StringSchema &ref_10 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: '' + protocol: !Protocols {} + - !StringSchema &ref_115 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentOperationId + description: Full deployment operation ID. + protocol: !Protocols {} + - !StringSchema &ref_116 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentOperationId + description: Deployment operation ID. + protocol: !Protocols {} + - !StringSchema &ref_118 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentOperationPropertiesProvisioningState + description: The state of the provisioning. + protocol: !Protocols {} + - !StringSchema &ref_120 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentOperationPropertiesDuration + description: The duration of the operation. + protocol: !Protocols {} + - !StringSchema &ref_121 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentOperationPropertiesServiceRequestId + description: Deployment operation service request id. + protocol: !Protocols {} + - !StringSchema &ref_122 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentOperationPropertiesStatusCode + description: Operation status code from the resource provider. This property may not be set if a response has not yet been received. + protocol: !Protocols {} + - !StringSchema &ref_123 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: StatusMessageStatus + description: Status of the deployment operation. + protocol: !Protocols {} + - !StringSchema &ref_124 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TargetResourceId + description: The ID of the resource. + protocol: !Protocols {} + - !StringSchema &ref_125 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TargetResourceName + description: The name of the resource. + protocol: !Protocols {} + - !StringSchema &ref_126 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TargetResourceType + description: The type of the resource. + protocol: !Protocols {} + - !StringSchema &ref_132 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentOperationsListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + - !StringSchema &ref_133 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TemplateHashResultMinifiedTemplate + description: The minified template string. + protocol: !Protocols {} + - !StringSchema &ref_134 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TemplateHashResultTemplateHash + description: The template hash. + protocol: !Protocols {} + - !StringSchema &ref_469 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: String + description: '' + protocol: !Protocols {} + - !StringSchema &ref_142 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentPropertiesDisplayName + description: The display name of the policy assignment. + protocol: !Protocols {} + - !StringSchema &ref_143 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentPropertiesPolicyDefinitionId + description: The ID of the policy definition or policy set definition being assigned. + protocol: !Protocols {} + - !StringSchema &ref_144 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentPropertiesScope + description: The scope for the policy assignment. + protocol: !Protocols {} + - !StringSchema &ref_145 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentPropertiesNotScopesItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_147 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentPropertiesDescription + description: This message will be part of response in case of policy violation. + protocol: !Protocols {} + - !StringSchema &ref_149 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: NonComplianceMessage + description: A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. + protocol: !Protocols {} + - !StringSchema &ref_150 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: NonComplianceMessagePolicyDefinitionReferenceId + description: >- + The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If this is not provided the message applies to all + policies assigned by this policy assignment. + protocol: !Protocols {} + - !StringSchema &ref_135 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentId + description: The ID of the policy assignment. + protocol: !Protocols {} + - !StringSchema &ref_136 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentType + description: The type of the policy assignment. + protocol: !Protocols {} + - !StringSchema &ref_137 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentName + description: The name of the policy assignment. + protocol: !Protocols {} + - !StringSchema &ref_138 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentLocation + description: The location of the policy assignment. Only required when utilizing managed identity. + protocol: !Protocols {} + - !StringSchema &ref_139 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: IdentityPrincipalId + description: The principal ID of resource identity. + protocol: !Protocols {} + - !StringSchema &ref_140 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: IdentityTenantId + description: The tenant ID of resource. + protocol: !Protocols {} + - !StringSchema &ref_478 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + maxLength: 90 + minLength: 1 + pattern: ^[-\w\._\(\)]+$ + language: !Languages + default: + name: String + description: '' + protocol: !Protocols {} + - !StringSchema &ref_155 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyAssignmentListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + - !StringSchema &ref_160 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + defaultValue: Indexed + language: !Languages + default: + name: PolicyDefinitionPropertiesMode + description: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data. + protocol: !Protocols {} + - !StringSchema &ref_161 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyDefinitionPropertiesDisplayName + description: The display name of the policy definition. + protocol: !Protocols {} + - !StringSchema &ref_162 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyDefinitionPropertiesDescription + description: The policy definition description. + protocol: !Protocols {} + - !StringSchema &ref_6 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: ParameterDefinitionsValueMetadataDisplayName + description: The display name for the parameter. + protocol: !Protocols {} + - !StringSchema &ref_7 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: ParameterDefinitionsValueMetadataDescription + description: The description of the parameter. + protocol: !Protocols {} + - !StringSchema &ref_8 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: ParameterDefinitionsValueMetadataStrongType + description: Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from. + protocol: !Protocols {} + - !StringSchema &ref_156 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyDefinitionId + description: The ID of the policy definition. + protocol: !Protocols {} + - !StringSchema &ref_157 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyDefinitionName + description: The name of the policy definition. + protocol: !Protocols {} + - !StringSchema &ref_158 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyDefinitionType + description: The type of the resource (Microsoft.Authorization/policyDefinitions). + protocol: !Protocols {} + - !StringSchema &ref_167 + type: string + apiVersions: + - !ApiVersion + version: '2020-09-01' + language: !Languages + default: + name: PolicyDefinitionListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + - !StringSchema &ref_168 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentExtendedFilterProvisioningState + description: The provisioning state. + protocol: !Protocols {} + - !StringSchema &ref_169 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: GenericResourceFilterResourceType + description: The resource type. + protocol: !Protocols {} + - !StringSchema &ref_170 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: GenericResourceFilterTagname + description: The tag name. + protocol: !Protocols {} + - !StringSchema &ref_171 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: GenericResourceFilterTagvalue + description: The tag value. + protocol: !Protocols {} + - !StringSchema &ref_172 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupFilterTagName + description: The tag name. + protocol: !Protocols {} + - !StringSchema &ref_173 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupFilterTagValue + description: The tag value. + protocol: !Protocols {} + - !StringSchema &ref_174 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + - !StringSchema &ref_175 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderResourceTypeListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + - !StringSchema &ref_196 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceId + description: Resource ID + protocol: !Protocols {} + - !StringSchema &ref_197 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceName + description: Resource name + protocol: !Protocols {} + - !StringSchema &ref_198 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceType + description: Resource type + protocol: !Protocols {} + - !StringSchema &ref_199 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceLocation + description: Resource location + protocol: !Protocols {} + - !StringSchema &ref_201 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ExtendedLocationName + description: The extended location name. + protocol: !Protocols {} + - !StringSchema &ref_182 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: PlanName + description: The plan ID. + protocol: !Protocols {} + - !StringSchema &ref_183 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: PlanPublisher + description: The publisher ID. + protocol: !Protocols {} + - !StringSchema &ref_184 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: PlanProduct + description: The offer ID. + protocol: !Protocols {} + - !StringSchema &ref_185 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: PlanPromotionCode + description: The promotion code. + protocol: !Protocols {} + - !StringSchema &ref_186 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: PlanVersion + description: The plan's version. + protocol: !Protocols {} + - !StringSchema &ref_187 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + pattern: ^[-\w\._,\(\)]+$ + language: !Languages + default: + name: GenericResourceKind + description: The kind of the resource. + protocol: !Protocols {} + - !StringSchema &ref_188 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: GenericResourceManagedBy + description: ID of the resource that manages this resource. + protocol: !Protocols {} + - !StringSchema &ref_189 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: SkuName + description: The SKU name. + protocol: !Protocols {} + - !StringSchema &ref_190 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: SkuTier + description: The SKU tier. + protocol: !Protocols {} + - !StringSchema &ref_191 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: SkuSize + description: The SKU size. + protocol: !Protocols {} + - !StringSchema &ref_192 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: SkuFamily + description: The SKU family. + protocol: !Protocols {} + - !StringSchema &ref_193 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: SkuModel + description: The SKU model. + protocol: !Protocols {} + - !StringSchema &ref_11 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: IdentityUserAssignedIdentitiesProperties + description: The principal id of user assigned identity. + protocol: !Protocols {} + - !StringSchema &ref_12 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: The client id of user assigned identity. + protocol: !Protocols {} + - !StringSchema &ref_180 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: GenericResourceExpandedProvisioningState + description: The provisioning state of the resource. This is only present if requested via the $expand query parameter. + protocol: !Protocols {} + - !StringSchema &ref_208 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + - !StringSchema &ref_209 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupId + description: The ID of the resource group. + protocol: !Protocols {} + - !StringSchema &ref_210 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupName + description: The name of the resource group. + protocol: !Protocols {} + - !StringSchema &ref_211 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupType + description: The type of the resource group. + protocol: !Protocols {} + - !StringSchema &ref_212 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupPropertiesProvisioningState + description: 'The provisioning state. ' + protocol: !Protocols {} + - !StringSchema &ref_213 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupLocation + description: The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations. + protocol: !Protocols {} + - !StringSchema &ref_214 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupManagedBy + description: The ID of the resource that manages this resource group. + protocol: !Protocols {} + - !StringSchema &ref_217 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupPatchableName + description: The name of the resource group. + protocol: !Protocols {} + - !StringSchema &ref_218 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupPatchableManagedBy + description: The ID of the resource that manages this resource group. + protocol: !Protocols {} + - !StringSchema &ref_221 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceGroupListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + - !StringSchema &ref_222 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourcesMoveInfoResourcesItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_223 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourcesMoveInfoTargetResourceGroup + description: The target resource group. + protocol: !Protocols {} + - !StringSchema &ref_224 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ExportTemplateRequestResourcesItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_225 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ExportTemplateRequestOptions + description: 'The export template options. A CSV-formatted list containing zero or more of the following: ''IncludeParameterDefaultValue'', ''IncludeComments'', ''SkipResourceNameParameterization'', ''SkipAllParameterization''' + protocol: !Protocols {} + - !StringSchema &ref_226 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TagCountType + description: Type of count. + protocol: !Protocols {} + - !StringSchema &ref_228 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TagValueId + description: The tag value ID. + protocol: !Protocols {} + - !StringSchema &ref_229 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TagValue + description: The tag value. + protocol: !Protocols {} + - !StringSchema &ref_231 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TagDetailsId + description: The tag name ID. + protocol: !Protocols {} + - !StringSchema &ref_232 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TagDetailsTagName + description: The tag name. + protocol: !Protocols {} + - !StringSchema &ref_235 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TagsListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + - !StringSchema &ref_236 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceProviderOperationDisplayPropertiesPublisher + description: Operation description. + protocol: !Protocols {} + - !StringSchema &ref_237 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceProviderOperationDisplayPropertiesProvider + description: Operation provider. + protocol: !Protocols {} + - !StringSchema &ref_238 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceProviderOperationDisplayPropertiesResource + description: Operation resource. + protocol: !Protocols {} + - !StringSchema &ref_239 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceProviderOperationDisplayPropertiesOperation + description: Resource provider operation. + protocol: !Protocols {} + - !StringSchema &ref_240 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ResourceProviderOperationDisplayPropertiesDescription + description: Operation description. + protocol: !Protocols {} + - !StringSchema &ref_241 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: SubResourceId + description: Resource ID + protocol: !Protocols {} + - !StringSchema &ref_242 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: OperationName + description: 'Operation name: {provider}/{resource}/{operation}' + protocol: !Protocols {} + - !StringSchema &ref_243 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: OperationDisplayProvider + description: 'Service provider: Microsoft.Resources' + protocol: !Protocols {} + - !StringSchema &ref_244 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: OperationDisplayResource + description: 'Resource on which the operation is performed: Profile, endpoint, etc.' + protocol: !Protocols {} + - !StringSchema &ref_245 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: OperationDisplayOperation + description: 'Operation type: Read, write, delete, etc.' + protocol: !Protocols {} + - !StringSchema &ref_246 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: OperationDisplayDescription + description: Description of the operation. + protocol: !Protocols {} + - !StringSchema &ref_249 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: OperationListResultNextLink + description: URL to get the next set of operation list results if there are any. + protocol: !Protocols {} + - !StringSchema &ref_13 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: String + description: The tag value. + protocol: !Protocols {} + - !StringSchema &ref_253 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TagsResourceId + description: The ID of the tags wrapper resource. + protocol: !Protocols {} + - !StringSchema &ref_254 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TagsResourceName + description: The name of the tags wrapper resource. + protocol: !Protocols {} + - !StringSchema &ref_255 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: TagsResourceType + description: The type of the tags wrapper resource. + protocol: !Protocols {} + - !StringSchema &ref_256 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: PermissionActionsItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_257 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: PermissionNotActionsItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_258 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: PermissionDataActionsItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_259 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: PermissionNotDataActionsItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_260 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: RoleDefinitionId + description: The role definition ID. + protocol: !Protocols {} + - !StringSchema &ref_261 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: RoleDefinitionName + description: The role definition name. + protocol: !Protocols {} + - !StringSchema &ref_264 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: RoleDefinitionScopesItem + description: '' + protocol: !Protocols {} + - !StringSchema &ref_265 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderPermissionApplicationId + description: The application id. + protocol: !Protocols {} + - !StringSchema &ref_268 + type: string + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: ProviderPermissionListResultNextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + choices: + - !ChoiceSchema &ref_35 + choices: + - !ChoiceValue + value: NotSpecified + language: + default: + name: NotSpecified + description: '' + - !ChoiceValue + value: Outer + language: + default: + name: Outer + description: '' + - !ChoiceValue + value: Inner + language: + default: + name: Inner + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: ExpressionEvaluationOptionsScopeType + description: The scope to be used for evaluation of parameters, variables and functions in a nested template. + protocol: !Protocols {} + - !ChoiceSchema &ref_46 + choices: + - !ChoiceValue + value: NotSpecified + language: + default: + name: NotSpecified + description: '' + - !ChoiceValue + value: Accepted + language: + default: + name: Accepted + description: '' + - !ChoiceValue + value: Running + language: + default: + name: Running + description: '' + - !ChoiceValue + value: Ready + language: + default: + name: Ready + description: '' + - !ChoiceValue + value: Creating + language: + default: + name: Creating + description: '' + - !ChoiceValue + value: Created + language: + default: + name: Created + description: '' + - !ChoiceValue + value: Deleting + language: + default: + name: Deleting + description: '' + - !ChoiceValue + value: Deleted + language: + default: + name: Deleted + description: '' + - !ChoiceValue + value: Canceled + language: + default: + name: Canceled + description: '' + - !ChoiceValue + value: Failed + language: + default: + name: Failed + description: '' + - !ChoiceValue + value: Succeeded + language: + default: + name: Succeeded + description: '' + - !ChoiceValue + value: Updating + language: + default: + name: Updating + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: ProvisioningState + description: Denotes the state of provisioning. + protocol: !Protocols {} + - !ChoiceSchema &ref_65 + choices: + - !ChoiceValue + value: NotSpecified + language: + default: + name: NotSpecified + description: The token type is not specified. + - !ChoiceValue + value: Any + language: + default: + name: Any + description: The token type can be anything. + - !ChoiceValue + value: String + language: + default: + name: String + description: The token type is string. + - !ChoiceValue + value: Object + language: + default: + name: Object + description: The token type is object. + - !ChoiceValue + value: Array + language: + default: + name: Array + description: The token type is array. + - !ChoiceValue + value: Integer + language: + default: + name: Integer + description: The token type is integer. + - !ChoiceValue + value: Number + language: + default: + name: Number + description: The token type is number. + - !ChoiceValue + value: Boolean + language: + default: + name: Boolean + description: The token type is boolean. + type: choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: AliasPathTokenType + description: The type of the token that the alias path is referring to. + protocol: !Protocols {} + - !ChoiceSchema &ref_66 + choices: + - !ChoiceValue + value: None + language: + default: + name: None + description: The token that the alias path is referring to has no attributes. + - !ChoiceValue + value: Modifiable + language: + default: + name: Modifiable + description: The token that the alias path is referring to is modifiable by policies with 'modify' effect. + type: choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: AliasPathAttributes + description: The attributes of the token that the alias path is referring to. + protocol: !Protocols {} + - !ChoiceSchema &ref_77 + choices: + - !ChoiceValue + value: NotSpecified + language: + default: + name: NotSpecified + description: '' + - !ChoiceValue + value: Required + language: + default: + name: Required + description: '' + - !ChoiceValue + value: NotRequired + language: + default: + name: NotRequired + description: '' + - !ChoiceValue + value: Consented + language: + default: + name: Consented + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: ProviderAuthorizationConsentState + description: The provider authorization consent state. + protocol: !Protocols {} + - !ChoiceSchema &ref_148 + choices: + - !ChoiceValue + value: Default + language: + default: + name: Default + description: The policy effect is enforced during resource creation or update. + - !ChoiceValue + value: DoNotEnforce + language: + default: + name: DoNotEnforce + description: The policy effect is not enforced during resource creation or update. + type: choice + apiVersions: + - !ApiVersion + version: '2020-09-01' + choiceType: *ref_0 + defaultValue: Default + language: !Languages + default: + name: EnforcementMode + description: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. + protocol: !Protocols {} + - !ChoiceSchema &ref_159 + choices: + - !ChoiceValue + value: NotSpecified + language: + default: + name: NotSpecified + description: '' + - !ChoiceValue + value: BuiltIn + language: + default: + name: BuiltIn + description: '' + - !ChoiceValue + value: Custom + language: + default: + name: Custom + description: '' + - !ChoiceValue + value: Static + language: + default: + name: Static + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2020-09-01' + choiceType: *ref_0 + language: !Languages + default: + name: PolicyType + description: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. + protocol: !Protocols {} + - !ChoiceSchema &ref_4 + choices: + - !ChoiceValue + value: String + language: + default: + name: String + description: '' + - !ChoiceValue + value: Array + language: + default: + name: Array + description: '' + - !ChoiceValue + value: Object + language: + default: + name: Object + description: '' + - !ChoiceValue + value: Boolean + language: + default: + name: Boolean + description: '' + - !ChoiceValue + value: Integer + language: + default: + name: Integer + description: '' + - !ChoiceValue + value: Float + language: + default: + name: Float + description: '' + - !ChoiceValue + value: DateTime + language: + default: + name: DateTime + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2020-09-01' + choiceType: *ref_0 + language: !Languages + default: + name: ParameterType + description: The data type of the parameter. + protocol: !Protocols {} + - !ChoiceSchema &ref_200 + choices: + - !ChoiceValue + value: EdgeZone + language: + default: + name: EdgeZone + description: '' + type: choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: ExtendedLocationType + description: The extended location type. + protocol: !Protocols {} + - !ChoiceSchema &ref_251 + choices: + - !ChoiceValue + value: Replace + language: + default: + name: Replace + description: The 'replace' option replaces the entire set of existing tags with a new set. + - !ChoiceValue + value: Merge + language: + default: + name: Merge + description: The 'merge' option allows adding tags with new names and updating the values of tags with existing names. + - !ChoiceValue + value: Delete + language: + default: + name: Delete + description: The 'delete' option allows selectively deleting tags based on given names or name/value pairs. + type: choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: TagsPatchOperation + description: The operation type for the patch API. + protocol: !Protocols {} + sealedChoices: + - !SealedChoiceSchema &ref_31 + choices: + - !ChoiceValue + value: Incremental + language: + default: + name: Incremental + description: '' + - !ChoiceValue + value: Complete + language: + default: + name: Complete + description: '' + type: sealed-choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: DeploymentMode + description: >- + The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete + mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. + protocol: !Protocols {} + - !SealedChoiceSchema &ref_33 + choices: + - !ChoiceValue + value: LastSuccessful + language: + default: + name: LastSuccessful + description: '' + - !ChoiceValue + value: SpecificDeployment + language: + default: + name: SpecificDeployment + description: '' + type: sealed-choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: OnErrorDeploymentType + description: The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. + protocol: !Protocols {} + - !SealedChoiceSchema &ref_64 + choices: + - !ChoiceValue + value: NotSpecified + language: + default: + name: NotSpecified + description: NotSpecified is not allowed. + - !ChoiceValue + value: Extract + language: + default: + name: Extract + description: Extract is the only allowed value. + type: sealed-choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: AliasPatternType + description: The type of alias pattern + protocol: !Protocols {} + - !SealedChoiceSchema &ref_67 + choices: + - !ChoiceValue + value: NotSpecified + language: + default: + name: NotSpecified + description: Alias type is unknown (same as not providing alias type). + - !ChoiceValue + value: PlainText + language: + default: + name: PlainText + description: Alias value is not secret. + - !ChoiceValue + value: Mask + language: + default: + name: Mask + description: Alias value is secret. + type: sealed-choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: AliasType + description: The type of the alias. + protocol: !Protocols {} + - !SealedChoiceSchema &ref_22 + choices: + - !ChoiceValue + value: ResourceIdOnly + language: + default: + name: ResourceIdOnly + description: '' + - !ChoiceValue + value: FullResourcePayloads + language: + default: + name: FullResourcePayloads + description: '' + type: sealed-choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: WhatIfResultFormat + description: The format of the What-If results + protocol: !Protocols {} + - !SealedChoiceSchema &ref_108 + choices: + - !ChoiceValue + value: Create + language: + default: + name: Create + description: The resource does not exist in the current state but is present in the desired state. The resource will be created when the deployment is executed. + - !ChoiceValue + value: Delete + language: + default: + name: Delete + description: The resource exists in the current state and is missing from the desired state. The resource will be deleted when the deployment is executed. + - !ChoiceValue + value: Ignore + language: + default: + name: Ignore + description: The resource exists in the current state and is missing from the desired state. The resource will not be deployed or modified when the deployment is executed. + - !ChoiceValue + value: Deploy + language: + default: + name: Deploy + description: The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource may or may not change. + - !ChoiceValue + value: NoChange + language: + default: + name: NoChange + description: The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource will not change. + - !ChoiceValue + value: Modify + language: + default: + name: Modify + description: The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource will change. + - !ChoiceValue + value: Unsupported + language: + default: + name: Unsupported + description: The resource is not supported by What-If. + type: sealed-choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: ChangeType + description: Type of change that will be made to the resource when the deployment is executed. + protocol: !Protocols {} + - !SealedChoiceSchema &ref_111 + choices: + - !ChoiceValue + value: Create + language: + default: + name: Create + description: The property does not exist in the current state but is present in the desired state. The property will be created when the deployment is executed. + - !ChoiceValue + value: Delete + language: + default: + name: Delete + description: The property exists in the current state and is missing from the desired state. It will be deleted when the deployment is executed. + - !ChoiceValue + value: Modify + language: + default: + name: Modify + description: The property exists in both current and desired state and is different. The value of the property will change when the deployment is executed. + - !ChoiceValue + value: Array + language: + default: + name: Array + description: The property is an array and contains nested changes. + - !ChoiceValue + value: NoEffect + language: + default: + name: NoEffect + description: The property will not be set or updated. + type: sealed-choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: PropertyChangeType + description: The type of property change. + protocol: !Protocols {} + - !SealedChoiceSchema &ref_117 + choices: + - !ChoiceValue + value: NotSpecified + language: + default: + name: NotSpecified + description: The provisioning operation is not specified. + - !ChoiceValue + value: Create + language: + default: + name: Create + description: The provisioning operation is create. + - !ChoiceValue + value: Delete + language: + default: + name: Delete + description: The provisioning operation is delete. + - !ChoiceValue + value: Waiting + language: + default: + name: Waiting + description: The provisioning operation is waiting. + - !ChoiceValue + value: AzureAsyncOperationWaiting + language: + default: + name: AzureAsyncOperationWaiting + description: The provisioning operation is waiting Azure async operation. + - !ChoiceValue + value: ResourceCacheWaiting + language: + default: + name: ResourceCacheWaiting + description: The provisioning operation is waiting for resource cache. + - !ChoiceValue + value: Action + language: + default: + name: Action + description: The provisioning operation is action. + - !ChoiceValue + value: Read + language: + default: + name: Read + description: The provisioning operation is read. + - !ChoiceValue + value: EvaluateDeploymentOutput + language: + default: + name: EvaluateDeploymentOutput + description: The provisioning operation is evaluate output. + - !ChoiceValue + value: DeploymentCleanup + language: + default: + name: DeploymentCleanup + description: The provisioning operation is cleanup. This operation is part of the 'complete' mode deployment. + type: sealed-choice + apiVersions: + - !ApiVersion + version: '2021-04-01' + choiceType: *ref_0 + language: !Languages + default: + name: ProvisioningOperation + description: The name of the current provisioning operation. + protocol: !Protocols {} + - !SealedChoiceSchema &ref_141 + choices: + - !ChoiceValue + value: SystemAssigned + language: + default: + name: SystemAssigned + description: Indicates that a system assigned identity is associated with the resource. + - !ChoiceValue + value: None + language: + default: + name: None + description: Indicates that no identity is associated with the resource or that the existing identity should be removed. + type: sealed-choice + apiVersions: + - !ApiVersion + version: '2020-09-01' + choiceType: *ref_0 + language: !Languages + default: + name: ResourceIdentityType + description: The identity type. This is the only required field when adding a system assigned identity to a resource. + protocol: !Protocols {} + constants: + - !ConstantSchema &ref_316 + type: constant + value: !ConstantValue + value: '2021-04-01' + valueType: *ref_0 + language: !Languages + default: + name: ApiVersion20210401 + description: Api Version (2021-04-01) + protocol: !Protocols {} + - !ConstantSchema &ref_317 + type: constant + value: !ConstantValue + value: application/json + valueType: *ref_0 + language: !Languages + default: + name: Accept + description: 'Accept: application/json' + protocol: !Protocols {} + - !ConstantSchema &ref_323 + type: constant + value: !ConstantValue + value: application/json + valueType: *ref_0 + language: !Languages + default: + name: ApplicationJson + description: Content Type 'application/json' + protocol: !Protocols {} + - !ConstantSchema &ref_470 + type: constant + value: !ConstantValue + value: '2020-09-01' + valueType: *ref_0 + language: !Languages + default: + name: ApiVersion20200901 + description: Api Version (2020-09-01) + protocol: !Protocols {} + dictionaries: + - !DictionarySchema &ref_36 + type: dictionary + elementType: *ref_1 + language: !Languages + default: + name: DeploymentTags + description: Deployment tags + protocol: !Protocols {} + - !DictionarySchema &ref_76 + type: dictionary + elementType: *ref_2 + language: !Languages + default: + name: ProviderResourceTypeProperties + description: The properties. + protocol: !Protocols {} + - !DictionarySchema &ref_89 + type: dictionary + elementType: *ref_1 + language: !Languages + default: + name: DeploymentExtendedTags + description: Deployment tags + protocol: !Protocols {} + - !DictionarySchema &ref_103 + type: dictionary + elementType: *ref_1 + language: !Languages + default: + name: ScopedDeploymentTags + description: Deployment tags + protocol: !Protocols {} + - !DictionarySchema &ref_146 + type: dictionary + elementType: !ObjectSchema &ref_151 + type: object + apiVersions: + - !ApiVersion + version: '2020-09-01' + properties: + - !Property + schema: !AnyObjectSchema &ref_3 + type: any-object + language: !Languages + default: + name: AnyObject + description: Any object + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: The value of the parameter. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: ParameterValuesValue + description: The value of a parameter. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ParameterValues + description: The parameter values for the policy rule. The keys are the parameter names. + protocol: !Protocols {} + - !DictionarySchema &ref_5 + type: dictionary + elementType: *ref_3 + language: !Languages + default: + name: ParameterDefinitionsValueMetadata + description: General metadata for the parameter. + protocol: !Protocols {} + - !DictionarySchema &ref_163 + type: dictionary + elementType: !ObjectSchema &ref_164 + type: object + apiVersions: + - !ApiVersion + version: '2020-09-01' + properties: + - !Property + schema: *ref_4 + serializedName: type + language: !Languages + default: + name: type + description: The data type of the parameter. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_295 + type: array + apiVersions: + - !ApiVersion + version: '2020-09-01' + elementType: *ref_3 + language: !Languages + default: + name: ParameterDefinitionsValueAllowedValues + description: The allowed values for the parameter. + protocol: !Protocols {} + serializedName: allowedValues + language: !Languages + default: + name: allowedValues + description: The allowed values for the parameter. + protocol: !Protocols {} + - !Property + schema: *ref_3 + serializedName: defaultValue + language: !Languages + default: + name: defaultValue + description: The default value for the parameter if no value is provided. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_165 + type: object + apiVersions: + - !ApiVersion + version: '2020-09-01' + parents: !Relations + all: + - *ref_5 + immediate: + - *ref_5 + properties: + - !Property + schema: *ref_6 + serializedName: displayName + language: !Languages + default: + name: displayName + description: The display name for the parameter. + protocol: !Protocols {} + - !Property + schema: *ref_7 + serializedName: description + language: !Languages + default: + name: description + description: The description of the parameter. + protocol: !Protocols {} + - !Property + schema: *ref_8 + serializedName: strongType + language: !Languages + default: + name: strongType + description: Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from. + protocol: !Protocols {} + - !Property + schema: *ref_9 + serializedName: assignPermissions + language: !Languages + default: + name: assignPermissions + description: >- + Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside + the assignment scope. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + - output + extensions: + x-internal-autorest-anonymous-schema: + anonymous: true + language: !Languages + default: + name: ParameterDefinitionsValueMetadata + description: General metadata for the parameter. + namespace: '' + protocol: !Protocols {} + serializedName: metadata + language: !Languages + default: + name: metadata + description: General metadata for the parameter. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + - output + language: !Languages + default: + name: ParameterDefinitionsValue + description: The definition of a parameter that can be provided to the policy. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ParameterDefinitions + description: The parameter definitions for parameters used in the policy. The keys are the parameter names. + protocol: !Protocols {} + - !DictionarySchema &ref_202 + type: dictionary + elementType: *ref_10 + language: !Languages + default: + name: ResourceTags + description: Resource tags + protocol: !Protocols {} + - !DictionarySchema &ref_195 + type: dictionary + elementType: !ObjectSchema &ref_207 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_11 + readOnly: true + serializedName: principalId + language: !Languages + default: + name: principalId + description: The principal id of user assigned identity. + protocol: !Protocols {} + - !Property + schema: *ref_12 + readOnly: true + serializedName: clientId + language: !Languages + default: + name: clientId + description: The client id of user assigned identity. + protocol: !Protocols {} + language: !Languages + default: + name: IdentityUserAssignedIdentitiesValue + description: '' + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: IdentityUserAssignedIdentities + description: >- + The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + protocol: !Protocols {} + - !DictionarySchema &ref_215 + type: dictionary + elementType: *ref_2 + language: !Languages + default: + name: ResourceGroupTags + description: The tags attached to the resource group. + protocol: !Protocols {} + - !DictionarySchema &ref_219 + type: dictionary + elementType: *ref_2 + language: !Languages + default: + name: ResourceGroupPatchableTags + description: The tags attached to the resource group. + protocol: !Protocols {} + - !DictionarySchema &ref_250 + type: dictionary + elementType: *ref_13 + language: !Languages + default: + name: Tags + description: Dictionary of + protocol: !Protocols {} + anyObjects: + - *ref_3 + dateTimes: + - !DateTimeSchema &ref_48 + type: date-time + format: date-time + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentPropertiesExtendedTimestamp + description: The timestamp of the template deployment. + protocol: !Protocols {} + - !DateTimeSchema &ref_119 + type: date-time + format: date-time + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: DeploymentOperationPropertiesTimestamp + description: The date and time of the operation. + protocol: !Protocols {} + - !DateTimeSchema &ref_178 + type: date-time + format: date-time + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: GenericResourceExpandedCreatedTime + description: The created time of the resource. This is only present if requested via the $expand query parameter. + protocol: !Protocols {} + - !DateTimeSchema &ref_179 + type: date-time + format: date-time + apiVersions: + - !ApiVersion + version: '2021-04-01' + language: !Languages + default: + name: GenericResourceExpandedChangedTime + description: The changed time of the resource. This is only present if requested via the $expand query parameter. + protocol: !Protocols {} + objects: + - !ObjectSchema &ref_320 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + - !ApiVersion + version: '2020-09-01' + properties: + - !Property + schema: !ObjectSchema &ref_17 + type: object + apiVersions: + - !ApiVersion + version: '1.0' + properties: + - !Property + schema: *ref_14 + readOnly: true + serializedName: code + language: !Languages + default: + name: code + description: The error code. + protocol: !Protocols {} + - !Property + schema: *ref_15 + readOnly: true + serializedName: message + language: !Languages + default: + name: message + description: The error message. + protocol: !Protocols {} + - !Property + schema: *ref_16 + readOnly: true + serializedName: target + language: !Languages + default: + name: target + description: The error target. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_271 + type: array + apiVersions: + - !ApiVersion + version: '1.0' + elementType: *ref_17 + language: !Languages + default: + name: ErrorResponseDetails + description: The error details. + protocol: !Protocols {} + readOnly: true + serializedName: details + language: !Languages + default: + name: details + description: The error details. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_272 + type: array + apiVersions: + - !ApiVersion + version: '1.0' + elementType: !ObjectSchema &ref_19 + type: object + apiVersions: + - !ApiVersion + version: '1.0' + properties: + - !Property + schema: *ref_18 + readOnly: true + serializedName: type + language: !Languages + default: + name: type + description: The additional info type. + protocol: !Protocols {} + - !Property + schema: *ref_3 + readOnly: true + serializedName: info + language: !Languages + default: + name: info + description: The additional info. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - exception + - output + language: !Languages + default: + name: ErrorAdditionalInfo + description: The resource management error additional info. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ErrorResponseAdditionalInfo + description: The error additional info. + protocol: !Protocols {} + readOnly: true + serializedName: additionalInfo + language: !Languages + default: + name: additionalInfo + description: The error additional info. + protocol: !Protocols {} + serializationFormats: + - json + summary: Error Response + usage: + - exception + - output + language: !Languages + default: + name: ErrorResponse + description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) + namespace: '' + summary: Error Response + protocol: !Protocols {} + serializedName: error + language: !Languages + default: + name: error + description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) + protocol: !Protocols {} + serializationFormats: + - json + usage: + - exception + extensions: + x-ms-external: true + language: !Languages + default: + name: CloudError + description: An error response for a resource management request. + namespace: '' + protocol: !Protocols {} + - *ref_17 + - *ref_19 + - !ObjectSchema &ref_324 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_20 + required: false + serializedName: location + language: !Languages + default: + name: location + description: The location to store the deployment data. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_21 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + children: !Relations + all: + - !ObjectSchema &ref_23 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + parents: !Relations + all: + - *ref_21 + immediate: + - *ref_21 + properties: + - !Property + schema: !ObjectSchema &ref_105 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_22 + serializedName: resultFormat + language: !Languages + default: + name: resultFormat + description: The format of the What-If results + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: DeploymentWhatIfSettings + description: Deployment What-If operation settings. + namespace: '' + protocol: !Protocols {} + serializedName: whatIfSettings + language: !Languages + default: + name: whatIfSettings + description: Optional What-If operation settings. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: DeploymentWhatIfProperties + description: Deployment What-if properties. + namespace: '' + protocol: !Protocols {} + immediate: + - *ref_23 + properties: + - !Property + schema: *ref_3 + required: false + serializedName: template + language: !Languages + default: + name: template + description: >- + The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the + templateLink property or the template property, but not both. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_37 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_24 + serializedName: uri + language: !Languages + default: + name: uri + description: The URI of the template to deploy. Use either the uri or id property, but not both. + protocol: !Protocols {} + - !Property + schema: *ref_25 + serializedName: id + language: !Languages + default: + name: id + description: The resource id of a Template Spec. Use either the id or uri property, but not both. + protocol: !Protocols {} + - !Property + schema: *ref_26 + serializedName: relativePath + language: !Languages + default: + name: relativePath + description: >- + The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. + If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs + protocol: !Protocols {} + - !Property + schema: *ref_27 + serializedName: contentVersion + language: !Languages + default: + name: contentVersion + description: If included, must match the ContentVersion in the template. + protocol: !Protocols {} + - !Property + schema: *ref_28 + serializedName: queryString + language: !Languages + default: + name: queryString + description: The query string (for example, a SAS token) to be used with the templateLink URI. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + - output + language: !Languages + default: + name: TemplateLink + description: Entity representing the reference to the template. + namespace: '' + protocol: !Protocols {} + required: false + serializedName: templateLink + language: !Languages + default: + name: templateLink + description: The URI of the template. Use either the templateLink property or the template property, but not both. + protocol: !Protocols {} + - !Property + schema: *ref_3 + required: false + serializedName: parameters + language: !Languages + default: + name: parameters + description: >- + Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. + Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_38 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_29 + required: true + serializedName: uri + language: !Languages + default: + name: uri + description: The URI of the parameters file. + protocol: !Protocols {} + - !Property + schema: *ref_30 + required: false + serializedName: contentVersion + language: !Languages + default: + name: contentVersion + description: If included, must match the ContentVersion in the template. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + - output + language: !Languages + default: + name: ParametersLink + description: Entity representing the reference to the deployment parameters. + namespace: '' + protocol: !Protocols {} + required: false + serializedName: parametersLink + language: !Languages + default: + name: parametersLink + description: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. + protocol: !Protocols {} + - !Property + schema: *ref_31 + required: true + serializedName: mode + language: !Languages + default: + name: mode + description: >- + The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In + Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_39 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_32 + serializedName: detailLevel + language: !Languages + default: + name: detailLevel + description: >- + Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When + setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is + retrieved through the deployment operations. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + - output + language: !Languages + default: + name: DebugSetting + description: The debug setting. + namespace: '' + protocol: !Protocols {} + required: false + serializedName: debugSetting + language: !Languages + default: + name: debugSetting + description: The debug setting of the deployment. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_40 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_33 + serializedName: type + language: !Languages + default: + name: type + description: The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. + protocol: !Protocols {} + - !Property + schema: *ref_34 + serializedName: deploymentName + language: !Languages + default: + name: deploymentName + description: The deployment to be used on error case. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: OnErrorDeployment + description: Deployment on error behavior. + namespace: '' + protocol: !Protocols {} + required: false + serializedName: onErrorDeployment + language: !Languages + default: + name: onErrorDeployment + description: The deployment on error behavior. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_41 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_35 + serializedName: scope + language: !Languages + default: + name: scope + description: The scope to be used for evaluation of parameters, variables and functions in a nested template. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: ExpressionEvaluationOptions + description: Specifies whether template expressions are evaluated within the scope of the parent template or nested template. + namespace: '' + protocol: !Protocols {} + required: false + serializedName: expressionEvaluationOptions + language: !Languages + default: + name: expressionEvaluationOptions + description: Specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable to nested templates. If not specified, default value is outer. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: DeploymentProperties + description: Deployment properties. + namespace: '' + protocol: !Protocols {} + required: true + serializedName: properties + language: !Languages + default: + name: properties + description: The deployment properties. + protocol: !Protocols {} + - !Property + schema: *ref_36 + required: false + serializedName: tags + language: !Languages + default: + name: tags + description: Deployment tags + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: Deployment + description: Deployment operation parameters. + namespace: '' + protocol: !Protocols {} + - *ref_21 + - *ref_37 + - *ref_38 + - *ref_39 + - *ref_40 + - *ref_41 + - !ObjectSchema &ref_100 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_42 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The ID of the deployment. + protocol: !Protocols {} + - !Property + schema: *ref_43 + readOnly: true + serializedName: name + language: !Languages + default: + name: name + description: The name of the deployment. + protocol: !Protocols {} + - !Property + schema: *ref_44 + readOnly: true + serializedName: type + language: !Languages + default: + name: type + description: The type of the deployment. + protocol: !Protocols {} + - !Property + schema: *ref_45 + serializedName: location + language: !Languages + default: + name: location + description: the location of the deployment. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_90 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_46 + readOnly: true + serializedName: provisioningState + language: !Languages + default: + name: provisioningState + description: Denotes the state of provisioning. + protocol: !Protocols {} + - !Property + schema: *ref_47 + readOnly: true + serializedName: correlationId + language: !Languages + default: + name: correlationId + description: The correlation ID of the deployment. + protocol: !Protocols {} + - !Property + schema: *ref_48 + readOnly: true + serializedName: timestamp + language: !Languages + default: + name: timestamp + description: The timestamp of the template deployment. + protocol: !Protocols {} + - !Property + schema: *ref_49 + readOnly: true + serializedName: duration + language: !Languages + default: + name: duration + description: The duration of the template deployment. + protocol: !Protocols {} + - !Property + schema: *ref_3 + readOnly: true + serializedName: outputs + language: !Languages + default: + name: outputs + description: Key/value pairs that represent deployment output. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_282 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_91 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_50 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The provider ID. + protocol: !Protocols {} + - !Property + schema: *ref_51 + serializedName: namespace + language: !Languages + default: + name: namespace + description: The namespace of the resource provider. + protocol: !Protocols {} + - !Property + schema: *ref_52 + readOnly: true + serializedName: registrationState + language: !Languages + default: + name: registrationState + description: The registration state of the resource provider. + protocol: !Protocols {} + - !Property + schema: *ref_53 + readOnly: true + serializedName: registrationPolicy + language: !Languages + default: + name: registrationPolicy + description: The registration policy of the resource provider. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_281 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_92 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_54 + serializedName: resourceType + language: !Languages + default: + name: resourceType + description: The resource type. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_273 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_55 + language: !Languages + default: + name: ProviderResourceTypeLocations + description: The collection of locations where this resource type can be created. + protocol: !Protocols {} + serializedName: locations + language: !Languages + default: + name: locations + description: The collection of locations where this resource type can be created. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_275 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_93 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_56 + serializedName: location + language: !Languages + default: + name: location + description: The azure location. + protocol: !Protocols {} + - !Property + schema: *ref_57 + serializedName: type + language: !Languages + default: + name: type + description: The extended location type. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_274 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_58 + language: !Languages + default: + name: ProviderExtendedLocationExtendedLocations + description: The extended locations for the azure location. + protocol: !Protocols {} + serializedName: extendedLocations + language: !Languages + default: + name: extendedLocations + description: The extended locations for the azure location. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: ProviderExtendedLocation + description: 'The provider extended location. ' + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ProviderResourceTypeLocationMappings + description: The location mappings that are supported by this resource type. + protocol: !Protocols {} + serializedName: locationMappings + language: !Languages + default: + name: locationMappings + description: The location mappings that are supported by this resource type. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_278 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_94 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_59 + serializedName: name + language: !Languages + default: + name: name + description: The alias name. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_277 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_95 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_60 + serializedName: path + language: !Languages + default: + name: path + description: The path of an alias. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_276 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_61 + language: !Languages + default: + name: AliasPathApiVersions + description: The API versions. + protocol: !Protocols {} + serializedName: apiVersions + language: !Languages + default: + name: apiVersions + description: The API versions. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_69 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_62 + serializedName: phrase + language: !Languages + default: + name: phrase + description: The alias pattern phrase. + protocol: !Protocols {} + - !Property + schema: *ref_63 + serializedName: variable + language: !Languages + default: + name: variable + description: The alias pattern variable. + protocol: !Protocols {} + - !Property + schema: *ref_64 + serializedName: type + language: !Languages + default: + name: type + description: The type of alias pattern + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: AliasPattern + description: The type of the pattern for an alias path. + namespace: '' + protocol: !Protocols {} + serializedName: pattern + language: !Languages + default: + name: pattern + description: The pattern for an alias path. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_70 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_65 + readOnly: true + serializedName: type + language: !Languages + default: + name: type + description: The type of the token that the alias path is referring to. + protocol: !Protocols {} + - !Property + schema: *ref_66 + readOnly: true + serializedName: attributes + language: !Languages + default: + name: attributes + description: The attributes of the token that the alias path is referring to. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: AliasPathMetadata + description: '' + namespace: '' + protocol: !Protocols {} + readOnly: true + serializedName: metadata + language: !Languages + default: + name: metadata + description: The metadata of the alias path. If missing, fall back to the default metadata of the alias. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: AliasPath + description: The type of the paths for alias. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: AliasPaths + description: The paths for an alias. + protocol: !Protocols {} + serializedName: paths + language: !Languages + default: + name: paths + description: The paths for an alias. + protocol: !Protocols {} + - !Property + schema: *ref_67 + serializedName: type + language: !Languages + default: + name: type + description: The type of the alias. + protocol: !Protocols {} + - !Property + schema: *ref_68 + serializedName: defaultPath + language: !Languages + default: + name: defaultPath + description: The default path for an alias. + protocol: !Protocols {} + - !Property + schema: *ref_69 + serializedName: defaultPattern + language: !Languages + default: + name: defaultPattern + description: The default pattern for an alias. + protocol: !Protocols {} + - !Property + schema: *ref_70 + readOnly: true + serializedName: defaultMetadata + language: !Languages + default: + name: defaultMetadata + description: The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: Alias + description: 'The alias type. ' + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ProviderResourceTypeAliases + description: The aliases that are supported by this resource type. + protocol: !Protocols {} + serializedName: aliases + language: !Languages + default: + name: aliases + description: The aliases that are supported by this resource type. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_279 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_71 + language: !Languages + default: + name: ProviderResourceTypeApiVersions + description: The API version. + protocol: !Protocols {} + serializedName: apiVersions + language: !Languages + default: + name: apiVersions + description: The API version. + protocol: !Protocols {} + - !Property + schema: *ref_72 + readOnly: true + serializedName: defaultApiVersion + language: !Languages + default: + name: defaultApiVersion + description: The default API version. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_280 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_96 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_73 + readOnly: true + serializedName: profileVersion + language: !Languages + default: + name: profileVersion + description: The profile version. + protocol: !Protocols {} + - !Property + schema: *ref_74 + readOnly: true + serializedName: apiVersion + language: !Languages + default: + name: apiVersion + description: The API version. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: ApiProfile + description: '' + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ProviderResourceTypeApiProfiles + description: The API profiles for the resource provider. + protocol: !Protocols {} + readOnly: true + serializedName: apiProfiles + language: !Languages + default: + name: apiProfiles + description: The API profiles for the resource provider. + protocol: !Protocols {} + - !Property + schema: *ref_75 + serializedName: capabilities + language: !Languages + default: + name: capabilities + description: The additional capabilities offered by this resource type. + protocol: !Protocols {} + - !Property + schema: *ref_76 + serializedName: properties + language: !Languages + default: + name: properties + description: The properties. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: ProviderResourceType + description: Resource type managed by the resource provider. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: ProviderResourceTypes + description: The collection of provider resource types. + protocol: !Protocols {} + readOnly: true + serializedName: resourceTypes + language: !Languages + default: + name: resourceTypes + description: The collection of provider resource types. + protocol: !Protocols {} + - !Property + schema: *ref_77 + serializedName: providerAuthorizationConsentState + language: !Languages + default: + name: providerAuthorizationConsentState + description: The provider authorization consent state. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: Provider + description: Resource provider information. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: DeploymentPropertiesExtendedProviders + description: The list of resource providers needed for the deployment. + protocol: !Protocols {} + readOnly: true + serializedName: providers + language: !Languages + default: + name: providers + description: The list of resource providers needed for the deployment. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_284 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_97 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_283 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_98 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_78 + serializedName: id + language: !Languages + default: + name: id + description: The ID of the dependency. + protocol: !Protocols {} + - !Property + schema: *ref_79 + serializedName: resourceType + language: !Languages + default: + name: resourceType + description: The dependency resource type. + protocol: !Protocols {} + - !Property + schema: *ref_80 + serializedName: resourceName + language: !Languages + default: + name: resourceName + description: The dependency resource name. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: BasicDependency + description: Deployment dependency information. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: DependencyDependsOn + description: The list of dependencies. + protocol: !Protocols {} + serializedName: dependsOn + language: !Languages + default: + name: dependsOn + description: The list of dependencies. + protocol: !Protocols {} + - !Property + schema: *ref_81 + serializedName: id + language: !Languages + default: + name: id + description: The ID of the dependency. + protocol: !Protocols {} + - !Property + schema: *ref_82 + serializedName: resourceType + language: !Languages + default: + name: resourceType + description: The dependency resource type. + protocol: !Protocols {} + - !Property + schema: *ref_83 + serializedName: resourceName + language: !Languages + default: + name: resourceName + description: The dependency resource name. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: Dependency + description: Deployment dependency information. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: DeploymentPropertiesExtendedDependencies + description: The list of deployment dependencies. + protocol: !Protocols {} + readOnly: true + serializedName: dependencies + language: !Languages + default: + name: dependencies + description: The list of deployment dependencies. + protocol: !Protocols {} + - !Property + schema: *ref_37 + readOnly: true + serializedName: templateLink + language: !Languages + default: + name: templateLink + description: The URI referencing the template. + protocol: !Protocols {} + - !Property + schema: *ref_3 + readOnly: true + serializedName: parameters + language: !Languages + default: + name: parameters + description: 'Deployment parameters. ' + protocol: !Protocols {} + - !Property + schema: *ref_38 + readOnly: true + serializedName: parametersLink + language: !Languages + default: + name: parametersLink + description: 'The URI referencing the parameters. ' + protocol: !Protocols {} + - !Property + schema: *ref_31 + readOnly: true + serializedName: mode + language: !Languages + default: + name: mode + description: The deployment mode. Possible values are Incremental and Complete. + protocol: !Protocols {} + - !Property + schema: *ref_39 + readOnly: true + serializedName: debugSetting + language: !Languages + default: + name: debugSetting + description: The debug setting of the deployment. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_99 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_84 + readOnly: true + serializedName: provisioningState + language: !Languages + default: + name: provisioningState + description: The state of the provisioning for the on error deployment. + protocol: !Protocols {} + - !Property + schema: *ref_33 + serializedName: type + language: !Languages + default: + name: type + description: The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. + protocol: !Protocols {} + - !Property + schema: *ref_85 + serializedName: deploymentName + language: !Languages + default: + name: deploymentName + description: The deployment to be used on error case. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: OnErrorDeploymentExtended + description: Deployment on error behavior with additional details. + namespace: '' + protocol: !Protocols {} + readOnly: true + serializedName: onErrorDeployment + language: !Languages + default: + name: onErrorDeployment + description: The deployment on error behavior. + protocol: !Protocols {} + - !Property + schema: *ref_86 + readOnly: true + serializedName: templateHash + language: !Languages + default: + name: templateHash + description: The hash produced for the template. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_285 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_88 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_87 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The fully qualified resource Id. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: ResourceReference + description: The resource Id model. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: DeploymentPropertiesExtendedOutputResources + description: Array of provisioned resources. + protocol: !Protocols {} + readOnly: true + serializedName: outputResources + language: !Languages + default: + name: outputResources + description: Array of provisioned resources. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_286 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_88 + language: !Languages + default: + name: DeploymentPropertiesExtendedValidatedResources + description: Array of validated resources. + protocol: !Protocols {} + readOnly: true + serializedName: validatedResources + language: !Languages + default: + name: validatedResources + description: Array of validated resources. + protocol: !Protocols {} + - !Property + schema: *ref_17 + readOnly: true + serializedName: error + language: !Languages + default: + name: error + description: The deployment error. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: DeploymentPropertiesExtended + description: Deployment properties with additional details. + namespace: '' + protocol: !Protocols {} + serializedName: properties + language: !Languages + default: + name: properties + description: Deployment properties. + protocol: !Protocols {} + - !Property + schema: *ref_89 + serializedName: tags + language: !Languages + default: + name: tags + description: Deployment tags + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: DeploymentExtended + description: Deployment information. + namespace: '' + protocol: !Protocols {} + - *ref_90 + - *ref_91 + - *ref_92 + - *ref_93 + - *ref_94 + - *ref_95 + - *ref_69 + - *ref_70 + - *ref_96 + - *ref_97 + - *ref_98 + - *ref_99 + - *ref_88 + - !ObjectSchema &ref_335 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_17 + readOnly: true + serializedName: error + language: !Languages + default: + name: error + description: The deployment validation error. + protocol: !Protocols {} + - !Property + schema: *ref_90 + serializedName: properties + language: !Languages + default: + name: properties + description: The template deployment properties. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: DeploymentValidateResult + description: Information from validate template deployment response. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_338 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_3 + serializedName: template + language: !Languages + default: + name: template + description: The template content. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: DeploymentExportResult + description: 'The deployment export result. ' + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_343 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_287 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_100 + language: !Languages + default: + name: DeploymentListResultValue + description: An array of deployments. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of deployments. + protocol: !Protocols {} + - !Property + schema: *ref_101 + readOnly: true + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: DeploymentListResult + description: List of deployments. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_346 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_102 + required: true + serializedName: location + language: !Languages + default: + name: location + description: The location to store the deployment data. + protocol: !Protocols {} + - !Property + schema: *ref_21 + required: true + serializedName: properties + language: !Languages + default: + name: properties + description: The deployment properties. + protocol: !Protocols {} + - !Property + schema: *ref_103 + required: false + serializedName: tags + language: !Languages + default: + name: tags + description: Deployment tags + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: ScopedDeployment + description: Deployment operation parameters. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_353 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property &ref_355 + schema: *ref_104 + required: true + serializedName: location + language: !Languages + default: + name: location + description: The location to store the deployment data. + protocol: !Protocols {} + - !Property &ref_356 + schema: *ref_23 + required: true + serializedName: properties + language: !Languages + default: + name: properties + description: The deployment properties. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: ScopedDeploymentWhatIf + description: Deployment What-if operation parameters. + namespace: '' + protocol: !Protocols {} + - *ref_23 + - *ref_105 + - !ObjectSchema &ref_360 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_106 + serializedName: status + language: !Languages + default: + name: status + description: Status of the What-If operation. + protocol: !Protocols {} + - !Property + schema: *ref_17 + serializedName: error + language: !Languages + default: + name: error + description: Error when What-If operation fails. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_290 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_113 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_107 + required: true + serializedName: resourceId + language: !Languages + default: + name: resourceId + description: Resource ID + protocol: !Protocols {} + - !Property + schema: *ref_108 + required: true + serializedName: changeType + language: !Languages + default: + name: changeType + description: Type of change that will be made to the resource when the deployment is executed. + protocol: !Protocols {} + - !Property + schema: *ref_109 + required: false + serializedName: unsupportedReason + language: !Languages + default: + name: unsupportedReason + description: The explanation about why the resource is unsupported by What-If. + protocol: !Protocols {} + - !Property + schema: *ref_3 + required: false + serializedName: before + language: !Languages + default: + name: before + description: The snapshot of the resource before the deployment is executed. + protocol: !Protocols {} + - !Property + schema: *ref_3 + required: false + serializedName: after + language: !Languages + default: + name: after + description: The predicted snapshot of the resource after the deployment is executed. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_289 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: !ObjectSchema &ref_112 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_110 + required: true + serializedName: path + language: !Languages + default: + name: path + description: The path of the property. + protocol: !Protocols {} + - !Property + schema: *ref_111 + required: true + serializedName: propertyChangeType + language: !Languages + default: + name: propertyChangeType + description: The type of property change. + protocol: !Protocols {} + - !Property + schema: *ref_3 + required: false + serializedName: before + language: !Languages + default: + name: before + description: The value of the property before the deployment is executed. + protocol: !Protocols {} + - !Property + schema: *ref_3 + required: false + serializedName: after + language: !Languages + default: + name: after + description: The value of the property after the deployment is executed. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_288 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_112 + language: !Languages + default: + name: WhatIfPropertyChangeChildren + description: Nested property changes. + protocol: !Protocols {} + required: false + serializedName: children + language: !Languages + default: + name: children + description: Nested property changes. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: WhatIfPropertyChange + description: The predicted change to the resource property. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: WhatIfChangeDelta + description: The predicted changes to resource properties. + protocol: !Protocols {} + required: false + serializedName: delta + language: !Languages + default: + name: delta + description: The predicted changes to resource properties. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: WhatIfChange + description: Information about a single resource change predicted by What-If operation. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: WhatIfOperationPropertiesChanges + description: List of resource changes predicted by What-If operation. + protocol: !Protocols {} + flattenedNames: + - properties + - changes + serializedName: changes + language: !Languages + default: + name: changes + description: List of resource changes predicted by What-If operation. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: WhatIfOperationResult + description: Result of the What-If operation. Contains a list of predicted changes and a URL link to get to the next set of results. + namespace: '' + protocol: !Protocols {} + - *ref_113 + - *ref_112 + - !ObjectSchema &ref_402 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property &ref_404 + schema: *ref_114 + required: false + serializedName: location + language: !Languages + default: + name: location + description: The location to store the deployment data. + protocol: !Protocols {} + - !Property &ref_405 + schema: *ref_23 + required: true + serializedName: properties + language: !Languages + default: + name: properties + description: The deployment properties. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + language: !Languages + default: + name: DeploymentWhatIf + description: Deployment What-if operation parameters. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_131 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_115 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: Full deployment operation ID. + protocol: !Protocols {} + - !Property + schema: *ref_116 + readOnly: true + serializedName: operationId + language: !Languages + default: + name: operationId + description: Deployment operation ID. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_128 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_117 + readOnly: true + serializedName: provisioningOperation + language: !Languages + default: + name: provisioningOperation + description: The name of the current provisioning operation. + protocol: !Protocols {} + - !Property + schema: *ref_118 + readOnly: true + serializedName: provisioningState + language: !Languages + default: + name: provisioningState + description: The state of the provisioning. + protocol: !Protocols {} + - !Property + schema: *ref_119 + readOnly: true + serializedName: timestamp + language: !Languages + default: + name: timestamp + description: The date and time of the operation. + protocol: !Protocols {} + - !Property + schema: *ref_120 + readOnly: true + serializedName: duration + language: !Languages + default: + name: duration + description: The duration of the operation. + protocol: !Protocols {} + - !Property + schema: *ref_121 + readOnly: true + serializedName: serviceRequestId + language: !Languages + default: + name: serviceRequestId + description: Deployment operation service request id. + protocol: !Protocols {} + - !Property + schema: *ref_122 + readOnly: true + serializedName: statusCode + language: !Languages + default: + name: statusCode + description: Operation status code from the resource provider. This property may not be set if a response has not yet been received. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_129 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_123 + serializedName: status + language: !Languages + default: + name: status + description: Status of the deployment operation. + protocol: !Protocols {} + - !Property + schema: *ref_17 + serializedName: error + language: !Languages + default: + name: error + description: The error reported by the operation. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: StatusMessage + description: Operation status message object. + namespace: '' + protocol: !Protocols {} + nullable: true + readOnly: true + serializedName: statusMessage + extensions: + x-nullable: true + language: !Languages + default: + name: statusMessage + description: Operation status message from the resource provider. This property is optional. It will only be provided if an error was received from the resource provider. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_130 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_124 + serializedName: id + language: !Languages + default: + name: id + description: The ID of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_125 + serializedName: resourceName + language: !Languages + default: + name: resourceName + description: The name of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_126 + serializedName: resourceType + language: !Languages + default: + name: resourceType + description: The type of the resource. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: TargetResource + description: Target resource. + namespace: '' + protocol: !Protocols {} + readOnly: true + serializedName: targetResource + language: !Languages + default: + name: targetResource + description: The target resource. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_127 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_3 + serializedName: content + language: !Languages + default: + name: content + description: HTTP message content. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: HttpMessage + description: HTTP message. + namespace: '' + protocol: !Protocols {} + readOnly: true + serializedName: request + language: !Languages + default: + name: request + description: The HTTP request message. + protocol: !Protocols {} + - !Property + schema: *ref_127 + readOnly: true + serializedName: response + language: !Languages + default: + name: response + description: The HTTP response message. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: DeploymentOperationProperties + description: Deployment operation properties. + namespace: '' + protocol: !Protocols {} + serializedName: properties + language: !Languages + default: + name: properties + description: Deployment properties. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: DeploymentOperation + description: Deployment operation information. + namespace: '' + protocol: !Protocols {} + - *ref_128 + - *ref_129 + - *ref_130 + - *ref_127 + - !ObjectSchema &ref_448 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_291 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_131 + language: !Languages + default: + name: DeploymentOperationsListResultValue + description: An array of deployment operations. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of deployment operations. + protocol: !Protocols {} + - !Property + schema: *ref_132 + readOnly: true + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: DeploymentOperationsListResult + description: List of deployment operations. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_441 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_133 + serializedName: minifiedTemplate + language: !Languages + default: + name: minifiedTemplate + description: The minified template string. + protocol: !Protocols {} + - !Property + schema: *ref_134 + serializedName: templateHash + language: !Languages + default: + name: templateHash + description: The template hash. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: TemplateHashResult + description: Result of the request to calculate template hash. It contains a string of minified template and its hash. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_154 + type: object + apiVersions: + - !ApiVersion + version: '2020-09-01' + properties: + - !Property + schema: *ref_135 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The ID of the policy assignment. + protocol: !Protocols {} + - !Property + schema: *ref_136 + readOnly: true + serializedName: type + language: !Languages + default: + name: type + description: The type of the policy assignment. + protocol: !Protocols {} + - !Property + schema: *ref_137 + readOnly: true + serializedName: name + language: !Languages + default: + name: name + description: The name of the policy assignment. + protocol: !Protocols {} + - !Property + schema: *ref_138 + serializedName: location + language: !Languages + default: + name: location + description: The location of the policy assignment. Only required when utilizing managed identity. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_153 + type: object + apiVersions: + - !ApiVersion + version: '2020-09-01' + properties: + - !Property + schema: *ref_139 + readOnly: true + serializedName: principalId + language: !Languages + default: + name: principalId + description: The principal ID of the resource identity. + protocol: !Protocols {} + - !Property + schema: *ref_140 + readOnly: true + serializedName: tenantId + language: !Languages + default: + name: tenantId + description: The tenant ID of the resource identity. + protocol: !Protocols {} + - !Property + schema: *ref_141 + serializedName: type + language: !Languages + default: + name: type + description: The identity type. This is the only required field when adding a system assigned identity to a resource. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: Identity + description: Identity for the resource. + namespace: '' + protocol: !Protocols {} + serializedName: identity + language: !Languages + default: + name: identity + description: The managed identity associated with the policy assignment. + protocol: !Protocols {} + - !Property + schema: *ref_142 + flattenedNames: + - properties + - displayName + serializedName: displayName + language: !Languages + default: + name: displayName + description: The display name of the policy assignment. + protocol: !Protocols {} + - !Property + schema: *ref_143 + flattenedNames: + - properties + - policyDefinitionId + serializedName: policyDefinitionId + language: !Languages + default: + name: policyDefinitionId + description: The ID of the policy definition or policy set definition being assigned. + protocol: !Protocols {} + - !Property + schema: *ref_144 + flattenedNames: + - properties + - scope + readOnly: true + serializedName: scope + language: !Languages + default: + name: scope + description: The scope for the policy assignment. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_292 + type: array + apiVersions: + - !ApiVersion + version: '2020-09-01' + elementType: *ref_145 + language: !Languages + default: + name: PolicyAssignmentPropertiesNotScopes + description: The policy's excluded scopes. + protocol: !Protocols {} + flattenedNames: + - properties + - notScopes + serializedName: notScopes + language: !Languages + default: + name: notScopes + description: The policy's excluded scopes. + protocol: !Protocols {} + - !Property + schema: *ref_146 + flattenedNames: + - properties + - parameters + serializedName: parameters + language: !Languages + default: + name: parameters + description: The parameter values for the assigned policy rule. The keys are the parameter names. + protocol: !Protocols {} + - !Property + schema: *ref_147 + flattenedNames: + - properties + - description + serializedName: description + language: !Languages + default: + name: description + description: This message will be part of response in case of policy violation. + protocol: !Protocols {} + - !Property + schema: *ref_3 + flattenedNames: + - properties + - metadata + serializedName: metadata + language: !Languages + default: + name: metadata + description: The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. + protocol: !Protocols {} + - !Property + schema: *ref_148 + flattenedNames: + - properties + - enforcementMode + serializedName: enforcementMode + language: !Languages + default: + name: enforcementMode + description: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_293 + type: array + apiVersions: + - !ApiVersion + version: '2020-09-01' + elementType: !ObjectSchema &ref_152 + type: object + apiVersions: + - !ApiVersion + version: '2020-09-01' + properties: + - !Property + schema: *ref_149 + required: true + serializedName: message + language: !Languages + default: + name: message + description: A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. + protocol: !Protocols {} + - !Property + schema: *ref_150 + required: false + serializedName: policyDefinitionReferenceId + language: !Languages + default: + name: policyDefinitionReferenceId + description: >- + The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If this is not provided the message + applies to all policies assigned by this policy assignment. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + language: !Languages + default: + name: NonComplianceMessage + description: A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. + namespace: '' + protocol: !Protocols {} + language: !Languages + default: + name: PolicyAssignmentPropertiesNonComplianceMessages + description: The messages that describe why a resource is non-compliant with the policy. + protocol: !Protocols {} + flattenedNames: + - properties + - nonComplianceMessages + serializedName: nonComplianceMessages + language: !Languages + default: + name: nonComplianceMessages + description: The messages that describe why a resource is non-compliant with the policy. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + - input + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: PolicyAssignment + description: The policy assignment. + namespace: '' + protocol: !Protocols {} + - *ref_151 + - *ref_152 + - *ref_153 + - !ObjectSchema &ref_483 + type: object + apiVersions: + - !ApiVersion + version: '2020-09-01' + properties: + - !Property + schema: !ArraySchema &ref_294 + type: array + apiVersions: + - !ApiVersion + version: '2020-09-01' + elementType: *ref_154 + language: !Languages + default: + name: PolicyAssignmentListResultValue + description: An array of policy assignments. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of policy assignments. + protocol: !Protocols {} + - !Property + schema: *ref_155 + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: PolicyAssignmentListResult + description: List of policy assignments. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_166 + type: object + apiVersions: + - !ApiVersion + version: '2020-09-01' + properties: + - !Property + schema: *ref_156 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The ID of the policy definition. + protocol: !Protocols {} + - !Property + schema: *ref_157 + readOnly: true + serializedName: name + language: !Languages + default: + name: name + description: The name of the policy definition. + protocol: !Protocols {} + - !Property + schema: *ref_158 + readOnly: true + serializedName: type + language: !Languages + default: + name: type + description: The type of the resource (Microsoft.Authorization/policyDefinitions). + protocol: !Protocols {} + - !Property + schema: *ref_159 + flattenedNames: + - properties + - policyType + serializedName: policyType + language: !Languages + default: + name: policyType + description: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. + protocol: !Protocols {} + - !Property + schema: *ref_160 + flattenedNames: + - properties + - mode + serializedName: mode + language: !Languages + default: + name: mode + description: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data. + protocol: !Protocols {} + - !Property + schema: *ref_161 + flattenedNames: + - properties + - displayName + serializedName: displayName + language: !Languages + default: + name: displayName + description: The display name of the policy definition. + protocol: !Protocols {} + - !Property + schema: *ref_162 + flattenedNames: + - properties + - description + serializedName: description + language: !Languages + default: + name: description + description: The policy definition description. + protocol: !Protocols {} + - !Property + schema: *ref_3 + flattenedNames: + - properties + - policyRule + serializedName: policyRule + language: !Languages + default: + name: policyRule + description: The policy rule. + protocol: !Protocols {} + - !Property + schema: *ref_3 + flattenedNames: + - properties + - metadata + serializedName: metadata + language: !Languages + default: + name: metadata + description: The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. + protocol: !Protocols {} + - !Property + schema: *ref_163 + flattenedNames: + - properties + - parameters + serializedName: parameters + language: !Languages + default: + name: parameters + description: The parameter definitions for parameters used in the policy rule. The keys are the parameter names. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - input + - output + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: PolicyDefinition + description: The policy definition. + namespace: '' + protocol: !Protocols {} + - *ref_164 + - *ref_165 + - !ObjectSchema &ref_514 + type: object + apiVersions: + - !ApiVersion + version: '2020-09-01' + properties: + - !Property + schema: !ArraySchema &ref_296 + type: array + apiVersions: + - !ApiVersion + version: '2020-09-01' + elementType: *ref_166 + language: !Languages + default: + name: PolicyDefinitionListResultValue + description: An array of policy definitions. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of policy definitions. + protocol: !Protocols {} + - !Property + schema: *ref_167 + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + serializationFormats: + - json + usage: + - output + language: !Languages + default: + name: PolicyDefinitionListResult + description: List of policy definitions. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_168 + serializedName: provisioningState + language: !Languages + default: + name: provisioningState + description: The provisioning state. + protocol: !Protocols {} + language: !Languages + default: + name: DeploymentExtendedFilter + description: Deployment filter. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_169 + serializedName: resourceType + language: !Languages + default: + name: resourceType + description: The resource type. + protocol: !Protocols {} + - !Property + schema: *ref_170 + serializedName: tagname + language: !Languages + default: + name: tagname + description: The tag name. + protocol: !Protocols {} + - !Property + schema: *ref_171 + serializedName: tagvalue + language: !Languages + default: + name: tagvalue + description: The tag value. + protocol: !Protocols {} + language: !Languages + default: + name: GenericResourceFilter + description: Resource filter. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_172 + serializedName: tagName + language: !Languages + default: + name: tagName + description: The tag name. + protocol: !Protocols {} + - !Property + schema: *ref_173 + serializedName: tagValue + language: !Languages + default: + name: tagValue + description: The tag value. + protocol: !Protocols {} + language: !Languages + default: + name: ResourceGroupFilter + description: Resource group filter. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_297 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_91 + language: !Languages + default: + name: ProviderListResultValue + description: An array of resource providers. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of resource providers. + protocol: !Protocols {} + - !Property + schema: *ref_174 + readOnly: true + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + language: !Languages + default: + name: ProviderListResult + description: List of resource providers. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_298 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_92 + language: !Languages + default: + name: ProviderResourceTypeListResultValue + description: An array of resource types. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of resource types. + protocol: !Protocols {} + - !Property + schema: *ref_175 + readOnly: true + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + language: !Languages + default: + name: ProviderResourceTypeListResult + description: List of resource types of a resource provider. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_177 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + children: !Relations + all: + - !ObjectSchema &ref_176 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + children: !Relations + all: + - !ObjectSchema &ref_181 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + parents: !Relations + all: + - *ref_176 + - *ref_177 + immediate: + - *ref_176 + properties: + - !Property + schema: *ref_178 + readOnly: true + serializedName: createdTime + language: !Languages + default: + name: createdTime + description: The created time of the resource. This is only present if requested via the $expand query parameter. + protocol: !Protocols {} + - !Property + schema: *ref_179 + readOnly: true + serializedName: changedTime + language: !Languages + default: + name: changedTime + description: The changed time of the resource. This is only present if requested via the $expand query parameter. + protocol: !Protocols {} + - !Property + schema: *ref_180 + readOnly: true + serializedName: provisioningState + language: !Languages + default: + name: provisioningState + description: The provisioning state of the resource. This is only present if requested via the $expand query parameter. + protocol: !Protocols {} + language: !Languages + default: + name: GenericResourceExpanded + description: Resource information. + namespace: '' + protocol: !Protocols {} + immediate: + - *ref_181 + parents: !Relations + all: + - *ref_177 + immediate: + - *ref_177 + properties: + - !Property + schema: !ObjectSchema &ref_204 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_182 + serializedName: name + language: !Languages + default: + name: name + description: The plan ID. + protocol: !Protocols {} + - !Property + schema: *ref_183 + serializedName: publisher + language: !Languages + default: + name: publisher + description: The publisher ID. + protocol: !Protocols {} + - !Property + schema: *ref_184 + serializedName: product + language: !Languages + default: + name: product + description: The offer ID. + protocol: !Protocols {} + - !Property + schema: *ref_185 + serializedName: promotionCode + language: !Languages + default: + name: promotionCode + description: The promotion code. + protocol: !Protocols {} + - !Property + schema: *ref_186 + serializedName: version + language: !Languages + default: + name: version + description: The plan's version. + protocol: !Protocols {} + language: !Languages + default: + name: Plan + description: Plan for the resource. + namespace: '' + protocol: !Protocols {} + serializedName: plan + language: !Languages + default: + name: plan + description: The plan of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_3 + serializedName: properties + language: !Languages + default: + name: properties + description: The resource properties. + protocol: !Protocols {} + - !Property + schema: *ref_187 + serializedName: kind + language: !Languages + default: + name: kind + description: The kind of the resource. + protocol: !Protocols {} + - !Property + schema: *ref_188 + serializedName: managedBy + language: !Languages + default: + name: managedBy + description: ID of the resource that manages this resource. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_205 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_189 + serializedName: name + language: !Languages + default: + name: name + description: The SKU name. + protocol: !Protocols {} + - !Property + schema: *ref_190 + serializedName: tier + language: !Languages + default: + name: tier + description: The SKU tier. + protocol: !Protocols {} + - !Property + schema: *ref_191 + serializedName: size + language: !Languages + default: + name: size + description: The SKU size. + protocol: !Protocols {} + - !Property + schema: *ref_192 + serializedName: family + language: !Languages + default: + name: family + description: The SKU family. + protocol: !Protocols {} + - !Property + schema: *ref_193 + serializedName: model + language: !Languages + default: + name: model + description: The SKU model. + protocol: !Protocols {} + - !Property + schema: *ref_194 + serializedName: capacity + language: !Languages + default: + name: capacity + description: The SKU capacity. + protocol: !Protocols {} + language: !Languages + default: + name: Sku + description: SKU for the resource. + namespace: '' + protocol: !Protocols {} + serializedName: sku + language: !Languages + default: + name: sku + description: The SKU of the resource. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_206 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_139 + readOnly: true + serializedName: principalId + language: !Languages + default: + name: principalId + description: The principal ID of resource identity. + protocol: !Protocols {} + - !Property + schema: *ref_140 + readOnly: true + serializedName: tenantId + language: !Languages + default: + name: tenantId + description: The tenant ID of resource. + protocol: !Protocols {} + - !Property + schema: *ref_141 + serializedName: type + language: !Languages + default: + name: type + description: The identity type. + protocol: !Protocols {} + - !Property + schema: *ref_195 + serializedName: userAssignedIdentities + language: !Languages + default: + name: userAssignedIdentities + description: >- + The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + protocol: !Protocols {} + language: !Languages + default: + name: IdentityAutoGenerated + description: Identity for the resource. + namespace: '' + protocol: !Protocols {} + serializedName: identity + language: !Languages + default: + name: identity + description: The identity of the resource. + protocol: !Protocols {} + language: !Languages + default: + name: GenericResource + description: Resource information. + namespace: '' + protocol: !Protocols {} + - *ref_181 + immediate: + - *ref_176 + properties: + - !Property + schema: *ref_196 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: Resource ID + protocol: !Protocols {} + - !Property + schema: *ref_197 + readOnly: true + serializedName: name + language: !Languages + default: + name: name + description: Resource name + protocol: !Protocols {} + - !Property + schema: *ref_198 + readOnly: true + serializedName: type + language: !Languages + default: + name: type + description: Resource type + protocol: !Protocols {} + - !Property + schema: *ref_199 + serializedName: location + language: !Languages + default: + name: location + description: Resource location + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_203 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_200 + serializedName: type + language: !Languages + default: + name: type + description: The extended location type. + protocol: !Protocols {} + - !Property + schema: *ref_201 + serializedName: name + language: !Languages + default: + name: name + description: The extended location name. + protocol: !Protocols {} + language: !Languages + default: + name: ExtendedLocation + description: Resource extended location. + namespace: '' + protocol: !Protocols {} + serializedName: extendedLocation + extensions: + x-ms-mutability: + - read + - create + language: !Languages + default: + name: extendedLocation + description: Resource extended location. + protocol: !Protocols {} + - !Property + schema: *ref_202 + serializedName: tags + language: !Languages + default: + name: tags + description: Resource tags + protocol: !Protocols {} + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: Resource + description: Specified resource. + namespace: '' + protocol: !Protocols {} + - *ref_203 + - *ref_176 + - *ref_204 + - *ref_205 + - *ref_206 + - *ref_207 + - *ref_181 + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_299 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_181 + language: !Languages + default: + name: ResourceListResultValue + description: An array of resources. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of resources. + protocol: !Protocols {} + - !Property + schema: *ref_208 + readOnly: true + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + language: !Languages + default: + name: ResourceListResult + description: List of resource groups. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_220 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_209 + readOnly: true + required: false + serializedName: id + language: !Languages + default: + name: id + description: The ID of the resource group. + protocol: !Protocols {} + - !Property + schema: *ref_210 + readOnly: true + required: false + serializedName: name + language: !Languages + default: + name: name + description: The name of the resource group. + protocol: !Protocols {} + - !Property + schema: *ref_211 + readOnly: true + required: false + serializedName: type + language: !Languages + default: + name: type + description: The type of the resource group. + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_216 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_212 + readOnly: true + serializedName: provisioningState + language: !Languages + default: + name: provisioningState + description: 'The provisioning state. ' + protocol: !Protocols {} + language: !Languages + default: + name: ResourceGroupProperties + description: The resource group properties. + namespace: '' + protocol: !Protocols {} + required: false + serializedName: properties + language: !Languages + default: + name: properties + description: The resource group properties. + protocol: !Protocols {} + - !Property + schema: *ref_213 + required: true + serializedName: location + language: !Languages + default: + name: location + description: The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations. + protocol: !Protocols {} + - !Property + schema: *ref_214 + required: false + serializedName: managedBy + language: !Languages + default: + name: managedBy + description: The ID of the resource that manages this resource group. + protocol: !Protocols {} + - !Property + schema: *ref_215 + required: false + serializedName: tags + language: !Languages + default: + name: tags + description: The tags attached to the resource group. + protocol: !Protocols {} + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: ResourceGroup + description: Resource group information. + namespace: '' + protocol: !Protocols {} + - *ref_216 + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_217 + serializedName: name + language: !Languages + default: + name: name + description: The name of the resource group. + protocol: !Protocols {} + - !Property + schema: *ref_216 + serializedName: properties + language: !Languages + default: + name: properties + description: The resource group properties. + protocol: !Protocols {} + - !Property + schema: *ref_218 + serializedName: managedBy + language: !Languages + default: + name: managedBy + description: The ID of the resource that manages this resource group. + protocol: !Protocols {} + - !Property + schema: *ref_219 + serializedName: tags + language: !Languages + default: + name: tags + description: The tags attached to the resource group. + protocol: !Protocols {} + language: !Languages + default: + name: ResourceGroupPatchable + description: Resource group information. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_300 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_220 + language: !Languages + default: + name: ResourceGroupListResultValue + description: An array of resource groups. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of resource groups. + protocol: !Protocols {} + - !Property + schema: *ref_221 + readOnly: true + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + language: !Languages + default: + name: ResourceGroupListResult + description: List of resource groups. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_301 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_222 + language: !Languages + default: + name: ResourcesMoveInfoResources + description: The IDs of the resources. + protocol: !Protocols {} + serializedName: resources + language: !Languages + default: + name: resources + description: The IDs of the resources. + protocol: !Protocols {} + - !Property + schema: *ref_223 + serializedName: targetResourceGroup + language: !Languages + default: + name: targetResourceGroup + description: The target resource group. + protocol: !Protocols {} + language: !Languages + default: + name: ResourcesMoveInfo + description: Parameters of move resources. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_302 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_224 + language: !Languages + default: + name: ExportTemplateRequestResources + description: The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. + protocol: !Protocols {} + serializedName: resources + language: !Languages + default: + name: resources + description: The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. + protocol: !Protocols {} + - !Property + schema: *ref_225 + serializedName: options + language: !Languages + default: + name: options + description: 'The export template options. A CSV-formatted list containing zero or more of the following: ''IncludeParameterDefaultValue'', ''IncludeComments'', ''SkipResourceNameParameterization'', ''SkipAllParameterization''' + protocol: !Protocols {} + language: !Languages + default: + name: ExportTemplateRequest + description: Export resource group template request parameters. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_230 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_226 + serializedName: type + language: !Languages + default: + name: type + description: Type of count. + protocol: !Protocols {} + - !Property + schema: *ref_227 + serializedName: value + language: !Languages + default: + name: value + description: Value of count. + protocol: !Protocols {} + language: !Languages + default: + name: TagCount + description: Tag count. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_233 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_228 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The tag value ID. + protocol: !Protocols {} + - !Property + schema: *ref_229 + serializedName: tagValue + language: !Languages + default: + name: tagValue + description: The tag value. + protocol: !Protocols {} + - !Property + schema: *ref_230 + serializedName: count + language: !Languages + default: + name: count + description: The tag value count. + protocol: !Protocols {} + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: TagValue + description: Tag information. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_234 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_231 + readOnly: true + serializedName: id + language: !Languages + default: + name: id + description: The tag name ID. + protocol: !Protocols {} + - !Property + schema: *ref_232 + serializedName: tagName + language: !Languages + default: + name: tagName + description: The tag name. + protocol: !Protocols {} + - !Property + schema: *ref_230 + serializedName: count + language: !Languages + default: + name: count + description: The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_303 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_233 + language: !Languages + default: + name: TagDetailsValues + description: The list of tag values. + protocol: !Protocols {} + serializedName: values + language: !Languages + default: + name: values + description: The list of tag values. + protocol: !Protocols {} + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: TagDetails + description: Tag details. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_304 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_234 + language: !Languages + default: + name: TagsListResultValue + description: An array of tags. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of tags. + protocol: !Protocols {} + - !Property + schema: *ref_235 + readOnly: true + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + language: !Languages + default: + name: TagsListResult + description: List of subscription tags. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_236 + serializedName: publisher + language: !Languages + default: + name: publisher + description: Operation description. + protocol: !Protocols {} + - !Property + schema: *ref_237 + serializedName: provider + language: !Languages + default: + name: provider + description: Operation provider. + protocol: !Protocols {} + - !Property + schema: *ref_238 + serializedName: resource + language: !Languages + default: + name: resource + description: Operation resource. + protocol: !Protocols {} + - !Property + schema: *ref_239 + serializedName: operation + language: !Languages + default: + name: operation + description: Resource provider operation. + protocol: !Protocols {} + - !Property + schema: *ref_240 + serializedName: description + language: !Languages + default: + name: description + description: Operation description. + protocol: !Protocols {} + language: !Languages + default: + name: ResourceProviderOperationDisplayProperties + description: Resource provider operation's display properties. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_241 + serializedName: id + language: !Languages + default: + name: id + description: Resource ID + protocol: !Protocols {} + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: SubResource + description: Sub-resource. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_3 + serializedName: template + language: !Languages + default: + name: template + description: The template content. + protocol: !Protocols {} + - !Property + schema: *ref_17 + serializedName: error + language: !Languages + default: + name: error + description: The template export error. + protocol: !Protocols {} + language: !Languages + default: + name: ResourceGroupExportResult + description: Resource group export result. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_248 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_242 + serializedName: name + language: !Languages + default: + name: name + description: 'Operation name: {provider}/{resource}/{operation}' + protocol: !Protocols {} + - !Property + schema: !ObjectSchema &ref_247 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_243 + serializedName: provider + language: !Languages + default: + name: provider + description: 'Service provider: Microsoft.Resources' + protocol: !Protocols {} + - !Property + schema: *ref_244 + serializedName: resource + language: !Languages + default: + name: resource + description: 'Resource on which the operation is performed: Profile, endpoint, etc.' + protocol: !Protocols {} + - !Property + schema: *ref_245 + serializedName: operation + language: !Languages + default: + name: operation + description: 'Operation type: Read, write, delete, etc.' + protocol: !Protocols {} + - !Property + schema: *ref_246 + serializedName: description + language: !Languages + default: + name: description + description: Description of the operation. + protocol: !Protocols {} + extensions: + x-internal-autorest-anonymous-schema: + anonymous: true + language: !Languages + default: + name: OperationDisplay + description: The object that represents the operation. + namespace: '' + protocol: !Protocols {} + serializedName: display + language: !Languages + default: + name: display + description: The object that represents the operation. + protocol: !Protocols {} + language: !Languages + default: + name: Operation + description: Microsoft.Resources operation + namespace: '' + protocol: !Protocols {} + - *ref_247 + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_305 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_248 + language: !Languages + default: + name: OperationListResultValue + description: List of Microsoft.Resources operations. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: List of Microsoft.Resources operations. + protocol: !Protocols {} + - !Property + schema: *ref_249 + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: URL to get the next set of operation list results if there are any. + protocol: !Protocols {} + language: !Languages + default: + name: OperationListResult + description: Result of the request to list Microsoft.Resources operations. It contains a list of operations and a URL link to get the next set of results. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_252 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_250 + serializedName: tags + language: !Languages + default: + name: tags + description: Dictionary of + protocol: !Protocols {} + language: !Languages + default: + name: Tags + description: A dictionary of name and value pairs. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_251 + serializedName: operation + language: !Languages + default: + name: operation + description: The operation type for the patch API. + protocol: !Protocols {} + - !Property + schema: *ref_252 + serializedName: properties + language: !Languages + default: + name: properties + description: The set of tags. + protocol: !Protocols {} + language: !Languages + default: + name: TagsPatchResource + description: Wrapper resource for tags patch API request only. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_253 + readOnly: true + required: false + serializedName: id + language: !Languages + default: + name: id + description: The ID of the tags wrapper resource. + protocol: !Protocols {} + - !Property + schema: *ref_254 + readOnly: true + required: false + serializedName: name + language: !Languages + default: + name: name + description: The name of the tags wrapper resource. + protocol: !Protocols {} + - !Property + schema: *ref_255 + readOnly: true + required: false + serializedName: type + language: !Languages + default: + name: type + description: The type of the tags wrapper resource. + protocol: !Protocols {} + - !Property + schema: *ref_252 + required: true + serializedName: properties + language: !Languages + default: + name: properties + description: The set of tags. + protocol: !Protocols {} + extensions: + x-ms-azure-resource: true + language: !Languages + default: + name: TagsResource + description: Wrapper resource for tags API requests and responses. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_263 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_306 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_256 + language: !Languages + default: + name: PermissionActions + description: Allowed actions. + protocol: !Protocols {} + serializedName: actions + language: !Languages + default: + name: actions + description: Allowed actions. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_307 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_257 + language: !Languages + default: + name: PermissionNotActions + description: Denied actions. + protocol: !Protocols {} + serializedName: notActions + language: !Languages + default: + name: notActions + description: Denied actions. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_308 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_258 + language: !Languages + default: + name: PermissionDataActions + description: Allowed Data actions. + protocol: !Protocols {} + serializedName: dataActions + language: !Languages + default: + name: dataActions + description: Allowed Data actions. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_309 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_259 + language: !Languages + default: + name: PermissionNotDataActions + description: Denied Data actions. + protocol: !Protocols {} + serializedName: notDataActions + language: !Languages + default: + name: notDataActions + description: Denied Data actions. + protocol: !Protocols {} + language: !Languages + default: + name: Permission + description: Role definition permissions. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_266 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_260 + serializedName: id + language: !Languages + default: + name: id + description: The role definition ID. + protocol: !Protocols {} + - !Property + schema: *ref_261 + serializedName: name + language: !Languages + default: + name: name + description: The role definition name. + protocol: !Protocols {} + - !Property + schema: *ref_262 + serializedName: isServiceRole + language: !Languages + default: + name: isServiceRole + description: If this is a service role. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_310 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_263 + language: !Languages + default: + name: RoleDefinitionPermissions + description: Role definition permissions. + protocol: !Protocols {} + serializedName: permissions + language: !Languages + default: + name: permissions + description: Role definition permissions. + protocol: !Protocols {} + - !Property + schema: !ArraySchema &ref_311 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_264 + language: !Languages + default: + name: RoleDefinitionScopes + description: Role definition assignable scopes. + protocol: !Protocols {} + serializedName: scopes + language: !Languages + default: + name: scopes + description: Role definition assignable scopes. + protocol: !Protocols {} + language: !Languages + default: + name: RoleDefinition + description: Role definition properties. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_267 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_265 + serializedName: applicationId + language: !Languages + default: + name: applicationId + description: The application id. + protocol: !Protocols {} + - !Property + schema: *ref_266 + serializedName: roleDefinition + language: !Languages + default: + name: roleDefinition + description: Role definition properties. + protocol: !Protocols {} + - !Property + schema: *ref_266 + serializedName: managedByRoleDefinition + language: !Languages + default: + name: managedByRoleDefinition + description: Role definition properties. + protocol: !Protocols {} + - !Property + schema: *ref_77 + serializedName: providerAuthorizationConsentState + language: !Languages + default: + name: providerAuthorizationConsentState + description: The provider authorization consent state. + protocol: !Protocols {} + language: !Languages + default: + name: ProviderPermission + description: The provider permission + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: !ArraySchema &ref_312 + type: array + apiVersions: + - !ApiVersion + version: '2021-04-01' + elementType: *ref_267 + language: !Languages + default: + name: ProviderPermissionListResultValue + description: An array of provider permissions. + protocol: !Protocols {} + serializedName: value + language: !Languages + default: + name: value + description: An array of provider permissions. + protocol: !Protocols {} + - !Property + schema: *ref_268 + readOnly: true + serializedName: nextLink + language: !Languages + default: + name: nextLink + description: The URL to use for getting the next set of results. + protocol: !Protocols {} + language: !Languages + default: + name: ProviderPermissionListResult + description: List of provider permissions. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema &ref_270 + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_269 + serializedName: consentToAuthorization + language: !Languages + default: + name: consentToAuthorization + description: A value indicating whether authorization is consented or not. + protocol: !Protocols {} + language: !Languages + default: + name: ProviderConsentDefinition + description: The provider consent. + namespace: '' + protocol: !Protocols {} + - !ObjectSchema + type: object + apiVersions: + - !ApiVersion + version: '2021-04-01' + properties: + - !Property + schema: *ref_270 + serializedName: thirdPartyProviderConsent + language: !Languages + default: + name: thirdPartyProviderConsent + description: The provider consent. + protocol: !Protocols {} + language: !Languages + default: + name: ProviderRegistrationRequest + description: The provider registration definition. + namespace: '' + protocol: !Protocols {} + arrays: + - *ref_271 + - *ref_272 + - *ref_273 + - *ref_274 + - *ref_275 + - *ref_276 + - *ref_277 + - *ref_278 + - *ref_279 + - *ref_280 + - *ref_281 + - *ref_282 + - *ref_283 + - *ref_284 + - *ref_285 + - *ref_286 + - *ref_287 + - *ref_288 + - *ref_289 + - *ref_290 + - *ref_291 + - *ref_292 + - *ref_293 + - *ref_294 + - *ref_295 + - *ref_296 + - *ref_297 + - *ref_298 + - *ref_299 + - *ref_300 + - *ref_301 + - *ref_302 + - *ref_303 + - *ref_304 + - *ref_305 + - *ref_306 + - *ref_307 + - *ref_308 + - *ref_309 + - *ref_310 + - *ref_311 + - *ref_312 +globalParameters: + - !Parameter &ref_393 + schema: *ref_313 + implementation: Client + required: true + extensions: + x-ms-priority: 0 + language: !Languages + default: + name: SubscriptionId + description: The Microsoft Azure subscription ID. + serializedName: subscriptionId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_314 + schema: *ref_0 + clientDefaultValue: https://management.azure.com + implementation: Client + origin: modelerfour:synthesized/host + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: $host + description: server parameter + serializedName: $host + protocol: !Protocols + http: !HttpParameter + in: uri +operationGroups: + - !OperationGroup + $key: Deployments + operations: + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_318 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_319 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_318 + - *ref_319 + responses: + - !Response + language: !Languages + default: + name: '' + description: Accepted - Returns this status until the asynchronous operation has completed. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: DeleteAtScope + description: >- + A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template + deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of + 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. + summary: Deletes a deployment from the deployment history. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_321 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_322 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName} + method: head + uri: '{$host}' + signatureParameters: + - *ref_321 + - *ref_322 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + - !Response + language: !Languages + default: + name: '' + description: Not Found + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '404' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: CheckExistenceAtScope + description: Checks whether the deployment exists. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_326 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_327 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_325 + schema: *ref_324 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Additional parameters supplied to the operation. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_325 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_326 + - *ref_327 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: Created - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Create deployment at a given scope.: + parameters: + api-version: '2021-04-01' + deploymentName: my-deployment + parameters: + location: eastus + properties: + mode: Incremental + parameters: {} + templateLink: + uri: https://example.com/exampleTemplate.json + tags: + tagKey1: tag-value-1 + tagKey2: tag-value-2 + scope: providers/Microsoft.Management/managementGroups/my-management-group-id + responses: + '200': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment + location: eastus + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name + resourceName: policy-definition-name + resourceType: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock + resourceName: location-lock + resourceType: Microsoft.Authorization/policyAssignments + duration: PT1.2970875S + mode: Incremental + parameters: {} + providers: + - namespace: Microsoft.Authorization + resourceTypes: + - locations: + - null + resourceType: policyDefinitions + - locations: + - null + resourceType: policyAssignments + - namespace: Microsoft.Resources + resourceTypes: + - locations: + - eastus + resourceType: deployments + provisioningState: Accepted + timestamp: '2019-04-24T22:52:38.7895563Z' + tags: + tagKey1: tag-value-1 + tagKey2: tag-value-2 + '201': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment + location: eastus + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name + resourceName: policy-definition-name + resourceType: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock + resourceName: location-lock + resourceType: Microsoft.Authorization/policyAssignments + duration: PT1.2970875S + mode: Incremental + parameters: {} + providers: + - namespace: Microsoft.Authorization + resourceTypes: + - locations: + - null + resourceType: policyDefinitions + - locations: + - null + resourceType: policyAssignments + - namespace: Microsoft.Resources + resourceTypes: + - locations: + - eastus + resourceType: deployments + provisioningState: Accepted + timestamp: '2019-04-24T22:52:38.7895563Z' + tags: + tagKey1: tag-value-1 + tagKey2: tag-value-2 + x-ms-long-running-operation: true + language: !Languages + default: + name: CreateOrUpdateAtScope + description: You can provide the template and parameters directly in the request or link to JSON files. + summary: Deploys resources at a given scope. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_328 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_329 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_328 + - *ref_329 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtScope + description: Gets a deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_330 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_331 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel + method: post + uri: '{$host}' + signatureParameters: + - *ref_330 + - *ref_331 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: CancelAtScope + description: >- + You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template + deployment and leaves the resources partially deployed. + summary: Cancels a currently running template deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_333 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_334 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_332 + schema: *ref_324 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters to validate. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_332 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_333 + - *ref_334 + responses: + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: OK - Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '400' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: ValidateAtScope + description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_336 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_337 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate + method: post + uri: '{$host}' + signatureParameters: + - *ref_336 + - *ref_337 + responses: + - !SchemaResponse + schema: *ref_338 + language: !Languages + default: + name: '' + description: OK - Returns the template. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: ExportTemplateAtScope + description: Exports the template used for specified deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_340 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_341 + schema: *ref_1 + implementation: Method + language: !Languages + default: + name: filter + description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_342 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to get. If null is passed, returns all deployments. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Resources/deployments/ + method: get + uri: '{$host}' + signatureParameters: + - *ref_340 + - *ref_341 + - *ref_342 + responses: + - !SchemaResponse + schema: *ref_343 + language: !Languages + default: + name: '' + description: OK - Returns an array of deployments. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListAtScope + description: Get all the deployments at the given scope. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_344 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_344 + responses: + - !Response + language: !Languages + default: + name: '' + description: Accepted - Returns this status until the asynchronous operation has completed. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: DeleteAtTenantScope + description: >- + A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template + deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of + 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. + summary: Deletes a deployment from the deployment history. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_345 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName} + method: head + uri: '{$host}' + signatureParameters: + - *ref_345 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + - !Response + language: !Languages + default: + name: '' + description: Not Found + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '404' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: CheckExistenceAtTenantScope + description: Checks whether the deployment exists. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_348 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_347 + schema: *ref_346 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Additional parameters supplied to the operation. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_347 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_348 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: Created - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Create deployment at tenant scope.: + parameters: + api-version: '2021-04-01' + deploymentName: tenant-dep01 + parameters: + location: eastus + properties: + mode: Incremental + parameters: {} + templateLink: + uri: https://example.com/exampleTemplate.json + tags: + tagKey1: tag-value-1 + tagKey2: tag-value-2 + responses: + '200': + body: + name: tenant-dep01 + type: Microsoft.Resources/deployments + id: /providers/Microsoft.Resources/deployments/tenant-dep01 + location: eastus + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: /providers/Microsoft.Authorization/policyDefinitions/policy-definition-name + resourceName: policy-definition-name + resourceType: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Authorization/policyAssignments/location-lock + resourceName: location-lock + resourceType: Microsoft.Authorization/policyAssignments + duration: PT1.2970875S + mode: Incremental + parameters: {} + providers: + - namespace: Microsoft.Authorization + resourceTypes: + - locations: + - null + resourceType: policyDefinitions + - locations: + - null + resourceType: policyAssignments + - namespace: Microsoft.Resources + resourceTypes: + - locations: + - eastus + resourceType: deployments + provisioningState: Accepted + timestamp: '2019-04-24T22:52:38.7895563Z' + tags: + tagKey1: tag-value-1 + tagKey2: tag-value-2 + '201': + body: + name: tenant-dep01 + type: Microsoft.Resources/deployments + id: /providers/Microsoft.Resources/deployments/tenant-dep01 + location: eastus + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: /providers/Microsoft.Authorization/policyDefinitions/policy-definition-name + resourceName: policy-definition-name + resourceType: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Authorization/policyAssignments/location-lock + resourceName: location-lock + resourceType: Microsoft.Authorization/policyAssignments + duration: PT1.2970875S + mode: Incremental + parameters: {} + providers: + - namespace: Microsoft.Authorization + resourceTypes: + - locations: + - null + resourceType: policyDefinitions + - locations: + - null + resourceType: policyAssignments + - namespace: Microsoft.Resources + resourceTypes: + - locations: + - eastus + resourceType: deployments + provisioningState: Accepted + timestamp: '2019-04-24T22:52:38.7895563Z' + tags: + tagKey1: tag-value-1 + tagKey2: tag-value-2 + x-ms-long-running-operation: true + language: !Languages + default: + name: CreateOrUpdateAtTenantScope + description: You can provide the template and parameters directly in the request or link to JSON files. + summary: Deploys resources at tenant scope. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_349 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_349 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtTenantScope + description: Gets a deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_350 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName}/cancel + method: post + uri: '{$host}' + signatureParameters: + - *ref_350 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: CancelAtTenantScope + description: >- + You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template + deployment and leaves the resources partially deployed. + summary: Cancels a currently running template deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_352 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_351 + schema: *ref_346 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters to validate. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_351 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName}/validate + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_352 + responses: + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: OK - Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '400' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: ValidateAtTenantScope + description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_359 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_354 + schema: *ref_353 + flattened: true + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters to validate. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + - !VirtualParameter &ref_357 + schema: *ref_104 + implementation: Method + originalParameter: *ref_354 + pathToProperty: [] + required: true + targetProperty: *ref_355 + language: !Languages + default: + name: location + description: The location to store the deployment data. + protocol: !Protocols {} + - !VirtualParameter &ref_358 + schema: *ref_23 + implementation: Method + originalParameter: *ref_354 + pathToProperty: [] + required: true + targetProperty: *ref_356 + language: !Languages + default: + name: properties + description: The deployment properties. + protocol: !Protocols {} + signatureParameters: + - *ref_357 + - *ref_358 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName}/whatIf + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_359 + responses: + - !SchemaResponse + schema: *ref_360 + language: !Languages + default: + name: '' + description: OK - Returns What-If operation status + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: Accepted - Returns URL in Location header to query for long-running operation status. + protocol: !Protocols + http: !HttpResponse + headers: + - !HttpHeader + schema: *ref_1 + header: Location + language: + default: + name: Location + description: URL to get status of this long-running operation. + - !HttpHeader + schema: *ref_361 + header: Retry-After + language: + default: + name: RetryAfter + description: Number of seconds to wait before polling for status. + statusCodes: + - '202' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Predict template changes at management group scope: + parameters: + api-version: '2021-04-01' + deploymentName: exampleDeploymentName + parameters: + location: eastus + properties: + mode: Incremental + parameters: {} + templateLink: https://example.com/exampleTemplate.json + responses: + '200': + body: + properties: + changes: + - after: + name: myManagementGroup + type: Microsoft.Management/managementGroups + apiVersion: '2019-11-01' + id: /providers/Microsoft.Management/managementGroups/myManagementGroup + changeType: Create + resourceId: /providers/Microsoft.Management/managementGroups/myManagementGroup + status: Succeeded + '202': + headers: + Location: >- + /subscriptions/4d0ca63b-7939-4c9c-afbe-5fafae501724/operationresults/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ + x-ms-long-running-operation: true + x-ms-long-running-operation-options: + final-state-via: location + language: !Languages + default: + name: WhatIfAtTenantScope + description: Returns changes that will be made by the deployment if executed at the scope of the tenant group. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_362 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate + method: post + uri: '{$host}' + signatureParameters: + - *ref_362 + responses: + - !SchemaResponse + schema: *ref_338 + language: !Languages + default: + name: '' + description: OK - Returns the template. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: ExportTemplateAtTenantScope + description: Exports the template used for specified deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_364 + schema: *ref_363 + implementation: Method + language: !Languages + default: + name: filter + description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_365 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to get. If null is passed, returns all deployments. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Resources/deployments/ + method: get + uri: '{$host}' + signatureParameters: + - *ref_364 + - *ref_365 + responses: + - !SchemaResponse + schema: *ref_343 + language: !Languages + default: + name: '' + description: OK - Returns an array of deployments. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListAtTenantScope + description: Get all the deployments at the tenant scope. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_367 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_368 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_367 + - *ref_368 + responses: + - !Response + language: !Languages + default: + name: '' + description: Accepted - Returns this status until the asynchronous operation has completed. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: DeleteAtManagementGroupScope + description: >- + A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template + deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of + 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. + summary: Deletes a deployment from the deployment history. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_369 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_370 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName} + method: head + uri: '{$host}' + signatureParameters: + - *ref_369 + - *ref_370 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + - !Response + language: !Languages + default: + name: '' + description: Not Found + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '404' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: CheckExistenceAtManagementGroupScope + description: Checks whether the deployment exists. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_372 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_373 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_371 + schema: *ref_346 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Additional parameters supplied to the operation. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_371 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_372 + - *ref_373 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: Created - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Create deployment at management group scope.: + parameters: + api-version: '2021-04-01' + deploymentName: my-deployment + groupId: my-management-group-id + parameters: + location: eastus + properties: + mode: Incremental + parameters: {} + templateLink: + uri: https://example.com/exampleTemplate.json + responses: + '200': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment + location: eastus + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name + resourceName: policy-definition-name + resourceType: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock + resourceName: location-lock + resourceType: Microsoft.Authorization/policyAssignments + duration: PT1.2970875S + mode: Incremental + parameters: {} + providers: + - namespace: Microsoft.Authorization + resourceTypes: + - locations: + - null + resourceType: policyDefinitions + - locations: + - null + resourceType: policyAssignments + - namespace: Microsoft.Resources + resourceTypes: + - locations: + - eastus + resourceType: deployments + provisioningState: Accepted + timestamp: '2019-04-24T22:52:38.7895563Z' + '201': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment + location: eastus + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name + resourceName: policy-definition-name + resourceType: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock + resourceName: location-lock + resourceType: Microsoft.Authorization/policyAssignments + duration: PT1.2970875S + mode: Incremental + parameters: {} + providers: + - namespace: Microsoft.Authorization + resourceTypes: + - locations: + - null + resourceType: policyDefinitions + - locations: + - null + resourceType: policyAssignments + - namespace: Microsoft.Resources + resourceTypes: + - locations: + - eastus + resourceType: deployments + provisioningState: Accepted + timestamp: '2019-04-24T22:52:38.7895563Z' + x-ms-long-running-operation: true + language: !Languages + default: + name: CreateOrUpdateAtManagementGroupScope + description: You can provide the template and parameters directly in the request or link to JSON files. + summary: Deploys resources at management group scope. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_374 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_375 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_374 + - *ref_375 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtManagementGroupScope + description: Gets a deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_376 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_377 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel + method: post + uri: '{$host}' + signatureParameters: + - *ref_376 + - *ref_377 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: CancelAtManagementGroupScope + description: >- + You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template + deployment and leaves the resources partially deployed. + summary: Cancels a currently running template deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_379 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_380 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_378 + schema: *ref_346 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters to validate. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_378 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_379 + - *ref_380 + responses: + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: OK - Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '400' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: ValidateAtManagementGroupScope + description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_384 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_385 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_381 + schema: *ref_353 + flattened: true + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters to validate. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + - !VirtualParameter &ref_382 + schema: *ref_104 + implementation: Method + originalParameter: *ref_381 + pathToProperty: [] + required: true + targetProperty: *ref_355 + language: !Languages + default: + name: location + description: The location to store the deployment data. + protocol: !Protocols {} + - !VirtualParameter &ref_383 + schema: *ref_23 + implementation: Method + originalParameter: *ref_381 + pathToProperty: [] + required: true + targetProperty: *ref_356 + language: !Languages + default: + name: properties + description: The deployment properties. + protocol: !Protocols {} + signatureParameters: + - *ref_382 + - *ref_383 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_384 + - *ref_385 + responses: + - !SchemaResponse + schema: *ref_360 + language: !Languages + default: + name: '' + description: OK - Returns What-If operation status + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: Accepted - Returns URL in Location header to query for long-running operation status. + protocol: !Protocols + http: !HttpResponse + headers: + - !HttpHeader + schema: *ref_363 + header: Location + language: + default: + name: Location + description: URL to get status of this long-running operation. + - !HttpHeader + schema: *ref_386 + header: Retry-After + language: + default: + name: RetryAfter + description: Number of seconds to wait before polling for status. + statusCodes: + - '202' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Predict template changes at management group scope: + parameters: + api-version: '2021-04-01' + deploymentName: exampleDeploymentName + groupId: myManagementGruop + parameters: + location: eastus + properties: + mode: Incremental + parameters: {} + templateLink: https://example.com/exampleTemplate.json + responses: + '200': + body: + properties: + changes: + - after: + before: + name: myPolicyAssignment + type: Microsoft.Authorization/policyAssignments + apiVersion: '2019-06-01' + id: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment + location: westus2 + properties: + enforcementMode: DoNotEnforce + policyDefinitionId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyDefinition + scope: /subscriptions/00000000-0000-0000-0000-000000000001 + changeType: Modify + delta: + - path: properties.enforcementMode + after: DoNotEnforce + before: Default + propertyChangeType: Modify + resourceId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment + before: + name: myPolicyAssignment + type: Microsoft.Authorization/policyAssignments + apiVersion: '2019-06-01' + id: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment + location: westus2 + properties: + enforcementMode: Default + policyDefinitionId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyDefinition + scope: /subscriptions/00000000-0000-0000-0000-000000000001 + changeType: Modify + resourceId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment + - after: + name: myPolicyAssignment2 + type: Microsoft.Authorization/policyAssignments + apiVersion: '2019-06-01' + id: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment2 + location: westus2 + properties: + enforcementMode: Default + policyDefinitionId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyDefinition + scope: /subscriptions/00000000-0000-0000-0000-000000000002 + changeType: Create + resourceId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment2 + status: Succeeded + '202': + headers: + Location: >- + /subscriptions/4d0ca63b-7939-4c9c-afbe-5fafae501724/operationresults/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ + x-ms-long-running-operation: true + x-ms-long-running-operation-options: + final-state-via: location + language: !Languages + default: + name: WhatIfAtManagementGroupScope + description: Returns changes that will be made by the deployment if executed at the scope of the management group. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_387 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_388 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate + method: post + uri: '{$host}' + signatureParameters: + - *ref_387 + - *ref_388 + responses: + - !SchemaResponse + schema: *ref_338 + language: !Languages + default: + name: '' + description: OK - Returns the template. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: ExportTemplateAtManagementGroupScope + description: Exports the template used for specified deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_390 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_391 + schema: *ref_389 + implementation: Method + language: !Languages + default: + name: filter + description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_392 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to get. If null is passed, returns all deployments. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/ + method: get + uri: '{$host}' + signatureParameters: + - *ref_390 + - *ref_391 + - *ref_392 + responses: + - !SchemaResponse + schema: *ref_343 + language: !Languages + default: + name: '' + description: OK - Returns an array of deployments. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListAtManagementGroupScope + description: Get all the deployments for a management group. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_394 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_394 + responses: + - !Response + language: !Languages + default: + name: '' + description: Accepted - Returns this status until the asynchronous operation has completed. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: DeleteAtSubscriptionScope + description: >- + A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template + deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of + 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. + summary: Deletes a deployment from the deployment history. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_395 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName} + method: head + uri: '{$host}' + signatureParameters: + - *ref_395 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + - !Response + language: !Languages + default: + name: '' + description: Not Found + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '404' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: CheckExistenceAtSubscriptionScope + description: Checks whether the deployment exists. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_397 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_396 + schema: *ref_324 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Additional parameters supplied to the operation. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_396 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_397 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: Created - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Create a deployment that will deploy a templateSpec with the given resourceId: + parameters: + api-version: '2021-04-01' + deploymentName: my-deployment + parameters: + location: eastus + properties: + mode: Incremental + parameters: {} + templateLink: + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 + subscriptionId: 00000000-0000-0000-0000-000000000001 + responses: + '200': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.Resources/deployments/my-deployment + location: eastus + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: [] + duration: PT1.2637681S + mode: Incremental + outputResources: [] + parameters: {} + providers: [] + provisioningState: Succeeded + templateHash: '0000000000000000000' + templateLink: + contentVersion: 1.0.0.0 + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 + timestamp: '2020-06-05T01:51:58.6288067Z' + '201': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.Resources/deployments/my-deployment + location: eastus + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: [] + duration: PT1.2637681S + mode: Incremental + parameters: {} + providers: [] + provisioningState: Accepted + templateHash: '0000000000000000000' + templateLink: + contentVersion: 1.0.0.0 + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 + timestamp: '2020-06-05T01:51:58.6288067Z' + x-ms-long-running-operation: true + language: !Languages + default: + name: CreateOrUpdateAtSubscriptionScope + description: You can provide the template and parameters directly in the request or link to JSON files. + summary: Deploys resources at subscription scope. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_398 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_398 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtSubscriptionScope + description: Gets a deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_399 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel + method: post + uri: '{$host}' + signatureParameters: + - *ref_399 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: CancelAtSubscriptionScope + description: >- + You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template + deployment and leaves the resources partially deployed. + summary: Cancels a currently running template deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_401 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_400 + schema: *ref_324 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters to validate. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_400 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_401 + responses: + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: OK - Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '400' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: ValidateAtSubscriptionScope + description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_408 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_403 + schema: *ref_402 + flattened: true + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters to What If. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + - !VirtualParameter &ref_406 + schema: *ref_114 + implementation: Method + originalParameter: *ref_403 + pathToProperty: [] + required: false + targetProperty: *ref_404 + language: !Languages + default: + name: location + description: The location to store the deployment data. + protocol: !Protocols {} + - !VirtualParameter &ref_407 + schema: *ref_23 + implementation: Method + originalParameter: *ref_403 + pathToProperty: [] + required: true + targetProperty: *ref_405 + language: !Languages + default: + name: properties + description: The deployment properties. + protocol: !Protocols {} + signatureParameters: + - *ref_406 + - *ref_407 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_408 + responses: + - !SchemaResponse + schema: *ref_360 + language: !Languages + default: + name: '' + description: OK - Returns What-If operation status + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: Accepted - Returns URL in Location header to query for long-running operation status. + protocol: !Protocols + http: !HttpResponse + headers: + - !HttpHeader + schema: *ref_389 + header: Location + language: + default: + name: Location + description: URL to get status of this long-running operation. + - !HttpHeader + schema: *ref_409 + header: Retry-After + language: + default: + name: RetryAfter + description: Number of seconds to wait before polling for status. + statusCodes: + - '202' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Predict template changes at subscription scope: + parameters: + api-version: '2021-04-01' + deploymentName: my-deployment + parameters: + location: westus + properties: + mode: Incremental + parameters: {} + templateLink: https://example.com/exampleTemplate.json + subscriptionId: 00000000-0000-0000-0000-000000000001 + responses: + '200': + body: + properties: + changes: + - after: + name: myExistingIdentity + type: Microsoft.ManagedIdentity/userAssignedIdentities + apiVersion: '2018-11-30' + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity + location: westus2 + tags: + myNewTag: my tag value + before: + name: myExistingIdentity + type: Microsoft.ManagedIdentity/userAssignedIdentities + apiVersion: '2018-11-30' + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity + location: westus2 + changeType: Modify + delta: + - path: tags.myNewTag + after: my tag value + propertyChangeType: Create + resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity + - after: + name: myNewIdentity + type: Microsoft.ManagedIdentity/userAssignedIdentities + apiVersion: '2018-11-30' + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity + location: eastus + tags: + myOtherNewTag: another new tag value + changeType: Create + resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity + - after: + name: my-resource-group2 + type: Microsoft.Resources/resourceGroups + apiVersion: '2019-03-01' + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group2 + location: '{location3}' + changeType: Create + resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group2 + status: succeeded + '202': + headers: + Location: >- + /subscriptions/00000000-0000-0000-0000-000000000000/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ + x-ms-long-running-operation: true + x-ms-long-running-operation-options: + final-state-via: location + language: !Languages + default: + name: WhatIfAtSubscriptionScope + description: Returns changes that will be made by the deployment if executed at the scope of the subscription. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_410 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate + method: post + uri: '{$host}' + signatureParameters: + - *ref_410 + responses: + - !SchemaResponse + schema: *ref_338 + language: !Languages + default: + name: '' + description: OK - Returns the template. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: ExportTemplateAtSubscriptionScope + description: Exports the template used for specified deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_412 + schema: *ref_411 + implementation: Method + language: !Languages + default: + name: filter + description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_413 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to get. If null is passed, returns all deployments. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/ + method: get + uri: '{$host}' + signatureParameters: + - *ref_412 + - *ref_413 + responses: + - !SchemaResponse + schema: *ref_343 + language: !Languages + default: + name: '' + description: OK - Returns an array of deployments. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListAtSubscriptionScope + description: Get all the deployments for a subscription. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_415 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group with the deployment to delete. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_416 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_415 + - *ref_416 + responses: + - !Response + language: !Languages + default: + name: '' + description: Accepted - Returns this status until the asynchronous operation has completed. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: Delete + description: >- + A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. + This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the + process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in + the Location header returns an error-level status code. + summary: Deletes a deployment from the deployment history. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_417 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group with the deployment to check. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_418 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName} + method: head + uri: '{$host}' + signatureParameters: + - *ref_417 + - *ref_418 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + - !Response + language: !Languages + default: + name: '' + description: Not Found + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '404' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: CheckExistence + description: Checks whether the deployment exists. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_420 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_421 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_419 + schema: *ref_324 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Additional parameters supplied to the operation. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_419 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_420 + - *ref_421 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: Created - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Create a deployment that will deploy a template with a uri and queryString: + parameters: + api-version: '2021-04-01' + deploymentName: my-deployment + parameters: + properties: + mode: Incremental + parameters: {} + templateLink: + queryString: sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=xxxxxxxx0xxxxxxxxxxxxx%2bxxxxxxxxxxxxxxxxxxxx%3d + uri: https://example.com/exampleTemplate.json + resourceGroupName: my-resource-group + subscriptionId: 00000000-0000-0000-0000-000000000001 + responses: + '200': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: [] + duration: PT22.8356799S + mode: Incremental + outputResources: + - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account + parameters: {} + providers: + - namespace: Microsoft.Storage + resourceTypes: + - locations: + - eastus + resourceType: storageAccounts + provisioningState: Succeeded + templateHash: '0000000000000000000' + templateLink: + contentVersion: 1.0.0.0 + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 + timestamp: '2020-06-05T01:20:01.723776Z' + '201': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: [] + duration: PT22.8356799S + mode: Incremental + parameters: {} + providers: + - namespace: Microsoft.Storage + resourceTypes: + - locations: + - eastus + resourceType: storageAccounts + provisioningState: Accepted + templateHash: '0000000000000000000' + templateLink: + contentVersion: 1.0.0.0 + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 + timestamp: '2020-06-05T01:20:01.723776Z' + Create a deployment that will deploy a templateSpec with the given resourceId: + parameters: + api-version: '2021-04-01' + deploymentName: my-deployment + parameters: + properties: + mode: Incremental + parameters: {} + templateLink: + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 + resourceGroupName: my-resource-group + subscriptionId: 00000000-0000-0000-0000-000000000001 + responses: + '200': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: [] + duration: PT22.8356799S + mode: Incremental + outputResources: + - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account + parameters: {} + providers: + - namespace: Microsoft.Storage + resourceTypes: + - locations: + - eastus + resourceType: storageAccounts + provisioningState: Succeeded + templateHash: '0000000000000000000' + templateLink: + contentVersion: 1.0.0.0 + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 + timestamp: '2020-06-05T01:20:01.723776Z' + '201': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: [] + duration: PT22.8356799S + mode: Incremental + parameters: {} + providers: + - namespace: Microsoft.Storage + resourceTypes: + - locations: + - eastus + resourceType: storageAccounts + provisioningState: Accepted + templateHash: '0000000000000000000' + templateLink: + contentVersion: 1.0.0.0 + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 + timestamp: '2020-06-05T01:20:01.723776Z' + Create a deployment that will redeploy another deployment on failure: + parameters: + api-version: '2021-04-01' + deploymentName: my-deployment + parameters: + properties: + mode: Complete + onErrorDeployment: + type: SpecificDeployment + deploymentName: name-of-deployment-to-use + parameters: {} + templateLink: + uri: https://example.com/exampleTemplate.json + resourceGroupName: my-resource-group + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: '{resourceid}' + resourceName: VNet1 + resourceType: Microsoft.Network/virtualNetworks + id: '{resourceid}' + resourceName: VNet1/Subnet1 + resourceType: Microsoft.Network/virtualNetworks/subnets + - dependsOn: + - id: '{resourceid}' + resourceName: VNet1 + resourceType: Microsoft.Network/virtualNetworks + - id: '{resourceid}' + resourceName: VNet1/Subnet1 + resourceType: Microsoft.Network/virtualNetworks/subnets + id: '{resourceid}' + resourceName: VNet1/Subnet2 + resourceType: Microsoft.Network/virtualNetworks/subnets + duration: PT0.8204881S + mode: Complete + onErrorDeployment: + type: SpecificDeployment + deploymentName: name-of-deployment-to-use + parameters: {} + providers: + - namespace: Microsoft.Network + resourceTypes: + - locations: + - centralus + resourceType: virtualNetworks + - locations: + - centralus + resourceType: virtualNetworks/subnets + provisioningState: Accepted + templateLink: + contentVersion: 1.0.0.0 + uri: https://example.com/exampleTemplate.json + timestamp: '2019-03-01T00:00:00.0000000Z' + '201': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: '{resourceid}' + resourceName: VNet1 + resourceType: Microsoft.Network/virtualNetworks + id: '{resourceid}' + resourceName: VNet1/Subnet1 + resourceType: Microsoft.Network/virtualNetworks/subnets + - dependsOn: + - id: '{resourceid}' + resourceName: VNet1 + resourceType: Microsoft.Network/virtualNetworks + - id: '{resourceid}' + resourceName: VNet1/Subnet1 + resourceType: Microsoft.Network/virtualNetworks/subnets + id: '{resourceid}' + resourceName: VNet1/Subnet2 + resourceType: Microsoft.Network/virtualNetworks/subnets + duration: PT0.8204881S + mode: Complete + onErrorDeployment: + type: SpecificDeployment + deploymentName: name-of-deployment-to-use + parameters: {} + providers: + - namespace: Microsoft.Network + resourceTypes: + - locations: + - centralus + resourceType: virtualNetworks + - locations: + - centralus + resourceType: virtualNetworks/subnets + provisioningState: Accepted + templateLink: + contentVersion: 1.0.0.0 + uri: https://example.com/exampleTemplate.json + timestamp: '2019-03-01T00:00:00.0000000Z' + Create a deployment that will redeploy the last successful deployment on failure: + parameters: + api-version: '2021-04-01' + deploymentName: my-deployment + parameters: + properties: + mode: Complete + onErrorDeployment: + type: LastSuccessful + parameters: {} + templateLink: + uri: https://example.com/exampleTemplate.json + resourceGroupName: my-resource-group + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: '{resourceid}' + resourceName: VNet1 + resourceType: Microsoft.Network/virtualNetworks + id: '{resourceid}' + resourceName: VNet1/Subnet1 + resourceType: Microsoft.Network/virtualNetworks/subnets + - dependsOn: + - id: '{resourceid}' + resourceName: VNet1 + resourceType: Microsoft.Network/virtualNetworks + - id: '{resourceid}' + resourceName: VNet1/Subnet1 + resourceType: Microsoft.Network/virtualNetworks/subnets + id: '{resourceid}' + resourceName: VNet1/Subnet2 + resourceType: Microsoft.Network/virtualNetworks/subnets + duration: PT0.8204881S + mode: Complete + onErrorDeployment: + type: LastSuccessful + deploymentName: '{nameOfLastSuccesfulDeployment}' + parameters: {} + providers: + - namespace: Microsoft.Network + resourceTypes: + - locations: + - centralus + resourceType: virtualNetworks + - locations: + - centralus + resourceType: virtualNetworks/subnets + provisioningState: Accepted + templateLink: + contentVersion: 1.0.0.0 + uri: https://example.com/exampleTemplate.json + timestamp: '2019-03-01T00:00:00.0000000Z' + '201': + body: + name: my-deployment + type: Microsoft.Resources/deployments + id: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment + properties: + correlationId: 00000000-0000-0000-0000-000000000000 + dependencies: + - dependsOn: + - id: '{resourceid}' + resourceName: VNet1 + resourceType: Microsoft.Network/virtualNetworks + id: '{resourceid}' + resourceName: VNet1/Subnet1 + resourceType: Microsoft.Network/virtualNetworks/subnets + - dependsOn: + - id: '{resourceid}' + resourceName: VNet1 + resourceType: Microsoft.Network/virtualNetworks + - id: '{resourceid}' + resourceName: VNet1/Subnet1 + resourceType: Microsoft.Network/virtualNetworks/subnets + id: '{resourceid}' + resourceName: VNet1/Subnet2 + resourceType: Microsoft.Network/virtualNetworks/subnets + duration: PT0.8204881S + mode: Complete + onErrorDeployment: + type: LastSuccessful + deploymentName: '{nameOfLastSuccesfulDeployment}' + parameters: {} + providers: + - namespace: Microsoft.Network + resourceTypes: + - locations: + - centralus + resourceType: virtualNetworks + - locations: + - centralus + resourceType: virtualNetworks/subnets + provisioningState: Accepted + templateLink: + contentVersion: 1.0.0.0 + uri: https://example.com/exampleTemplate.json + timestamp: '2019-03-01T00:00:00.0000000Z' + x-ms-long-running-operation: true + language: !Languages + default: + name: CreateOrUpdate + description: You can provide the template and parameters directly in the request or link to JSON files. + summary: Deploys resources to a resource group. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_422 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_423 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_422 + - *ref_423 + responses: + - !SchemaResponse + schema: *ref_100 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment, including provisioning status. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtResourceGroupScope + description: Gets a deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_424 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_425 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel + method: post + uri: '{$host}' + signatureParameters: + - *ref_424 + - *ref_425 + responses: + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: Cancel + description: >- + You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template + deployment and leaves the resource group partially deployed. + summary: Cancels a currently running template deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_427 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group the template will be deployed to. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_428 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_426 + schema: *ref_324 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters to validate. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_426 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_427 + - *ref_428 + responses: + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: OK - Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '202' + - !SchemaResponse + schema: *ref_335 + language: !Languages + default: + name: '' + description: Returns the validation result. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '400' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-long-running-operation: true + language: !Languages + default: + name: Validate + description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_432 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group the template will be deployed to. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_433 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_429 + schema: *ref_402 + flattened: true + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters to validate. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + - !VirtualParameter &ref_430 + schema: *ref_114 + implementation: Method + originalParameter: *ref_429 + pathToProperty: [] + required: false + targetProperty: *ref_404 + language: !Languages + default: + name: location + description: The location to store the deployment data. + protocol: !Protocols {} + - !VirtualParameter &ref_431 + schema: *ref_23 + implementation: Method + originalParameter: *ref_429 + pathToProperty: [] + required: true + targetProperty: *ref_405 + language: !Languages + default: + name: properties + description: The deployment properties. + protocol: !Protocols {} + signatureParameters: + - *ref_430 + - *ref_431 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_432 + - *ref_433 + responses: + - !SchemaResponse + schema: *ref_360 + language: !Languages + default: + name: '' + description: OK - Returns What-If operation status + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: Accepted - Returns URL in Location header to query for long-running operation status. + protocol: !Protocols + http: !HttpResponse + headers: + - !HttpHeader + schema: *ref_411 + header: Location + language: + default: + name: Location + description: URL to get status of this long-running operation. + - !HttpHeader + schema: *ref_434 + header: Retry-After + language: + default: + name: RetryAfter + description: Number of seconds to wait before polling for status. + statusCodes: + - '202' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Predict template changes at resource group scope: + parameters: + api-version: '2021-04-01' + deploymentName: my-deployment + parameters: + properties: + mode: Incremental + parameters: {} + templateLink: https://example.com/exampleTemplate.json + resourceGroupName: my-resource-group + subscriptionId: 00000000-0000-0000-0000-000000000001 + responses: + '200': + body: + properties: + changes: + - after: + name: myExistingIdentity + type: Microsoft.ManagedIdentity/userAssignedIdentities + apiVersion: '2018-11-30' + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity + location: westus2 + tags: + myNewTag: my tag value + before: + name: myExistingIdentity + type: Microsoft.ManagedIdentity/userAssignedIdentities + apiVersion: '2018-11-30' + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity + location: westus2 + changeType: Modify + delta: + - path: tags.myNewTag + after: my tag value + propertyChangeType: Create + resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity + - after: + name: myNewIdentity + type: Microsoft.ManagedIdentity/userAssignedIdentities + apiVersion: '2018-11-30' + id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity + location: eastus + tags: + myOtherNewTag: another new tag value + changeType: Create + resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity + status: succeeded + '202': + headers: + Location: >- + /subscriptions/00000000-0000-0000-0000-000000000000/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ + x-ms-long-running-operation: true + x-ms-long-running-operation-options: + final-state-via: location + language: !Languages + default: + name: WhatIf + description: Returns changes that will be made by the deployment if executed at the scope of the resource group. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_435 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_436 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate + method: post + uri: '{$host}' + signatureParameters: + - *ref_435 + - *ref_436 + responses: + - !SchemaResponse + schema: *ref_338 + language: !Languages + default: + name: '' + description: OK - Returns the template. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: ExportTemplate + description: Exports the template used for specified deployment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_437 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group with the deployments to get. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_438 + schema: *ref_10 + implementation: Method + language: !Languages + default: + name: filter + description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_439 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to get. If null is passed, returns all deployments. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/ + method: get + uri: '{$host}' + signatureParameters: + - *ref_437 + - *ref_438 + - *ref_439 + responses: + - !SchemaResponse + schema: *ref_343 + language: !Languages + default: + name: '' + description: OK - Returns an array of deployments. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListByResourceGroup + description: Get all the deployments for a resource group. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_440 + schema: *ref_3 + implementation: Method + required: true + language: !Languages + default: + name: template + description: The template provided to calculate hash. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_440 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /providers/Microsoft.Resources/calculateTemplateHash + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: [] + responses: + - !SchemaResponse + schema: *ref_441 + language: !Languages + default: + name: '' + description: OK - Returns the hash. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Calculate template hash: + parameters: + api-version: '2021-04-01' + template: + $schema: http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview + contentVersion: 1.0.0.0 + outputs: + string: + type: string + value: myvalue + parameters: + string: + type: string + resources: [] + variables: + array: + - 1 + - 2 + - 3 + - 4 + bool: true + int: 42 + object: + object: + location: West US + vmSize: Large + string: string + responses: + '200': + body: + minifiedTemplate: >- + {"$SCHEMA":"HTTP://SCHEMAS.MANAGEMENT.AZURE.COM/DEPLOYMENTTEMPLATE?API-VERSION=2014-04-01-PREVIEW","CONTENTVERSION":"1.0.0.0","PARAMETERS":{"STRING":{"TYPE":"STRING"}},"VARIABLES":{"STRING":"STRING","INT":42,"BOOL":TRUE,"ARRAY":[1,2,3,4],"OBJECT":{"OBJECT":{"VMSIZE":"LARGE","LOCATION":"WEST + US"}}},"RESOURCES":[],"OUTPUTS":{"STRING":{"TYPE":"STRING","VALUE":"MYVALUE"}}} + templateHash: '695440707931307747' + language: !Languages + default: + name: CalculateTemplateHash + description: Calculate the hash of the given template. + protocol: !Protocols {} + language: !Languages + default: + name: Deployments + description: '' + protocol: !Protocols {} + - !OperationGroup + $key: DeploymentOperations + operations: + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_442 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_443 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_444 + schema: *ref_10 + implementation: Method + required: true + language: !Languages + default: + name: operationId + description: The ID of the operation to get. + serializedName: operationId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId} + method: get + uri: '{$host}' + signatureParameters: + - *ref_442 + - *ref_443 + - *ref_444 + responses: + - !SchemaResponse + schema: *ref_131 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment operation. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtScope + description: Gets a deployments operation. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_445 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: The resource scope. + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_446 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_447 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to return. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations + method: get + uri: '{$host}' + signatureParameters: + - *ref_445 + - *ref_446 + - *ref_447 + responses: + - !SchemaResponse + schema: *ref_448 + language: !Languages + default: + name: '' + description: OK - Return an array of deployment operations. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListAtScope + description: Gets all deployments operations for a deployment. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_449 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_450 + schema: *ref_10 + implementation: Method + required: true + language: !Languages + default: + name: operationId + description: The ID of the operation to get. + serializedName: operationId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId} + method: get + uri: '{$host}' + signatureParameters: + - *ref_449 + - *ref_450 + responses: + - !SchemaResponse + schema: *ref_131 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment operation. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtTenantScope + description: Gets a deployments operation. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_451 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_452 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to return. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Resources/deployments/{deploymentName}/operations + method: get + uri: '{$host}' + signatureParameters: + - *ref_451 + - *ref_452 + responses: + - !SchemaResponse + schema: *ref_448 + language: !Languages + default: + name: '' + description: OK - Return an array of deployment operations. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListAtTenantScope + description: Gets all deployments operations for a deployment. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_453 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_454 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_455 + schema: *ref_10 + implementation: Method + required: true + language: !Languages + default: + name: operationId + description: The ID of the operation to get. + serializedName: operationId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId} + method: get + uri: '{$host}' + signatureParameters: + - *ref_453 + - *ref_454 + - *ref_455 + responses: + - !SchemaResponse + schema: *ref_131 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment operation. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtManagementGroupScope + description: Gets a deployments operation. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_456 + schema: *ref_366 + implementation: Method + required: true + language: !Languages + default: + name: groupId + description: The management group ID. + serializedName: groupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_457 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_458 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to return. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations + method: get + uri: '{$host}' + signatureParameters: + - *ref_456 + - *ref_457 + - *ref_458 + responses: + - !SchemaResponse + schema: *ref_448 + language: !Languages + default: + name: '' + description: OK - Return an array of deployment operations. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListAtManagementGroupScope + description: Gets all deployments operations for a deployment. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_459 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_460 + schema: *ref_10 + implementation: Method + required: true + language: !Languages + default: + name: operationId + description: The ID of the operation to get. + serializedName: operationId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId} + method: get + uri: '{$host}' + signatureParameters: + - *ref_459 + - *ref_460 + responses: + - !SchemaResponse + schema: *ref_131 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment operation. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtSubscriptionScope + description: Gets a deployments operation. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_461 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_462 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to return. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations + method: get + uri: '{$host}' + signatureParameters: + - *ref_461 + - *ref_462 + responses: + - !SchemaResponse + schema: *ref_448 + language: !Languages + default: + name: '' + description: OK - Return an array of deployment operations. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListAtSubscriptionScope + description: Gets all deployments operations for a deployment. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_463 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_464 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_465 + schema: *ref_10 + implementation: Method + required: true + language: !Languages + default: + name: operationId + description: The ID of the operation to get. + serializedName: operationId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId} + method: get + uri: '{$host}' + signatureParameters: + - *ref_463 + - *ref_464 + - *ref_465 + responses: + - !SchemaResponse + schema: *ref_131 + language: !Languages + default: + name: '' + description: OK - Returns information about the deployment operation. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + language: !Languages + default: + name: GetAtResourceGroupScope + description: Gets a deployments operation. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2021-04-01' + parameters: + - *ref_314 + - !Parameter &ref_466 + schema: *ref_414 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group. The name is case insensitive. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_467 + schema: *ref_315 + implementation: Method + required: true + language: !Languages + default: + name: deploymentName + description: The name of the deployment. + serializedName: deploymentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_468 + schema: *ref_339 + implementation: Method + language: !Languages + default: + name: top + description: The number of results to return. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_316 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations + method: get + uri: '{$host}' + signatureParameters: + - *ref_466 + - *ref_467 + - *ref_468 + responses: + - !SchemaResponse + schema: *ref_448 + language: !Languages + default: + name: '' + description: OK - Return an array of deployment operations. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: List + description: Gets all deployments operations for a deployment. + paging: + nextLinkName: nextLink + protocol: !Protocols {} + language: !Languages + default: + name: DeploymentOperations + description: '' + protocol: !Protocols {} + - !OperationGroup + $key: PolicyAssignments + operations: + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_471 + schema: *ref_469 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: >- + The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource + group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_472 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyAssignmentName + description: The name of the policy assignment to delete. + serializedName: policyAssignmentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_471 + - *ref_472 + responses: + - !SchemaResponse + schema: *ref_154 + language: !Languages + default: + name: '' + description: OK - Returns information about the deleted assignment. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: No Content - the policy assignment doesn't exist. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Delete a policy assignment: + parameters: + api-version: '2020-09-01' + policyAssignmentName: EnforceNaming + scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + body: + name: EnforceNaming + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming + properties: + description: Force resource names to begin with given DeptA and end with -LC + displayName: Enforce resource naming rules + metadata: + assignedBy: Special Someone + notScopes: [] + parameters: + prefix: + value: DeptA + suffix: + value: '-LC' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + headers: {} + '204': + headers: {} + language: !Languages + default: + name: Delete + description: >- + This operation deletes a policy assignment, given its name and the scope it was created in. The scope of a policy assignment is the part of its ID preceding + '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + summary: Deletes a policy assignment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_474 + schema: *ref_469 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: >- + The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource + group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_475 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyAssignmentName + description: The name of the policy assignment. + serializedName: policyAssignmentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_473 + schema: *ref_154 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters for the policy assignment. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_473 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_474 + - *ref_475 + responses: + - !SchemaResponse + schema: *ref_154 + language: !Languages + default: + name: '' + description: Created - Returns information about the new policy assignment. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Create or update a policy assignment: + parameters: + api-version: '2020-09-01' + parameters: + properties: + description: Force resource names to begin with given DeptA and end with -LC + displayName: Enforce resource naming rules + metadata: + assignedBy: Special Someone + nonComplianceMessages: + - message: Resource names must start with 'DeptA' and end with '-LC'. + parameters: + prefix: + value: DeptA + suffix: + value: '-LC' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + policyAssignmentName: EnforceNaming + scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '201': + body: + name: EnforceNaming + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming + properties: + description: Force resource names to begin with given DeptA and end with -LC + displayName: Enforce resource naming rules + enforcementMode: Default + metadata: + assignedBy: Special Someone + nonComplianceMessages: + - message: Resource names must start with 'DeptA' and end with '-LC'. + notScopes: [] + parameters: + prefix: + value: DeptA + suffix: + value: '-LC' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + headers: {} + Create or update a policy assignment with a managed identity: + parameters: + api-version: '2020-09-01' + parameters: + identity: + type: SystemAssigned + location: eastus + properties: + description: Force resource names to begin with given DeptA and end with -LC + displayName: Enforce resource naming rules + enforcementMode: Default + metadata: + assignedBy: Foo Bar + parameters: + prefix: + value: DeptA + suffix: + value: '-LC' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + policyAssignmentName: EnforceNaming + scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '201': + body: + name: EnforceNaming + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming + identity: + type: SystemAssigned + principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a + tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 + location: eastus + properties: + description: Force resource names to begin with given DeptA and end with -LC + displayName: Enforce resource naming rules + enforcementMode: Default + metadata: + assignedBy: Special Someone + notScopes: [] + parameters: + prefix: + value: DeptA + suffix: + value: '-LC' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + headers: {} + Create or update a policy assignment with multiple non-compliance messages: + parameters: + api-version: '2020-09-01' + parameters: + properties: + displayName: Enforce security policies + nonComplianceMessages: + - message: Resources must comply with all internal security policies. See for more info. + - message: Resource names must start with 'DeptA' and end with '-LC'. + policyDefinitionReferenceId: '10420126870854049575' + - message: Storage accounts must have firewall rules configured. + policyDefinitionReferenceId: '8572513655450389710' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/securityInitiative + policyAssignmentName: securityInitAssignment + scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '201': + body: + name: securityInitAssignment + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/securityInitAssignment + properties: + displayName: Enforce security policies + enforcementMode: Default + metadata: + assignedBy: User 1 + nonComplianceMessages: + - message: Resources must comply with all internal security policies. See for more info. + - message: Resource names must start with 'DeptA' and end with '-LC'. + policyDefinitionReferenceId: '10420126870854049575' + - message: Storage accounts must have firewall rules configured. + policyDefinitionReferenceId: '8572513655450389710' + notScopes: [] + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/securityInitiative + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + headers: {} + Create or update a policy assignment without enforcing policy effect during resource creation or update.: + parameters: + api-version: '2020-09-01' + parameters: + properties: + description: Force resource names to begin with given DeptA and end with -LC + displayName: Enforce resource naming rules + enforcementMode: DoNotEnforce + metadata: + assignedBy: Special Someone + parameters: + prefix: + value: DeptA + suffix: + value: '-LC' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + policyAssignmentName: EnforceNaming + scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '201': + body: + name: EnforceNaming + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming + properties: + description: Force resource names to begin with given DeptA and end with -LC + displayName: Enforce resource naming rules + enforcementMode: DoNotEnforce + metadata: + assignedBy: Special Someone + notScopes: [] + parameters: + prefix: + value: DeptA + suffix: + value: '-LC' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + headers: {} + language: !Languages + default: + name: Create + description: ' This operation creates or updates a policy assignment with the given scope and name. Policy assignments apply to all resources contained within their scope. For example, when you assign a policy at resource group scope, that policy applies to all resources in the group.' + summary: Creates or updates a policy assignment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_476 + schema: *ref_469 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: scope + description: >- + The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource + group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + serializedName: scope + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_477 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyAssignmentName + description: The name of the policy assignment to get. + serializedName: policyAssignmentName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_476 + - *ref_477 + responses: + - !SchemaResponse + schema: *ref_154 + language: !Languages + default: + name: '' + description: OK - Returns information about the policy assignment. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Retrieve a policy assignment: + parameters: + api-version: '2020-09-01' + policyAssignmentName: EnforceNaming + scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + body: + name: EnforceNaming + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming + properties: + description: Force resource names to begin with given DeptA and end with -LC + displayName: Enforce resource naming rules + enforcementMode: Default + metadata: + assignedBy: Special Someone + notScopes: [] + parameters: + prefix: + value: DeptA + suffix: + value: '-LC' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + headers: {} + Retrieve a policy assignment with a managed identity: + parameters: + api-version: '2020-09-01' + policyAssignmentName: EnforceNaming + scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + body: + name: EnforceNaming + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming + identity: + type: SystemAssigned + principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a + tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 + location: westus + properties: + description: Force resource names to begin with given DeptA and end with -LC + displayName: Enforce resource naming rules + enforcementMode: Default + metadata: + assignedBy: Special Someone + notScopes: [] + parameters: + prefix: + value: DeptA + suffix: + value: '-LC' + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + headers: {} + language: !Languages + default: + name: Get + description: This operation retrieves a single policy assignment, given its name and the scope it was created at. + summary: Retrieves a policy assignment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_480 + schema: *ref_478 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group that contains policy assignments. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_481 + schema: *ref_469 + implementation: Method + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: filter + description: >- + The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atScope() is + provided, the returned list only includes all policy assignments that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If + $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the given scope. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments + of the policy definition whose id is {value}. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_482 + schema: *ref_479 + implementation: Method + language: !Languages + default: + name: top + description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments + method: get + uri: '{$host}' + signatureParameters: + - *ref_480 + - *ref_481 + - *ref_482 + responses: + - !SchemaResponse + schema: *ref_483 + language: !Languages + default: + name: '' + description: OK - Returns an array of policy assignments. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + List policy assignments that apply to a resource group: + parameters: + $filter: atScope() + api-version: '2020-09-01' + resourceGroupName: TestResourceGroup + subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + body: + value: + - name: TestCostManagement + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestCostManagement + identity: + type: SystemAssigned + principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a + tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 + location: eastus + properties: + description: Minimize the risk of accidental cost overruns + displayName: Storage Cost Management + metadata: + category: Cost Management + notScopes: [] + parameters: + allowedSkus: + value: Standard_A1 + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/storageSkus + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup + - name: TestTagEnforcement + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestTagEnforcement + properties: + description: Ensure a given tag key and value are present on all resources + displayName: Enforces a tag key and value + notScopes: [] + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup + headers: {} + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListForResourceGroup + description: >- + This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' + or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as + well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered + list except those applied to resources contained within the resource group. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource group. If + $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource group. + paging: + nextLinkName: nextLink + summary: Retrieves all policy assignments that apply to a resource group. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_484 + schema: *ref_478 + implementation: Method + required: true + language: !Languages + default: + name: resourceGroupName + description: The name of the resource group containing the resource. + serializedName: resourceGroupName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_485 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: resourceProviderNamespace + description: The namespace of the resource provider. For example, the namespace of a virtual machine is Microsoft.Compute (from Microsoft.Compute/virtualMachines) + serializedName: resourceProviderNamespace + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_486 + schema: *ref_469 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: parentResourcePath + description: The parent resource path. Use empty string if there is none. + serializedName: parentResourcePath + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_487 + schema: *ref_469 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: resourceType + description: The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites). + serializedName: resourceType + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_488 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: resourceName + description: The name of the resource. + serializedName: resourceName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_489 + schema: *ref_469 + implementation: Method + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: filter + description: >- + The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atScope() is + provided, the returned list only includes all policy assignments that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If + $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the given scope. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments + of the policy definition whose id is {value}. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_490 + schema: *ref_479 + implementation: Method + language: !Languages + default: + name: top + description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments + method: get + uri: '{$host}' + signatureParameters: + - *ref_484 + - *ref_485 + - *ref_486 + - *ref_487 + - *ref_488 + - *ref_489 + - *ref_490 + responses: + - !SchemaResponse + schema: *ref_483 + language: !Languages + default: + name: '' + description: OK - Returns an array of policy assignments. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + List all policy assignments that apply to a resource: + parameters: + api-version: '2020-09-01' + parentResourcePath: virtualMachines/MyTestVm + resourceGroupName: TestResourceGroup + resourceName: MyTestComputer.cloudapp.net + resourceProviderNamespace: Microsoft.Compute + resourceType: domainNames + subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + body: + value: + - name: TestCostManagement + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestCostManagement + identity: + type: SystemAssigned + principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a + tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 + location: eastus + properties: + description: Minimize the risk of accidental cost overruns + displayName: VM Cost Management + metadata: + category: Cost Management + notScopes: [] + parameters: + allowedSkus: + value: Standard_A1 + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/vmSkus + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup + - name: TestTagEnforcement + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestTagEnforcement + properties: + description: Ensure a given tag key and value are present on all resources + displayName: Enforces a tag key and value + notScopes: [] + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup + headers: {} + x-ms-odata: '#/components/schemas/PolicyAssignment' + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListForResource + description: >- + This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', + 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing + scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered + list except those applied to resources contained within the resource. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource level. If $filter=policyDefinitionId eq + '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource. Three parameters plus the resource name are used to identify a specific + resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} + == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS + name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient + alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == + 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + paging: + nextLinkName: nextLink + summary: Retrieves all policy assignments that apply to a resource. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_491 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: managementGroupId + description: The ID of the management group. + serializedName: managementGroupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_492 + schema: *ref_469 + implementation: Method + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: filter + description: >- + The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atScope() is + provided, the returned list only includes all policy assignments that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If + $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the given scope. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments + of the policy definition whose id is {value}. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_493 + schema: *ref_479 + implementation: Method + language: !Languages + default: + name: top + description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyAssignments + method: get + uri: '{$host}' + signatureParameters: + - *ref_491 + - *ref_492 + - *ref_493 + responses: + - !SchemaResponse + schema: *ref_483 + language: !Languages + default: + name: '' + description: OK - Returns an array of policy assignments. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + List policy assignments that apply to a management group: + parameters: + $filter: atScope() + api-version: '2020-09-01' + managementGroupId: TestManagementGroup + responses: + '200': + body: + value: + - name: TestCostManagement + type: Microsoft.Authorization/policyAssignments + id: /providers/Microsoft.Management/managementGroups/TestManagementGroup/providers/Microsoft.Authorization/policyAssignments/TestCostManagement + identity: + type: SystemAssigned + principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a + tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 + location: eastus + properties: + description: Minimize the risk of accidental cost overruns + displayName: Storage Cost Management + metadata: + category: Cost Management + notScopes: [] + parameters: + allowedSkus: + value: Standard_A1 + policyDefinitionId: /providers/Microsoft.Management/managementGroups/TestManagementGroup/providers/Microsoft.Authorization/policyDefinitions/storageSkus + scope: /providers/Microsoft.Management/managementGroups/TestManagementGroup + - name: TestTagEnforcement + type: Microsoft.Authorization/policyAssignments + id: /providers/Microsoft.Management/managementGroups/TestManagementGroup/providers/Microsoft.Authorization/policyAssignments/TestTagEnforcement + properties: + description: Ensure a given tag key and value are present on all resources + displayName: Enforces a tag key and value + notScopes: [] + policyDefinitionId: /providers/Microsoft.Management/managementGroups/TestManagementGroup/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue + scope: /providers/Microsoft.Management/managementGroups/TestManagementGroup + headers: {} + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListForManagementGroup + description: >- + This operation retrieves the list of all policy assignments applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + $filter=atScope() is provided, the returned list includes all policy assignments that are assigned to the management group or the management group's ancestors. If $filter=atExactScope() is provided, the returned list only + includes all policy assignments that at the management group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to + the management group. + paging: + nextLinkName: nextLink + summary: Retrieves all policy assignments that apply to a management group. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_494 + schema: *ref_469 + implementation: Method + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: filter + description: >- + The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atScope() is + provided, the returned list only includes all policy assignments that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If + $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the given scope. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments + of the policy definition whose id is {value}. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_495 + schema: *ref_479 + implementation: Method + language: !Languages + default: + name: top + description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments + method: get + uri: '{$host}' + signatureParameters: + - *ref_494 + - *ref_495 + responses: + - !SchemaResponse + schema: *ref_483 + language: !Languages + default: + name: '' + description: OK - Returns an array of policy assignments. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + List policy assignments that apply to a subscription: + parameters: + $filter: atScope() + api-version: '2020-09-01' + subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + body: + value: + - name: CostManagement + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/CostManagement + identity: + type: SystemAssigned + principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a + tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 + location: eastus + properties: + description: Minimize the risk of accidental cost overruns + displayName: Storage Cost Management + metadata: + category: Cost Management + notScopes: [] + parameters: + allowedSkus: + value: Standard_A1 + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/storageSkus + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + - name: TagEnforcement + type: Microsoft.Authorization/policyAssignments + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/TagEnforcement + properties: + description: Ensure a given tag key and value are present on all resources + displayName: Enforces a tag key and value + notScopes: [] + policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue + scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + headers: {} + x-ms-odata: '#/components/schemas/PolicyAssignment' + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: List + description: >- + This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq + '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, + as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered + list except those applied to objects contained within the subscription. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the subscription. If $filter=policyDefinitionId eq + '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}. + paging: + nextLinkName: nextLink + summary: Retrieves all policy assignments that apply to a subscription. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_496 + schema: *ref_469 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: policyAssignmentId + description: The ID of the policy assignment to delete. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + serializedName: policyAssignmentId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{policyAssignmentId} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_496 + responses: + - !SchemaResponse + schema: *ref_154 + language: !Languages + default: + name: '' + description: OK - Returns information about the policy assignment. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: No Content - the policy assignment doesn't exist. + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Delete a policy assignment by ID: + parameters: + api-version: '2020-09-01' + policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + responses: + '200': + body: + name: LowCostStorage + type: Microsoft.Authorization/policyAssignments + id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + properties: + description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created + displayName: Enforce storage account SKU + metadata: + assignedBy: Cheapskate Boss + notScopes: [] + parameters: + listOfAllowedSKUs: + value: + - Standard_GRS + - Standard_LRS + policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + headers: {} + '204': + headers: {} + language: !Languages + default: + name: DeleteById + description: >- + This operation deletes the policy with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid formats for {scope} are: + '/providers/Microsoft.Management/managementGroups/{managementGroup}' (management group), '/subscriptions/{subscriptionId}' (subscription), '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' (resource group), + or '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' (resource). + summary: Deletes a policy assignment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_498 + schema: *ref_469 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: policyAssignmentId + description: The ID of the policy assignment to create. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + serializedName: policyAssignmentId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_497 + schema: *ref_154 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: Parameters for policy assignment. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_497 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /{policyAssignmentId} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_498 + responses: + - !SchemaResponse + schema: *ref_154 + language: !Languages + default: + name: '' + description: Created - Returns information about the policy assignment. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Create or update policy assignment by ID: + parameters: + api-version: '2020-09-01' + parameters: + properties: + description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created + displayName: Enforce storage account SKU + enforcementMode: Default + metadata: + assignedBy: Cheapskate Boss + parameters: + listOfAllowedSKUs: + value: + - Standard_GRS + - Standard_LRS + policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + responses: + '201': + body: + name: LowCostStorage + type: Microsoft.Authorization/policyAssignments + id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + properties: + description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created + displayName: Enforce storage account SKU + enforcementMode: Default + metadata: + assignedBy: Cheapskate Boss + notScopes: [] + parameters: + listOfAllowedSKUs: + value: + - Standard_GRS + - Standard_LRS + policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + headers: {} + Create or update policy assignment with a managed identity by ID: + parameters: + api-version: '2020-09-01' + parameters: + identity: + type: SystemAssigned + location: eastus + properties: + description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created + displayName: Enforce storage account SKU + enforcementMode: Default + metadata: + assignedBy: Cheapskate Boss + parameters: + listOfAllowedSKUs: + value: + - Standard_GRS + - Standard_LRS + policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + responses: + '201': + body: + name: LowCostStorage + type: Microsoft.Authorization/policyAssignments + id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + identity: + type: SystemAssigned + principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a + tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 + location: eastus + properties: + description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created + displayName: Enforce storage account SKU + enforcementMode: Default + metadata: + assignedBy: Cheapskate Boss + notScopes: [] + parameters: + listOfAllowedSKUs: + value: + - Standard_GRS + - Standard_LRS + policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + headers: {} + language: !Languages + default: + name: CreateById + description: >- + This operation creates or updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For example, when you assign a policy to a resource group that + policy applies to all resources in the group. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: + '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + summary: Creates or updates a policy assignment. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_499 + schema: *ref_469 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: policyAssignmentId + description: The ID of the policy assignment to get. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + serializedName: policyAssignmentId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /{policyAssignmentId} + method: get + uri: '{$host}' + signatureParameters: + - *ref_499 + responses: + - !SchemaResponse + schema: *ref_154 + language: !Languages + default: + name: '' + description: OK - Returns information about the policy assignment. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Retrieve a policy assignment by ID: + parameters: + api-version: '2020-09-01' + policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + responses: + '200': + body: + name: LowCostStorage + type: Microsoft.Authorization/policyAssignments + id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + properties: + description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created + displayName: Enforce storage account SKU + enforcementMode: Default + metadata: + assignedBy: Cheapskate Boss + notScopes: [] + parameters: + listOfAllowedSKUs: + value: + - Standard_GRS + - Standard_LRS + policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + headers: {} + Retrieve a policy assignment with a managed identity by ID: + parameters: + api-version: '2020-09-01' + policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + responses: + '200': + body: + name: LowCostStorage + type: Microsoft.Authorization/policyAssignments + id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage + identity: + type: SystemAssigned + principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a + tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 + location: westus + properties: + description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created + displayName: Enforce storage account SKU + enforcementMode: Default + metadata: + assignedBy: Cheapskate Boss + notScopes: [] + parameters: + listOfAllowedSKUs: + value: + - Standard_GRS + - Standard_LRS + policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + headers: {} + language: !Languages + default: + name: GetById + description: >- + The operation retrieves the policy assignment with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group + (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + summary: Retrieves the policy assignment with the given ID. + protocol: !Protocols {} + language: !Languages + default: + name: PolicyAssignments + description: '' + protocol: !Protocols {} + - !OperationGroup + $key: PolicyDefinitions + operations: + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_501 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyDefinitionName + description: The name of the policy definition to create. + serializedName: policyDefinitionName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_500 + schema: *ref_166 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: The policy definition properties. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_500 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_501 + responses: + - !SchemaResponse + schema: *ref_166 + language: !Languages + default: + name: '' + description: Created - Returns information about the policy definition. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Create or update a policy definition: + parameters: + api-version: '2020-09-01' + parameters: + properties: + description: Force resource names to begin with given 'prefix' and/or end with given 'suffix' + displayName: Enforce resource naming convention + metadata: + category: Naming + mode: All + parameters: + prefix: + type: String + metadata: + description: Resource name prefix + displayName: Prefix + suffix: + type: String + metadata: + description: Resource name suffix + displayName: Suffix + policyRule: + if: + not: + field: name + like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' + then: + effect: deny + policyDefinitionName: ResourceNaming + subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '201': + body: + name: ResourceNaming + type: Microsoft.Authorization/policyDefinitions + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + properties: + description: Force resource names to begin with 'prefix' and end with 'suffix' + displayName: Naming Convention + metadata: + category: Naming + mode: All + parameters: + prefix: + type: String + metadata: + description: Resource name prefix + displayName: Prefix + suffix: + type: String + metadata: + description: Resource name suffix + displayName: Suffix + policyRule: + if: + not: + field: name + like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' + then: + effect: deny + policyType: Custom + headers: {} + Create or update a policy definition with advanced parameters: + parameters: + api-version: '2020-09-01' + parameters: + properties: + description: Audit enabling of logs and retain them up to a year. This enables recreation of activity trails for investigation purposes when a security incident occurs or your network is compromised + displayName: Event Hubs should have diagnostic logging enabled + metadata: + category: Event Hub + mode: Indexed + parameters: + requiredRetentionDays: + type: Integer + allowedValues: + - 0 + - 30 + - 90 + - 180 + - 365 + defaultValue: 365 + metadata: + description: The required diagnostic logs retention in days + displayName: Required retention (days) + policyRule: + if: + equals: Microsoft.EventHub/namespaces + field: type + then: + effect: AuditIfNotExists + details: + type: Microsoft.Insights/diagnosticSettings + existenceCondition: + allOf: + - equals: 'true' + field: Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled + - equals: '[parameters(''requiredRetentionDays'')]' + field: Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days + policyDefinitionName: EventHubDiagnosticLogs + subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '201': + body: + name: ResourceNaming + type: Microsoft.Authorization/policyDefinitions + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + properties: + description: Audit enabling of logs and retain them up to a year. This enables recreation of activity trails for investigation purposes when a security incident occurs or your network is compromised + displayName: Event Hubs should have diagnostic logging enabled + metadata: + category: Event Hub + mode: Indexed + parameters: + requiredRetentionDays: + type: Integer + allowedValues: + - 0 + - 30 + - 90 + - 180 + - 365 + defaultValue: 365 + metadata: + description: The required diagnostic logs retention in days + displayName: Required retention (days) + policyRule: + if: + equals: Microsoft.EventHub/namespaces + field: type + then: + effect: AuditIfNotExists + details: + type: Microsoft.Insights/diagnosticSettings + existenceCondition: + allOf: + - equals: 'true' + field: Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled + - equals: '[parameters(''requiredRetentionDays'')]' + field: Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days + headers: {} + language: !Languages + default: + name: CreateOrUpdate + description: This operation creates or updates a policy definition in the given subscription with the given name. + summary: Creates or updates a policy definition in a subscription. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_502 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyDefinitionName + description: The name of the policy definition to delete. + serializedName: policyDefinitionName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_502 + responses: + - !Response + language: !Languages + default: + name: '' + description: OK + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Delete a policy definition: + parameters: + api-version: '2020-09-01' + policyDefinitionName: ResourceNaming + subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + headers: {} + '204': + headers: {} + language: !Languages + default: + name: Delete + description: This operation deletes the policy definition in the given subscription with the given name. + summary: Deletes a policy definition in a subscription. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_503 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyDefinitionName + description: The name of the policy definition to get. + serializedName: policyDefinitionName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_503 + responses: + - !SchemaResponse + schema: *ref_166 + language: !Languages + default: + name: '' + description: OK - Returns information about the policy definition. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Retrieve a policy definition: + parameters: + api-version: '2020-09-01' + policyDefinitionName: ResourceNaming + subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + body: + name: ResourceNaming + type: Microsoft.Authorization/policyDefinitions + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + properties: + description: Force resource names to begin with 'prefix' and end with 'suffix' + displayName: Naming Convention + metadata: + category: Naming + mode: All + parameters: + prefix: + type: String + metadata: + description: Resource name prefix + displayName: Prefix + suffix: + type: String + metadata: + description: Resource name suffix + displayName: Suffix + policyRule: + if: + not: + field: name + like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' + then: + effect: deny + policyType: Custom + headers: {} + language: !Languages + default: + name: Get + description: This operation retrieves the policy definition in the given subscription with the given name. + summary: Retrieves a policy definition in a subscription. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_504 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyDefinitionName + description: The name of the built-in policy definition to get. + serializedName: policyDefinitionName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_504 + responses: + - !SchemaResponse + schema: *ref_166 + language: !Languages + default: + name: '' + description: OK - Returns information about the built-in policy definition. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Retrieve a built-in policy definition: + parameters: + api-version: '2020-09-01' + policyDefinitionName: 7433c107-6db4-4ad1-b57a-a76dce0154a1 + subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + body: + name: 7433c107-6db4-4ad1-b57a-a76dce0154a1 + type: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + properties: + description: This policy enables you to specify a set of storage account SKUs that your organization can deploy. + displayName: Allowed storage account SKUs + mode: All + parameters: + listOfAllowedSKUs: + type: Array + metadata: + description: The list of SKUs that can be specified for storage accounts. + displayName: Allowed SKUs + strongType: StorageSKUs + policyRule: + if: + allOf: + - equals: Microsoft.Storage/storageAccounts + field: type + - not: + field: Microsoft.Storage/storageAccounts/sku.name + in: '[parameters(''listOfAllowedSKUs'')]' + then: + effect: Deny + policyType: BuiltIn + headers: {} + language: !Languages + default: + name: GetBuiltIn + description: This operation retrieves the built-in policy definition with the given name. + summary: Retrieves a built-in policy definition. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_506 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyDefinitionName + description: The name of the policy definition to create. + serializedName: policyDefinitionName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_507 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: managementGroupId + description: The ID of the management group. + serializedName: managementGroupId + protocol: !Protocols + http: !HttpParameter + in: path + requests: + - !Request + parameters: + - !Parameter + schema: *ref_323 + implementation: Method + origin: modelerfour:synthesized/content-type + required: true + language: !Languages + default: + name: contentType + description: Body Parameter content-type + serializedName: Content-Type + protocol: !Protocols + http: !HttpParameter + in: header + - !Parameter &ref_505 + schema: *ref_166 + implementation: Method + required: true + language: !Languages + default: + name: parameters + description: The policy definition properties. + protocol: !Protocols + http: !HttpParameter + in: body + style: json + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: + - *ref_505 + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpWithBodyRequest + path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_506 + - *ref_507 + responses: + - !SchemaResponse + schema: *ref_166 + language: !Languages + default: + name: '' + description: Created - Returns information about the policy definition. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Create or update a policy definition at management group level: + parameters: + api-version: '2020-09-01' + managementGroupId: MyManagementGroup + parameters: + properties: + description: Force resource names to begin with given 'prefix' and/or end with given 'suffix' + displayName: Enforce resource naming convention + metadata: + category: Naming + mode: All + parameters: + prefix: + type: String + metadata: + description: Resource name prefix + displayName: Prefix + suffix: + type: String + metadata: + description: Resource name suffix + displayName: Suffix + policyRule: + if: + not: + field: name + like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' + then: + effect: deny + policyDefinitionName: ResourceNaming + responses: + '201': + body: + name: ResourceNaming + type: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + properties: + description: Force resource names to begin with 'prefix' and end with 'suffix' + displayName: Naming Convention + metadata: + category: Naming + mode: All + parameters: + prefix: + type: String + metadata: + description: Resource name prefix + displayName: Prefix + suffix: + type: String + metadata: + description: Resource name suffix + displayName: Suffix + policyRule: + if: + not: + field: name + like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' + then: + effect: deny + policyType: Custom + headers: {} + language: !Languages + default: + name: CreateOrUpdateAtManagementGroup + description: This operation creates or updates a policy definition in the given management group with the given name. + summary: Creates or updates a policy definition in a management group. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_508 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyDefinitionName + description: The name of the policy definition to delete. + serializedName: policyDefinitionName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_509 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: managementGroupId + description: The ID of the management group. + serializedName: managementGroupId + protocol: !Protocols + http: !HttpParameter + in: path + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} + method: delete + uri: '{$host}' + signatureParameters: + - *ref_508 + - *ref_509 + responses: + - !Response + language: !Languages + default: + name: '' + description: OK + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '200' + - !Response + language: !Languages + default: + name: '' + description: No Content + protocol: !Protocols + http: !HttpResponse + statusCodes: + - '204' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Delete a policy definition at management group level: + parameters: + api-version: '2020-09-01' + managementGroupId: MyManagementGroup + policyDefinitionName: ResourceNaming + responses: + '200': + headers: {} + '204': + headers: {} + language: !Languages + default: + name: DeleteAtManagementGroup + description: This operation deletes the policy definition in the given management group with the given name. + summary: Deletes a policy definition in a management group. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter &ref_510 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: policyDefinitionName + description: The name of the policy definition to get. + serializedName: policyDefinitionName + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_511 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: managementGroupId + description: The ID of the management group. + serializedName: managementGroupId + protocol: !Protocols + http: !HttpParameter + in: path + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} + method: get + uri: '{$host}' + signatureParameters: + - *ref_510 + - *ref_511 + responses: + - !SchemaResponse + schema: *ref_166 + language: !Languages + default: + name: '' + description: OK - Returns information about the policy definition. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + Retrieve a policy definition at management group level: + parameters: + api-version: '2020-09-01' + managementGroupId: MyManagementGroup + policyDefinitionName: ResourceNaming + responses: + '200': + body: + name: ResourceNaming + type: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + properties: + description: Force resource names to begin with 'prefix' and end with 'suffix' + displayName: Naming Convention + metadata: + category: Naming + mode: All + parameters: + prefix: + type: String + metadata: + description: Resource name prefix + displayName: Prefix + suffix: + type: String + metadata: + description: Resource name suffix + displayName: Suffix + policyRule: + if: + not: + field: name + like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' + then: + effect: deny + policyType: Custom + headers: {} + language: !Languages + default: + name: GetAtManagementGroup + description: This operation retrieves the policy definition in the given management group with the given name. + summary: Retrieve a policy definition in a management group. + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - *ref_393 + - !Parameter &ref_512 + schema: *ref_469 + implementation: Method + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: filter + description: >- + The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is + provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the + {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_513 + schema: *ref_479 + implementation: Method + language: !Languages + default: + name: top + description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions + method: get + uri: '{$host}' + signatureParameters: + - *ref_512 + - *ref_513 + responses: + - !SchemaResponse + schema: *ref_514 + language: !Languages + default: + name: '' + description: OK - Returns an array of policy definitions. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + List policy definitions by subscription: + parameters: + api-version: '2020-09-01' + subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 + responses: + '200': + body: + value: + - name: 7433c107-6db4-4ad1-b57a-a76dce0154a1 + type: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + properties: + description: This policy enables you to specify a set of storage account SKUs that your organization can deploy. + displayName: Allowed storage account SKUs + mode: All + parameters: + listOfAllowedSKUs: + type: Array + metadata: + description: The list of SKUs that can be specified for storage accounts. + displayName: Allowed SKUs + strongType: StorageSKUs + policyRule: + if: + allOf: + - equals: Microsoft.Storage/storageAccounts + field: type + - not: + field: Microsoft.Storage/storageAccounts/sku.name + in: '[parameters(''listOfAllowedSKUs'')]' + then: + effect: Deny + policyType: BuiltIn + - name: ResourceNaming + type: Microsoft.Authorization/policyDefinitions + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + properties: + description: Force resource names to begin with 'prefix' and end with 'suffix' + displayName: Naming Convention + metadata: + category: Naming + mode: All + parameters: + prefix: + type: String + metadata: + description: Resource name prefix + displayName: Prefix + suffix: + type: String + metadata: + description: Resource name suffix + displayName: Suffix + policyRule: + if: + not: + field: name + like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' + then: + effect: deny + policyType: Custom + - name: AuditSoonToExpireCerts + type: Microsoft.Authorization/policyDefinitions + id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/AuditSoonToExpireCerts + properties: + description: Audit certificates that are stored in Azure Key Vault, that expire within 'X' number of days. + displayName: Audit KeyVault certificates that expire within specified number of days + metadata: + category: KeyVault DataPlane + mode: Microsoft.KeyVault.Data + parameters: + daysToExpire: + type: Integer + metadata: + description: The number of days for a certificate to expire. + displayName: Days to expire + policyRule: + if: + field: Microsoft.KeyVault.Data/vaults/certificates/attributes/expiresOn + lessOrEquals: '[addDays(utcNow(), parameters(''daysToExpire''))]' + then: + effect: audit + policyType: Custom + headers: {} + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: List + description: >- + This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. + If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If + $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions + whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match + the {value}. + paging: + nextLinkName: nextLink + summary: Retrieves policy definitions in a subscription + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_515 + schema: *ref_469 + implementation: Method + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: filter + description: >- + The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is + provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the + {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_516 + schema: *ref_479 + implementation: Method + language: !Languages + default: + name: top + description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Authorization/policyDefinitions + method: get + uri: '{$host}' + signatureParameters: + - *ref_515 + - *ref_516 + responses: + - !SchemaResponse + schema: *ref_514 + language: !Languages + default: + name: '' + description: OK - Returns an array of built-in policy definitions. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + List built-in policy definitions: + parameters: + api-version: '2020-09-01' + responses: + '200': + body: + value: + - name: 06a78e20-9358-41c9-923c-fb736d382a12 + type: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a12 + properties: + description: Audit DB level audit setting for SQL databases + displayName: Audit SQL DB Level Audit Setting + mode: All + parameters: + setting: + type: String + allowedValues: + - enabled + - disabled + metadata: + displayName: Audit Setting + policyRule: + if: + equals: Microsoft.Sql/servers/databases + field: type + then: + effect: AuditIfNotExists + details: + name: default + type: Microsoft.Sql/servers/databases/auditingSettings + existenceCondition: + allOf: + - equals: '[parameters(''setting'')]' + field: Microsoft.Sql/auditingSettings.state + policyType: BuiltIn + - name: 7433c107-6db4-4ad1-b57a-a76dce0154a1 + type: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + properties: + description: This policy enables you to specify a set of storage account SKUs that your organization can deploy. + displayName: Allowed storage account SKUs + mode: All + parameters: + listOfAllowedSKUs: + type: Array + metadata: + description: The list of SKUs that can be specified for storage accounts. + displayName: Allowed SKUs + strongType: StorageSKUs + policyRule: + if: + allOf: + - equals: Microsoft.Storage/storageAccounts + field: type + - not: + field: Microsoft.Storage/storageAccounts/sku.name + in: '[parameters(''listOfAllowedSKUs'')]' + then: + effect: Deny + policyType: Static + - name: abeed54a-73c5-441d-8a8c-6b5e7a0c299e + type: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Authorization/policyDefinitions/abeed54a-73c5-441d-8a8c-6b5e7a0c299e + properties: + description: Audit certificates that are stored in Azure Key Vault, that expire within 'X' number of days. + displayName: Audit KeyVault certificates that expire within specified number of days + metadata: + category: KeyVault DataPlane + mode: Microsoft.KeyVault.Data + parameters: + daysToExpire: + type: Integer + metadata: + description: The number of days for a certificate to expire. + displayName: Days to expire + policyRule: + if: + field: Microsoft.KeyVault.Data/vaults/certificates/attributes/expiresOn + lessOrEquals: '[addDays(utcNow(), parameters(''daysToExpire''))]' + then: + effect: audit + policyType: BuiltIn + headers: {} + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListBuiltIn + description: >- + This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions + whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose + category match the {value}. + paging: + nextLinkName: nextLink + summary: Retrieve built-in policy definitions + protocol: !Protocols {} + - !Operation + apiVersions: + - !ApiVersion + version: '2020-09-01' + parameters: + - *ref_314 + - !Parameter + schema: *ref_470 + implementation: Method + origin: modelerfour:synthesized/api-version + required: true + language: !Languages + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_517 + schema: *ref_469 + implementation: Method + required: true + language: !Languages + default: + name: managementGroupId + description: The ID of the management group. + serializedName: managementGroupId + protocol: !Protocols + http: !HttpParameter + in: path + - !Parameter &ref_518 + schema: *ref_469 + implementation: Method + extensions: + x-ms-skip-url-encoding: true + language: !Languages + default: + name: filter + description: >- + The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is + provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the + {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. + serializedName: $filter + protocol: !Protocols + http: !HttpParameter + in: query + - !Parameter &ref_519 + schema: *ref_479 + implementation: Method + language: !Languages + default: + name: top + description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. + serializedName: $top + protocol: !Protocols + http: !HttpParameter + in: query + requests: + - !Request + parameters: + - !Parameter + schema: *ref_317 + implementation: Method + origin: modelerfour:synthesized/accept + required: true + language: !Languages + default: + name: accept + description: Accept header + serializedName: Accept + protocol: !Protocols + http: !HttpParameter + in: header + signatureParameters: [] + language: !Languages + default: + name: '' + description: '' + protocol: !Protocols + http: !HttpRequest + path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions + method: get + uri: '{$host}' + signatureParameters: + - *ref_517 + - *ref_518 + - *ref_519 + responses: + - !SchemaResponse + schema: *ref_514 + language: !Languages + default: + name: '' + description: OK - Returns an array of policy definitions. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - !SchemaResponse + schema: *ref_320 + language: !Languages + default: + name: '' + description: Error response describing why the operation failed. + protocol: !Protocols + http: !HttpResponse + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + List policy definitions by management group: + parameters: + api-version: '2020-09-01' + managementGroupId: MyManagementGroup + responses: + '200': + body: + value: + - name: 7433c107-6db4-4ad1-b57a-a76dce0154a1 + type: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 + properties: + description: This policy enables you to specify a set of storage account SKUs that your organization can deploy. + displayName: Allowed storage account SKUs + mode: All + parameters: + listOfAllowedSKUs: + type: Array + metadata: + description: The list of SKUs that can be specified for storage accounts. + displayName: Allowed SKUs + strongType: StorageSKUs + policyRule: + if: + allOf: + - equals: Microsoft.Storage/storageAccounts + field: type + - not: + field: Microsoft.Storage/storageAccounts/sku.name + in: '[parameters(''listOfAllowedSKUs'')]' + then: + effect: Deny + policyType: BuiltIn + - name: ResourceNaming + type: Microsoft.Authorization/policyDefinitions + id: /providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming + properties: + description: Force resource names to begin with 'prefix' and end with 'suffix' + displayName: Naming Convention + metadata: + category: Naming + mode: All + parameters: + prefix: + type: String + metadata: + description: Resource name prefix + displayName: Prefix + suffix: + type: String + metadata: + description: Resource name suffix + displayName: Suffix + policyRule: + if: + not: + field: name + like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' + then: + effect: deny + policyType: Custom + headers: {} + x-ms-pageable: + nextLinkName: nextLink + language: !Languages + default: + name: ListByManagementGroup + description: >- + This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management + group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all + policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions + whose category match the {value}. + paging: + nextLinkName: nextLink + summary: Retrieve policy definitions in a management group + protocol: !Protocols {} + language: !Languages + default: + name: PolicyDefinitions + description: '' + protocol: !Protocols {} +security: !Security + authenticationRequired: true + schemes: + - !AADTokenSecurityScheme + type: AADToken + scopes: + - https://management.azure.com/.default +language: !Languages + default: + name: ResourceManagementClient + description: '' +protocol: !Protocols + http: !HttpModel {} diff --git a/samples/Azure.Resources.Sample/Generated/Configuration.json b/samples/Azure.Resources.Sample/Generated/Configuration.json new file mode 100644 index 00000000000..08c9d079242 --- /dev/null +++ b/samples/Azure.Resources.Sample/Generated/Configuration.json @@ -0,0 +1,37 @@ +{ + "OutputFolder": ".", + "Namespace": "Azure.Resources.Sample", + "LibraryName": null, + "SharedSourceFolders": [ + "..\\..\\..\\artifacts\\bin\\AutoRest.CSharp\\Debug\\netcoreapp3.1\\Generator.Shared", + "..\\..\\..\\artifacts\\bin\\AutoRest.CSharp\\Debug\\netcoreapp3.1\\Azure.Core.Shared" + ], + "azure-arm": true, + "public-clients": true, + "model-namespace": false, + "skip-csproj-packagereference": true, + "OperationGroupToResourceType": { + "DeploymentOperations": "Microsoft.Resources/deployments/operations", + "ResourceLinks": "Microsoft.Resources/links", + "Deployments": "Microsoft.Resources/deployments", + "DataPolicyManifests": "Microsoft.Authorization/dataPolicyManifests" + }, + "OperationGroupToResource": { + "DeploymentOperations": "DeploymentOperation", + "ResourceLinks": "ResourceLink", + "Deployments": "DeploymentExtended", + "DeploymentScripts": "DeploymentScript", + "ApplicationDefinitions": "ApplicationDefinition", + "DataPolicyManifests": "DataPolicyManifest" + }, + "OperationGroupToParent": { + "Deployments": "tenant", + "PolicyAssignments": "tenant", + "PolicyDefinitions": "tenant", + "PolicySetDefinitions": "tenant", + "PolicyExemptions": "tenant", + "DeploymentScripts": "resourceGroups", + "ManagementLocks": "resourceGroups", + "ResourceLinks": "tenant" + } +} \ No newline at end of file diff --git a/samples/Azure.Resources.Sample/readme.md b/samples/Azure.Resources.Sample/readme.md new file mode 100644 index 00000000000..a73ce621e2c --- /dev/null +++ b/samples/Azure.Resources.Sample/readme.md @@ -0,0 +1,144 @@ +# Azure.Resources.Sample +### AutoRest Configuration +> see https://aka.ms/autorest + +``` yaml +azure-arm: true +require: $(this-folder)/../../readme.md +title: ResourceManagementClient +# library-name: Resources +input-file: + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/resources.json + # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json + # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/policyAssignments.json + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/policyDefinitions.json + # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/policySetDefinitions.json + # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/policyExemptions.json + # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json + # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/features.json + # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json + # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Resources/stable/2016-09-01/links.json + # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +namespace: Azure.ResourceManager.Resources +model-namespace: false +public-clients: false +head-as-boolean: false +# clear-output-folder: true +modelerfour: + lenient-model-deduplication: true +skip-csproj: true +payload-flattening-threshold: 2 +operation-group-to-resource-type: + DeploymentOperations: Microsoft.Resources/deployments/operations + ResourceLinks: Microsoft.Resources/links + Deployments: Microsoft.Resources/deployments + DataPolicyManifests: Microsoft.Authorization/dataPolicyManifests +operation-group-to-resource: + DeploymentOperations: DeploymentOperation + ResourceLinks: ResourceLink + Deployments: DeploymentExtended + DeploymentScripts: DeploymentScript + ApplicationDefinitions: ApplicationDefinition + DataPolicyManifests: DataPolicyManifest +operation-group-to-parent: + Deployments: tenant + PolicyAssignments: tenant + PolicyDefinitions: tenant + PolicySetDefinitions: tenant + PolicyExemptions: tenant + DeploymentScripts: resourceGroups + ManagementLocks: resourceGroups + ResourceLinks: tenant +directive: + - from: swagger-document + where: $.paths + transform: delete $["/providers/Microsoft.Resources/operations"] + - from: swagger-document + where: $.paths + transform: delete $["/providers/Microsoft.Authorization/operations"] + - from: swagger-document + where: $.paths + transform: delete $["/providers/Microsoft.Solutions/operations"] + - from: features.json + where: $.paths + transform: delete $["/providers/Microsoft.Features/operations"] + # - from: resources.json + # where: $.definitions + # transform: delete $["Provider"] + # - from: resources.json + # where: $.definitions + # transform: delete $["ProviderResourceType"] + # - from: resources.json + # where: $.definitions + # transform: delete $["ProviderExtendedLocation"] + # Below operations are already in the Core SDK. + - remove-operation: Providers_Unregister + - remove-operation: Providers_Register + - remove-operation: Providers_List + - remove-operation: Providers_ListAtTenantScope + - remove-operation: Providers_Get + - remove-operation: Providers_GetAtTenantScope + - remove-operation: Providers_RegisterAtManagementGroupScope + - remove-operation: Providers_ProviderPermissions + - remove-operation: ProviderResourceTypes_List + - remove-operation: Resources_MoveResources + - remove-operation: Resources_ValidateMoveResources + - remove-operation: Resources_List + - remove-operation: Resources_CheckExistence + - remove-operation: Resources_Delete + - remove-operation: Resources_CreateOrUpdate + - remove-operation: Resources_Update + - remove-operation: Resources_Get + - remove-operation: Resources_CheckExistenceById + - remove-operation: Resources_CreateOrUpdateById + - remove-operation: Resources_UpdateById + - remove-operation: Resources_GetById + - remove-operation: Resources_DeleteById + - remove-operation: Resources_ListByResourceGroup + - remove-operation: ResourceGroups_CheckExistence + - remove-operation: ResourceGroups_CreateOrUpdate + - remove-operation: ResourceGroups_Delete + - remove-operation: ResourceGroups_Get + - remove-operation: ResourceGroups_Update + - remove-operation: ResourceGroups_List + - remove-operation: ResourceGroups_ExportTemplate + - remove-operation: Tags_DeleteValue + - remove-operation: Tags_CreateOrUpdateValue + - remove-operation: Tags_CreateOrUpdate + - remove-operation: Tags_Delete + - remove-operation: Tags_List + - remove-operation: Tags_CreateOrUpdateAtScope + - remove-operation: Tags_UpdateAtScope + - remove-operation: Tags_GetAtScope + - remove-operation: Tags_DeleteAtScope + - remove-operation: Subscriptions_ListLocations + - remove-operation: Subscriptions_Get + - remove-operation: Subscriptions_List + - remove-operation: Tenants_List + - remove-operation: checkResourceName + - remove-operation: Features_ListAll + - remove-operation: Features_List + - remove-operation: Features_Get + - remove-operation: Features_Register + - remove-operation: Features_Unregister + + - rename-operation: + from: Deployments_Get + to: Deployments_GetAtResourceGroupScope + - rename-operation: + from: DeploymentOperations_Get + to: DeploymentOperations_GetAtResourceGroupScope +``` + +## Swagger workarounds + +### Add nullable annotations + +``` yaml +directive: + from: swagger-document + where: $.definitions.DeploymentOperationProperties + transform: > + $.properties.statusMessage["x-nullable"] = true; +```` \ No newline at end of file diff --git a/src/AutoRest.CSharp/Properties/launchSettings.json b/src/AutoRest.CSharp/Properties/launchSettings.json index f42477b1ab7..859bc086e98 100644 --- a/src/AutoRest.CSharp/Properties/launchSettings.json +++ b/src/AutoRest.CSharp/Properties/launchSettings.json @@ -56,6 +56,10 @@ "commandName": "Project", "commandLineArgs": "--standalone $(SolutionDir)\\samples\\Azure.ResourceManager.Sample\\Generated" }, + "Azure.Resources.Sample": { + "commandName": "Project", + "commandLineArgs": "--standalone $(SolutionDir)\\samples\\Azure.Resources.Sample\\Generated" + }, "Azure.Storage.Tables": { "commandName": "Project", "commandLineArgs": "--standalone $(SolutionDir)\\samples\\Azure.Storage.Tables\\Generated" From 49c7e99945e4dea32be13c3afd24cdbc98ab2c6e Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Sat, 10 Jul 2021 18:56:33 +0800 Subject: [PATCH 3/5] only make TenantResource use OperationsBase --- .../Generated/AvailabilitySet.cs | 2 +- .../Generated/AvailabilitySetContainer.cs | 21 +++++++------ .../Generated/AvailabilitySetOperations.cs | 2 +- ...AvailabilitySetsCreateOrUpdateOperation.cs | 2 +- .../AvailabilitySetsUpdateOperation.cs | 2 +- .../Generated/DedicatedHost.cs | 2 +- .../Generated/DedicatedHostContainer.cs | 21 +++++++------ .../Generated/DedicatedHostGroup.cs | 2 +- .../Generated/DedicatedHostGroupContainer.cs | 21 +++++++------ .../Generated/DedicatedHostGroupOperations.cs | 2 +- ...icatedHostGroupsCreateOrUpdateOperation.cs | 2 +- .../DedicatedHostGroupsUpdateOperation.cs | 2 +- .../Generated/DedicatedHostOperations.cs | 2 +- .../DedicatedHostsCreateOrUpdateOperation.cs | 4 +-- .../DedicatedHostsUpdateOperation.cs | 4 +-- .../Generated/Image.cs | 2 +- .../Generated/ImageContainer.cs | 21 +++++++------ .../Generated/ImageOperations.cs | 2 +- .../ImagesCreateOrUpdateOperation.cs | 4 +-- .../Generated/ImagesUpdateOperation.cs | 4 +-- .../Generated/ProximityPlacementGroup.cs | 2 +- .../ProximityPlacementGroupContainer.cs | 21 +++++++------ .../ProximityPlacementGroupOperations.cs | 2 +- ...yPlacementGroupsCreateOrUpdateOperation.cs | 2 +- ...ProximityPlacementGroupsUpdateOperation.cs | 2 +- .../Generated/SshPublicKey.cs | 2 +- .../Generated/SshPublicKeyContainer.cs | 21 +++++++------ .../Generated/SshPublicKeyOperations.cs | 2 +- .../Generated/SshPublicKeysCreateOperation.cs | 2 +- .../Generated/SshPublicKeysUpdateOperation.cs | 2 +- .../Generated/VirtualMachine.cs | 2 +- .../Generated/VirtualMachineContainer.cs | 21 +++++++------ .../Generated/VirtualMachineExtension.cs | 2 +- .../VirtualMachineExtensionContainer.cs | 13 +++++--- .../Generated/VirtualMachineExtensionImage.cs | 2 +- .../VirtualMachineExtensionImageContainer.cs | 9 ++++-- .../VirtualMachineExtensionImageOperations.cs | 2 +- .../VirtualMachineExtensionOperations.cs | 2 +- ...lMachineExtensionVirtualMachineScaleSet.cs | 2 +- ...xtensionVirtualMachineScaleSetContainer.cs | 13 +++++--- ...tensionVirtualMachineScaleSetOperations.cs | 2 +- ...achineExtensionsCreateOrUpdateOperation.cs | 4 +-- ...VirtualMachineExtensionsUpdateOperation.cs | 4 +-- .../Generated/VirtualMachineOperations.cs | 2 +- .../Generated/VirtualMachineScaleSet.cs | 2 +- .../VirtualMachineScaleSetContainer.cs | 21 +++++++------ .../VirtualMachineScaleSetExtension.cs | 2 +- ...irtualMachineScaleSetExtensionContainer.cs | 21 +++++++------ ...rtualMachineScaleSetExtensionOperations.cs | 2 +- ...aleSetExtensionsCreateOrUpdateOperation.cs | 4 +-- ...achineScaleSetExtensionsUpdateOperation.cs | 4 +-- .../VirtualMachineScaleSetOperations.cs | 2 +- .../VirtualMachineScaleSetRollingUpgrade.cs | 2 +- ...MachineScaleSetRollingUpgradeOperations.cs | 2 +- .../Generated/VirtualMachineScaleSetVM.cs | 2 +- .../VirtualMachineScaleSetVMContainer.cs | 21 +++++++------ ...eSetVMExtensionsCreateOrUpdateOperation.cs | 4 +-- ...hineScaleSetVMExtensionsUpdateOperation.cs | 4 +-- .../VirtualMachineScaleSetVMOperations.cs | 2 +- ...irtualMachineScaleSetVMsUpdateOperation.cs | 4 +-- ...MachineScaleSetsCreateOrUpdateOperation.cs | 4 +-- .../VirtualMachineScaleSetsUpdateOperation.cs | 4 +-- .../VirtualMachinesCreateOrUpdateOperation.cs | 4 +-- .../VirtualMachinesUpdateOperation.cs | 4 +-- .../Azure.Resources.Sample.csproj | 3 +- .../Writers/LongRunningOperationWriter.cs | 11 ++++--- .../Mgmt/AutoRest/MgmtTarget.cs | 4 +-- .../MgmtLongRunningOperationWriter.cs | 16 +++++++--- .../NonLongRunningOperationWriter.cs | 8 +++-- .../Generation/ResourceContainerWriter.cs | 31 +++++++++++++------ .../Generation/ResourceOperationWriter.cs | 4 ++- .../Mgmt/Generation/ResourceWriter.cs | 5 +-- src/AutoRest.CSharp/Mgmt/Output/Resource.cs | 5 ++- .../TenantOnly/Generated/Agreement.cs | 2 +- .../Generated/AgreementContainer.cs | 9 ++++-- .../Generated/AgreementOperations.cs | 2 +- .../Generated/BillingAccountContainer.cs | 8 ++--- .../TestProjects/TenantOnly/TenantOnly.csproj | 7 +++-- 78 files changed, 283 insertions(+), 209 deletions(-) diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySet.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySet.cs index 55e84326037..f2633147ae3 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySet.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySet.cs @@ -17,7 +17,7 @@ public class AvailabilitySet : AvailabilitySetOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal AvailabilitySet(OperationsBase options, AvailabilitySetData resource) : base(options, resource.Id) + internal AvailabilitySet(ResourceOperationsBase options, AvailabilitySetData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetContainer.cs index be693f32b83..f24751a7a18 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetContainer.cs @@ -26,11 +26,14 @@ protected AvailabilitySetContainer() /// Initializes a new instance of AvailabilitySetContainer class. /// The resource representing the parent resource. - internal AvailabilitySetContainer(OperationsBase parent) : base(parent) + internal AvailabilitySetContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public AvailabilitySetsCreateOrUpdateOperation StartCreateOrUpdate(string availa } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, availabilitySetName, parameters, cancellationToken: cancellationToken); - return new AvailabilitySetsCreateOrUpdateOperation(this, originalResponse); + return new AvailabilitySetsCreateOrUpdateOperation(Parent, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOrUpdateAs } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, availabilitySetName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new AvailabilitySetsCreateOrUpdateOperation(this, originalResponse); + return new AvailabilitySetsCreateOrUpdateOperation(Parent, originalResponse); } catch (Exception e) { @@ -174,7 +177,7 @@ public Response Get(string availabilitySetName, CancellationTok } var response = _restClient.Get(Id.ResourceGroupName, availabilitySetName, cancellationToken: cancellationToken); - return Response.FromValue(new AvailabilitySet(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new AvailabilitySet(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +201,7 @@ public async Task> GetAsync(string availabilitySetName } var response = await _restClient.GetAsync(Id.ResourceGroupName, availabilitySetName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new AvailabilitySet(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new AvailabilitySet(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +222,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +237,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +260,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +275,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHin try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new AvailabilitySet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetOperations.cs index 824ac2596e4..24a615ead48 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetOperations.cs @@ -30,7 +30,7 @@ protected AvailabilitySetOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal AvailabilitySetOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal AvailabilitySetOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new AvailabilitySetsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsCreateOrUpdateOperation.cs index cd75da91329..90cabe7697d 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsCreateOrUpdateOperation.cs @@ -24,7 +24,7 @@ protected AvailabilitySetsCreateOrUpdateOperation() { } - internal AvailabilitySetsCreateOrUpdateOperation(OperationsBase operationsBase, Response response) + internal AvailabilitySetsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new AvailabilitySet(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsUpdateOperation.cs index 585214ee5b3..af107ad506c 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/AvailabilitySetsUpdateOperation.cs @@ -24,7 +24,7 @@ protected AvailabilitySetsUpdateOperation() { } - internal AvailabilitySetsUpdateOperation(OperationsBase operationsBase, Response response) + internal AvailabilitySetsUpdateOperation(ResourceOperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new AvailabilitySet(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHost.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHost.cs index 144f66ddbef..ef3deaa263e 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHost.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHost.cs @@ -17,7 +17,7 @@ public class DedicatedHost : DedicatedHostOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal DedicatedHost(OperationsBase options, DedicatedHostData resource) : base(options, resource.Id) + internal DedicatedHost(ResourceOperationsBase options, DedicatedHostData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostContainer.cs index 356f3b3833f..cebe0c25779 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostContainer.cs @@ -26,11 +26,14 @@ protected DedicatedHostContainer() /// Initializes a new instance of DedicatedHostContainer class. /// The resource representing the parent resource. - internal DedicatedHostContainer(OperationsBase parent) : base(parent) + internal DedicatedHostContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public DedicatedHostsCreateOrUpdateOperation StartCreateOrUpdate(string hostName } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, Id.Name, hostName, parameters, cancellationToken: cancellationToken); - return new DedicatedHostsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, hostName, parameters).Request, originalResponse); + return new DedicatedHostsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, hostName, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOrUpdateAsyn } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, Id.Name, hostName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new DedicatedHostsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, hostName, parameters).Request, originalResponse); + return new DedicatedHostsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, hostName, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +177,7 @@ public Response Get(string hostName, CancellationToken cancellati } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, hostName, cancellationToken: cancellationToken); - return Response.FromValue(new DedicatedHost(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new DedicatedHost(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +201,7 @@ public async Task> GetAsync(string hostName, Cancellatio } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, hostName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DedicatedHost(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new DedicatedHost(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +222,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByHostGroup(Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +237,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByHostGroupNextPage(nextLink, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +260,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByHostGroupAsync(Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +275,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) try { var response = await _restClient.ListByHostGroupNextPageAsync(nextLink, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHost(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroup.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroup.cs index d135d15f64a..69fd13a78ed 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroup.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroup.cs @@ -17,7 +17,7 @@ public class DedicatedHostGroup : DedicatedHostGroupOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal DedicatedHostGroup(OperationsBase options, DedicatedHostGroupData resource) : base(options, resource.Id) + internal DedicatedHostGroup(ResourceOperationsBase options, DedicatedHostGroupData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupContainer.cs index b1b0e2ffa94..6f7d7ce3700 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupContainer.cs @@ -26,11 +26,14 @@ protected DedicatedHostGroupContainer() /// Initializes a new instance of DedicatedHostGroupContainer class. /// The resource representing the parent resource. - internal DedicatedHostGroupContainer(OperationsBase parent) : base(parent) + internal DedicatedHostGroupContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public DedicatedHostGroupsCreateOrUpdateOperation StartCreateOrUpdate(string hos } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, hostGroupName, parameters, cancellationToken: cancellationToken); - return new DedicatedHostGroupsCreateOrUpdateOperation(this, originalResponse); + return new DedicatedHostGroupsCreateOrUpdateOperation(Parent, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOrUpdat } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, hostGroupName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new DedicatedHostGroupsCreateOrUpdateOperation(this, originalResponse); + return new DedicatedHostGroupsCreateOrUpdateOperation(Parent, originalResponse); } catch (Exception e) { @@ -174,7 +177,7 @@ public Response Get(string hostGroupName, CancellationToken } var response = _restClient.Get(Id.ResourceGroupName, hostGroupName, cancellationToken: cancellationToken); - return Response.FromValue(new DedicatedHostGroup(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new DedicatedHostGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +201,7 @@ public async Task> GetAsync(string hostGroupName, C } var response = await _restClient.GetAsync(Id.ResourceGroupName, hostGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DedicatedHostGroup(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new DedicatedHostGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +222,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByResourceGroup(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +237,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByResourceGroupNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +260,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +275,7 @@ async Task> NextPageFunc(string nextLink, int? pageSize try { var response = await _restClient.ListByResourceGroupNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new DedicatedHostGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupOperations.cs index 283407f8611..2c5bd90e749 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupOperations.cs @@ -30,7 +30,7 @@ protected DedicatedHostGroupOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal DedicatedHostGroupOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal DedicatedHostGroupOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new DedicatedHostGroupsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsCreateOrUpdateOperation.cs index c6584b1ef1b..c4e8c2a13c6 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsCreateOrUpdateOperation.cs @@ -24,7 +24,7 @@ protected DedicatedHostGroupsCreateOrUpdateOperation() { } - internal DedicatedHostGroupsCreateOrUpdateOperation(OperationsBase operationsBase, Response response) + internal DedicatedHostGroupsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new DedicatedHostGroup(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsUpdateOperation.cs index 1649f66f968..48b6e01d477 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostGroupsUpdateOperation.cs @@ -24,7 +24,7 @@ protected DedicatedHostGroupsUpdateOperation() { } - internal DedicatedHostGroupsUpdateOperation(OperationsBase operationsBase, Response response) + internal DedicatedHostGroupsUpdateOperation(ResourceOperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new DedicatedHostGroup(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostOperations.cs index 4edd3304c4a..d44ab0ec179 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostOperations.cs @@ -30,7 +30,7 @@ protected DedicatedHostOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal DedicatedHostOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal DedicatedHostOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new DedicatedHostsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsCreateOrUpdateOperation.cs index 2fc56414e26..9a03fab5f13 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class DedicatedHostsCreateOrUpdateOperation : Operation _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of DedicatedHostsCreateOrUpdateOperation for mocking. protected DedicatedHostsCreateOrUpdateOperation() { } - internal DedicatedHostsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal DedicatedHostsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "DedicatedHostsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsUpdateOperation.cs index ed2093a7aba..f43aa34ac9a 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/DedicatedHostsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class DedicatedHostsUpdateOperation : Operation, I { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of DedicatedHostsUpdateOperation for mocking. protected DedicatedHostsUpdateOperation() { } - internal DedicatedHostsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal DedicatedHostsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "DedicatedHostsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/Image.cs b/samples/Azure.ResourceManager.Sample/Generated/Image.cs index 4f1adc588a1..e864c6ff4c5 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/Image.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/Image.cs @@ -17,7 +17,7 @@ public class Image : ImageOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal Image(OperationsBase options, ImageData resource) : base(options, resource.Id) + internal Image(ResourceOperationsBase options, ImageData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/ImageContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/ImageContainer.cs index eb24fea71fe..37672d31691 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ImageContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ImageContainer.cs @@ -26,11 +26,14 @@ protected ImageContainer() /// Initializes a new instance of ImageContainer class. /// The resource representing the parent resource. - internal ImageContainer(OperationsBase parent) : base(parent) + internal ImageContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public ImagesCreateOrUpdateOperation StartCreateOrUpdate(string imageName, Image } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, imageName, parameters, cancellationToken: cancellationToken); - return new ImagesCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, imageName, parameters).Request, originalResponse); + return new ImagesCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, imageName, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOrUpdateAsync(string } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, imageName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new ImagesCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, imageName, parameters).Request, originalResponse); + return new ImagesCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, imageName, parameters).Request, originalResponse); } catch (Exception e) { @@ -175,7 +178,7 @@ public Response Get(string imageName, string expand = null, CancellationT } var response = _restClient.Get(Id.ResourceGroupName, imageName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new Image(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new Image(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +203,7 @@ public async Task> GetAsync(string imageName, string expand = nu } var response = await _restClient.GetAsync(Id.ResourceGroupName, imageName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new Image(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new Image(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,7 +224,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByResourceGroup(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new Image(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new Image(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -236,7 +239,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByResourceGroupNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new Image(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new Image(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -259,7 +262,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new Image(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new Image(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +277,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new Image(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new Image(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/ImageOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/ImageOperations.cs index 71fc5b88db7..b3c52bf27da 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ImageOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ImageOperations.cs @@ -30,7 +30,7 @@ protected ImageOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal ImageOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal ImageOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new ImagesRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/ImagesCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/ImagesCreateOrUpdateOperation.cs index c727f0f20a6..192bd907fff 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ImagesCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ImagesCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class ImagesCreateOrUpdateOperation : Operation, IOperatio { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of ImagesCreateOrUpdateOperation for mocking. protected ImagesCreateOrUpdateOperation() { } - internal ImagesCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal ImagesCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ImagesCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/ImagesUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/ImagesUpdateOperation.cs index 0d92396d0ea..a5c6d834e4a 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ImagesUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ImagesUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class ImagesUpdateOperation : Operation, IOperationSource< { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of ImagesUpdateOperation for mocking. protected ImagesUpdateOperation() { } - internal ImagesUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal ImagesUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ImagesUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroup.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroup.cs index 648ad08474d..23cb88c72e0 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroup.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroup.cs @@ -17,7 +17,7 @@ public class ProximityPlacementGroup : ProximityPlacementGroupOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ProximityPlacementGroup(OperationsBase options, ProximityPlacementGroupData resource) : base(options, resource.Id) + internal ProximityPlacementGroup(ResourceOperationsBase options, ProximityPlacementGroupData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupContainer.cs index b63d992f599..6b93429bd2a 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupContainer.cs @@ -26,11 +26,14 @@ protected ProximityPlacementGroupContainer() /// Initializes a new instance of ProximityPlacementGroupContainer class. /// The resource representing the parent resource. - internal ProximityPlacementGroupContainer(OperationsBase parent) : base(parent) + internal ProximityPlacementGroupContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public ProximityPlacementGroupsCreateOrUpdateOperation StartCreateOrUpdate(strin } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, proximityPlacementGroupName, parameters, cancellationToken: cancellationToken); - return new ProximityPlacementGroupsCreateOrUpdateOperation(this, originalResponse); + return new ProximityPlacementGroupsCreateOrUpdateOperation(Parent, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOr } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, proximityPlacementGroupName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new ProximityPlacementGroupsCreateOrUpdateOperation(this, originalResponse); + return new ProximityPlacementGroupsCreateOrUpdateOperation(Parent, originalResponse); } catch (Exception e) { @@ -175,7 +178,7 @@ public Response Get(string proximityPlacementGroupName, } var response = _restClient.Get(Id.ResourceGroupName, proximityPlacementGroupName, includeColocationStatus, cancellationToken: cancellationToken); - return Response.FromValue(new ProximityPlacementGroup(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new ProximityPlacementGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +203,7 @@ public async Task> GetAsync(string proximityPl } var response = await _restClient.GetAsync(Id.ResourceGroupName, proximityPlacementGroupName, includeColocationStatus, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProximityPlacementGroup(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new ProximityPlacementGroup(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,7 +224,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByResourceGroup(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -236,7 +239,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByResourceGroupNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -259,7 +262,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +277,7 @@ async Task> NextPageFunc(string nextLink, int? pag try { var response = await _restClient.ListByResourceGroupNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new ProximityPlacementGroup(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupOperations.cs index 7d11021daa7..01bc8cbca1c 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupOperations.cs @@ -30,7 +30,7 @@ protected ProximityPlacementGroupOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal ProximityPlacementGroupOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal ProximityPlacementGroupOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new ProximityPlacementGroupsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsCreateOrUpdateOperation.cs index e4b34e76f76..d1fc404f32d 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsCreateOrUpdateOperation.cs @@ -24,7 +24,7 @@ protected ProximityPlacementGroupsCreateOrUpdateOperation() { } - internal ProximityPlacementGroupsCreateOrUpdateOperation(OperationsBase operationsBase, Response response) + internal ProximityPlacementGroupsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new ProximityPlacementGroup(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsUpdateOperation.cs index 1c5f6bf79dd..ccd4b4d7975 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/ProximityPlacementGroupsUpdateOperation.cs @@ -24,7 +24,7 @@ protected ProximityPlacementGroupsUpdateOperation() { } - internal ProximityPlacementGroupsUpdateOperation(OperationsBase operationsBase, Response response) + internal ProximityPlacementGroupsUpdateOperation(ResourceOperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new ProximityPlacementGroup(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKey.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKey.cs index 71d6b4346bf..7171c4d7adc 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKey.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKey.cs @@ -17,7 +17,7 @@ public class SshPublicKey : SshPublicKeyOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal SshPublicKey(OperationsBase options, SshPublicKeyData resource) : base(options, resource.Id) + internal SshPublicKey(ResourceOperationsBase options, SshPublicKeyData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyContainer.cs index f145b49f7c0..a3e3891e355 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyContainer.cs @@ -26,11 +26,14 @@ protected SshPublicKeyContainer() /// Initializes a new instance of SshPublicKeyContainer class. /// The resource representing the parent resource. - internal SshPublicKeyContainer(OperationsBase parent) : base(parent) + internal SshPublicKeyContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public SshPublicKeysCreateOperation StartCreateOrUpdate(string sshPublicKeyName, } var originalResponse = _restClient.Create(Id.ResourceGroupName, sshPublicKeyName, parameters, cancellationToken: cancellationToken); - return new SshPublicKeysCreateOperation(this, originalResponse); + return new SshPublicKeysCreateOperation(Parent, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOrUpdateAsync(string } var originalResponse = await _restClient.CreateAsync(Id.ResourceGroupName, sshPublicKeyName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new SshPublicKeysCreateOperation(this, originalResponse); + return new SshPublicKeysCreateOperation(Parent, originalResponse); } catch (Exception e) { @@ -174,7 +177,7 @@ public Response Get(string sshPublicKeyName, CancellationToken can } var response = _restClient.Get(Id.ResourceGroupName, sshPublicKeyName, cancellationToken: cancellationToken); - return Response.FromValue(new SshPublicKey(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new SshPublicKey(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +201,7 @@ public async Task> GetAsync(string sshPublicKeyName, Canc } var response = await _restClient.GetAsync(Id.ResourceGroupName, sshPublicKeyName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new SshPublicKey(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new SshPublicKey(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +222,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.ListByResourceGroup(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +237,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListByResourceGroupNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +260,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +275,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) try { var response = await _restClient.ListByResourceGroupNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new SshPublicKey(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyOperations.cs index fde6581a79c..b385b1c3ac3 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeyOperations.cs @@ -30,7 +30,7 @@ protected SshPublicKeyOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal SshPublicKeyOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal SshPublicKeyOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new SshPublicKeysRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysCreateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysCreateOperation.cs index 7ed47d85eab..71ec377b3bc 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysCreateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysCreateOperation.cs @@ -24,7 +24,7 @@ protected SshPublicKeysCreateOperation() { } - internal SshPublicKeysCreateOperation(OperationsBase operationsBase, Response response) + internal SshPublicKeysCreateOperation(ResourceOperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new SshPublicKey(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysUpdateOperation.cs index 71d31ff4952..039c2733620 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/SshPublicKeysUpdateOperation.cs @@ -24,7 +24,7 @@ protected SshPublicKeysUpdateOperation() { } - internal SshPublicKeysUpdateOperation(OperationsBase operationsBase, Response response) + internal SshPublicKeysUpdateOperation(ResourceOperationsBase operationsBase, Response response) { _operation = new OperationOrResponseInternals(Response.FromValue(new SshPublicKey(operationsBase, response.Value), response.GetRawResponse())); } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachine.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachine.cs index 80a6e3bb1d3..9e5e1b1414a 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachine.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachine.cs @@ -17,7 +17,7 @@ public class VirtualMachine : VirtualMachineOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachine(OperationsBase options, VirtualMachineData resource) : base(options, resource.Id) + internal VirtualMachine(ResourceOperationsBase options, VirtualMachineData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineContainer.cs index 545641b983c..9c41fb22e8f 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineContainer.cs @@ -26,11 +26,14 @@ protected VirtualMachineContainer() /// Initializes a new instance of VirtualMachineContainer class. /// The resource representing the parent resource. - internal VirtualMachineContainer(OperationsBase parent) : base(parent) + internal VirtualMachineContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public VirtualMachinesCreateOrUpdateOperation StartCreateOrUpdate(string vmName, } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, vmName, parameters, cancellationToken: cancellationToken); - return new VirtualMachinesCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmName, parameters).Request, originalResponse); + return new VirtualMachinesCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmName, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOrUpdateAsy } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, vmName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachinesCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmName, parameters).Request, originalResponse); + return new VirtualMachinesCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmName, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +177,7 @@ public Response Get(string vmName, CancellationToken cancellatio } var response = _restClient.Get(Id.ResourceGroupName, vmName, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachine(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachine(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +201,7 @@ public async Task> GetAsync(string vmName, Cancellation } var response = await _restClient.GetAsync(Id.ResourceGroupName, vmName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachine(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachine(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +222,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +237,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +260,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +275,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachine(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtension.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtension.cs index eb7967c62a5..d97882588ca 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtension.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtension.cs @@ -17,7 +17,7 @@ public class VirtualMachineExtension : VirtualMachineExtensionOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineExtension(OperationsBase options, VirtualMachineExtensionData resource) : base(options, resource.Id) + internal VirtualMachineExtension(ResourceOperationsBase options, VirtualMachineExtensionData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionContainer.cs index 332a0956405..b8e7dbf3f50 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionContainer.cs @@ -26,11 +26,14 @@ protected VirtualMachineExtensionContainer() /// Initializes a new instance of VirtualMachineExtensionContainer class. /// The resource representing the parent resource. - internal VirtualMachineExtensionContainer(OperationsBase parent) : base(parent) + internal VirtualMachineExtensionContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public VirtualMachineExtensionsCreateOrUpdateOperation StartCreateOrUpdate(strin } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters, cancellationToken: cancellationToken); - return new VirtualMachineExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOr } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -175,7 +178,7 @@ public Response Get(string vmExtensionName, string expa } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, vmExtensionName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineExtension(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtension(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +203,7 @@ public async Task> GetAsync(string vmExtension } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, vmExtensionName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineExtension(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtension(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImage.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImage.cs index 49ebebae597..a845dd216f5 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImage.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImage.cs @@ -17,7 +17,7 @@ public class VirtualMachineExtensionImage : VirtualMachineExtensionImageOperatio /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineExtensionImage(OperationsBase options, VirtualMachineExtensionImageData resource) : base(options, resource.Id) + internal VirtualMachineExtensionImage(ResourceOperationsBase options, VirtualMachineExtensionImageData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageContainer.cs index cbf578dbef6..008426d8dec 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageContainer.cs @@ -26,11 +26,14 @@ protected VirtualMachineExtensionImageContainer() /// Initializes a new instance of VirtualMachineExtensionImageContainer class. /// The resource representing the parent resource. - internal VirtualMachineExtensionImageContainer(OperationsBase parent) : base(parent) + internal VirtualMachineExtensionImageContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -74,7 +77,7 @@ public Response Get(string location, string publis } var response = _restClient.Get(location, publisherName, type, version, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineExtensionImage(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtensionImage(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -113,7 +116,7 @@ public async Task> GetAsync(string locati } var response = await _restClient.GetAsync(location, publisherName, type, version, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineExtensionImage(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtensionImage(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageOperations.cs index 8816b77e22e..ac6010ba0ca 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionImageOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineExtensionImageOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineExtensionImageOperations(OperationsBase options, SubscriptionResourceIdentifier id) : base(options, id) + protected internal VirtualMachineExtensionImageOperations(ResourceOperationsBase options, SubscriptionResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineExtensionImagesRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionOperations.cs index a5803dd0990..7fde6833e3e 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineExtensionOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineExtensionOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineExtensionOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineExtensionsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSet.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSet.cs index 4d6fb8d5108..ebeddac9c92 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSet.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSet.cs @@ -17,7 +17,7 @@ public class VirtualMachineExtensionVirtualMachineScaleSet : VirtualMachineExten /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineExtensionVirtualMachineScaleSet(OperationsBase options, VirtualMachineExtensionData resource) : base(options, resource.Id) + internal VirtualMachineExtensionVirtualMachineScaleSet(ResourceOperationsBase options, VirtualMachineExtensionData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetContainer.cs index 6bfd1ab1892..e689dab9dbf 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetContainer.cs @@ -26,11 +26,14 @@ protected VirtualMachineExtensionVirtualMachineScaleSetContainer() /// Initializes a new instance of VirtualMachineExtensionVirtualMachineScaleSetContainer class. /// The resource representing the parent resource. - internal VirtualMachineExtensionVirtualMachineScaleSetContainer(OperationsBase parent) : base(parent) + internal VirtualMachineExtensionVirtualMachineScaleSetContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation StartCreateOrUp } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters, cancellationToken: cancellationToken); - return new VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task Sta } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -175,7 +178,7 @@ public Response Get(string vmExte } var response = _restClient.Get(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineExtensionVirtualMachineScaleSet(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtensionVirtualMachineScaleSet(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +203,7 @@ public async Task> GetAs } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Parent.Name, Id.Name, vmExtensionName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineExtensionVirtualMachineScaleSet(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineExtensionVirtualMachineScaleSet(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetOperations.cs index 6318152f10a..275da0f5410 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionVirtualMachineScaleSetOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineExtensionVirtualMachineScaleSetOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineExtensionVirtualMachineScaleSetOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineExtensionVirtualMachineScaleSetOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineScaleSetVMExtensionsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsCreateOrUpdateOperation.cs index 9d722e36e57..b1447137751 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineExtensionsCreateOrUpdateOperation : Operation { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachineExtensionsCreateOrUpdateOperation for mocking. protected VirtualMachineExtensionsCreateOrUpdateOperation() { } - internal VirtualMachineExtensionsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineExtensionsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineExtensionsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsUpdateOperation.cs index 52ff5c45f78..557cde0d5c4 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineExtensionsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineExtensionsUpdateOperation : Operation _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachineExtensionsUpdateOperation for mocking. protected VirtualMachineExtensionsUpdateOperation() { } - internal VirtualMachineExtensionsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineExtensionsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineExtensionsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineOperations.cs index 64b12c13da2..c917f68af5c 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachinesRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSet.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSet.cs index 19acfdf8f14..3371b5afc6e 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSet.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSet.cs @@ -17,7 +17,7 @@ public class VirtualMachineScaleSet : VirtualMachineScaleSetOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineScaleSet(OperationsBase options, VirtualMachineScaleSetData resource) : base(options, resource.Id) + internal VirtualMachineScaleSet(ResourceOperationsBase options, VirtualMachineScaleSetData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetContainer.cs index b8f731bd39e..33beb3069f8 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetContainer.cs @@ -26,11 +26,14 @@ protected VirtualMachineScaleSetContainer() /// Initializes a new instance of VirtualMachineScaleSetContainer class. /// The resource representing the parent resource. - internal VirtualMachineScaleSetContainer(OperationsBase parent) : base(parent) + internal VirtualMachineScaleSetContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public VirtualMachineScaleSetsCreateOrUpdateOperation StartCreateOrUpdate(string } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, vmScaleSetName, parameters, cancellationToken: cancellationToken); - return new VirtualMachineScaleSetsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmScaleSetName, parameters).Request, originalResponse); + return new VirtualMachineScaleSetsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmScaleSetName, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOrU } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, vmScaleSetName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineScaleSetsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmScaleSetName, parameters).Request, originalResponse); + return new VirtualMachineScaleSetsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, vmScaleSetName, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +177,7 @@ public Response Get(string vmScaleSetName, CancellationT } var response = _restClient.Get(Id.ResourceGroupName, vmScaleSetName, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineScaleSet(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSet(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +201,7 @@ public async Task> GetAsync(string vmScaleSetNa } var response = await _restClient.GetAsync(Id.ResourceGroupName, vmScaleSetName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineScaleSet(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSet(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -219,7 +222,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,7 +237,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -257,7 +260,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListAsync(Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -272,7 +275,7 @@ async Task> NextPageFunc(string nextLink, int? page try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSet(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtension.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtension.cs index f2aaf3aa3b5..93c71d48125 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtension.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtension.cs @@ -17,7 +17,7 @@ public class VirtualMachineScaleSetExtension : VirtualMachineScaleSetExtensionOp /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineScaleSetExtension(OperationsBase options, VirtualMachineScaleSetExtensionData resource) : base(options, resource.Id) + internal VirtualMachineScaleSetExtension(ResourceOperationsBase options, VirtualMachineScaleSetExtensionData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionContainer.cs index 193f10b6a8c..b637446ee00 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionContainer.cs @@ -26,11 +26,14 @@ protected VirtualMachineScaleSetExtensionContainer() /// Initializes a new instance of VirtualMachineScaleSetExtensionContainer class. /// The resource representing the parent resource. - internal VirtualMachineScaleSetExtensionContainer(OperationsBase parent) : base(parent) + internal VirtualMachineScaleSetExtensionContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public VirtualMachineScaleSetExtensionsCreateOrUpdateOperation StartCreateOrUpda } var originalResponse = _restClient.CreateOrUpdate(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters, cancellationToken: cancellationToken); - return new VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task Start } var originalResponse = await _restClient.CreateOrUpdateAsync(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters).Request, originalResponse); + return new VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(Id.ResourceGroupName, Id.Name, vmssExtensionName, extensionParameters).Request, originalResponse); } catch (Exception e) { @@ -175,7 +178,7 @@ public Response Get(string vmssExtensionName, s } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, vmssExtensionName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineScaleSetExtension(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSetExtension(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -200,7 +203,7 @@ public async Task> GetAsync(string vms } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, vmssExtensionName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineScaleSetExtension(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSetExtension(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,7 +224,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -236,7 +239,7 @@ Page NextPageFunc(string nextLink, int? pageSiz try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -259,7 +262,7 @@ async Task> FirstPageFunc(int? pageSizeHin try { var response = await _restClient.ListAsync(Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +277,7 @@ async Task> NextPageFunc(string nextLink, try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetExtension(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionOperations.cs index 5f8bdd192db..c4aaad1e45f 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineScaleSetExtensionOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineScaleSetExtensionOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineScaleSetExtensionOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineScaleSetExtensionsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsCreateOrUpdateOperation.cs index 0cea9615085..1f124156768 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetExtensionsCreateOrUpdateOperation : O { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetExtensionsCreateOrUpdateOperation for mocking. protected VirtualMachineScaleSetExtensionsCreateOrUpdateOperation() { } - internal VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetExtensionsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetExtensionsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsUpdateOperation.cs index d2ba41ed4b5..82971c62af3 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetExtensionsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetExtensionsUpdateOperation : Operation { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetExtensionsUpdateOperation for mocking. protected VirtualMachineScaleSetExtensionsUpdateOperation() { } - internal VirtualMachineScaleSetExtensionsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetExtensionsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetExtensionsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetOperations.cs index 145947e9fd1..00999d6c132 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineScaleSetOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineScaleSetOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineScaleSetOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineScaleSetsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgrade.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgrade.cs index 054756805aa..1357ec812c0 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgrade.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgrade.cs @@ -15,7 +15,7 @@ public class VirtualMachineScaleSetRollingUpgrade : VirtualMachineScaleSetRollin /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineScaleSetRollingUpgrade(OperationsBase options, VirtualMachineScaleSetRollingUpgradeData resource) : base(options) + internal VirtualMachineScaleSetRollingUpgrade(ResourceOperationsBase options, VirtualMachineScaleSetRollingUpgradeData resource) : base(options) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgradeOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgradeOperations.cs index 8e2dd2c81d3..eef90ac8ad0 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgradeOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetRollingUpgradeOperations.cs @@ -21,7 +21,7 @@ protected VirtualMachineScaleSetRollingUpgradeOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. - protected internal VirtualMachineScaleSetRollingUpgradeOperations(OperationsBase options) : base(options) + protected internal VirtualMachineScaleSetRollingUpgradeOperations(ResourceOperationsBase options) : base(options) { } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVM.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVM.cs index 9cc2ac87b42..d0ede5b5da5 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVM.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVM.cs @@ -17,7 +17,7 @@ public class VirtualMachineScaleSetVM : VirtualMachineScaleSetVMOperations /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VirtualMachineScaleSetVM(OperationsBase options, VirtualMachineScaleSetVMData resource) : base(options, resource.Id) + internal VirtualMachineScaleSetVM(ResourceOperationsBase options, VirtualMachineScaleSetVMData resource) : base(options, resource.Id) { Data = resource; } diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMContainer.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMContainer.cs index 6053ba0a6eb..cac3e8c1fde 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMContainer.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMContainer.cs @@ -26,11 +26,14 @@ protected VirtualMachineScaleSetVMContainer() /// Initializes a new instance of VirtualMachineScaleSetVMContainer class. /// The resource representing the parent resource. - internal VirtualMachineScaleSetVMContainer(OperationsBase parent) : base(parent) + internal VirtualMachineScaleSetVMContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -121,7 +124,7 @@ public VirtualMachineScaleSetVMsUpdateOperation StartCreateOrUpdate(string insta } var originalResponse = _restClient.Update(Id.ResourceGroupName, Id.Name, instanceId, parameters, cancellationToken: cancellationToken); - return new VirtualMachineScaleSetVMsUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(Id.ResourceGroupName, Id.Name, instanceId, parameters).Request, originalResponse); + return new VirtualMachineScaleSetVMsUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(Id.ResourceGroupName, Id.Name, instanceId, parameters).Request, originalResponse); } catch (Exception e) { @@ -150,7 +153,7 @@ public async Task StartCreateOrUpdateA } var originalResponse = await _restClient.UpdateAsync(Id.ResourceGroupName, Id.Name, instanceId, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new VirtualMachineScaleSetVMsUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(Id.ResourceGroupName, Id.Name, instanceId, parameters).Request, originalResponse); + return new VirtualMachineScaleSetVMsUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(Id.ResourceGroupName, Id.Name, instanceId, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +177,7 @@ public Response Get(string instanceId, CancellationTok } var response = _restClient.Get(Id.ResourceGroupName, Id.Name, instanceId, cancellationToken: cancellationToken); - return Response.FromValue(new VirtualMachineScaleSetVM(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSetVM(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -198,7 +201,7 @@ public async Task> GetAsync(string instanceId } var response = await _restClient.GetAsync(Id.ResourceGroupName, Id.Name, instanceId, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VirtualMachineScaleSetVM(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new VirtualMachineScaleSetVM(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -222,7 +225,7 @@ Page FirstPageFunc(int? pageSizeHint) try { var response = _restClient.List(Id.ResourceGroupName, Id.Name, filter, select, expand, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -237,7 +240,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) try { var response = _restClient.ListNextPage(nextLink, Id.ResourceGroupName, Id.Name, filter, select, expand, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -263,7 +266,7 @@ async Task> FirstPageFunc(int? pageSizeHint) try { var response = await _restClient.ListAsync(Id.ResourceGroupName, Id.Name, filter, select, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -278,7 +281,7 @@ async Task> NextPageFunc(string nextLink, int? pa try { var response = await _restClient.ListNextPageAsync(nextLink, Id.ResourceGroupName, Id.Name, filter, select, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(this, value)), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(value => new VirtualMachineScaleSetVM(Parent, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation.cs index f0ee0454a2f..f9e82e3698e 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation : { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation for mocking. protected VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation() { } - internal VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetVMExtensionsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsUpdateOperation.cs index c7d84487654..eaca59a86a1 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMExtensionsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetVMExtensionsUpdateOperation : Operati { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetVMExtensionsUpdateOperation for mocking. protected VirtualMachineScaleSetVMExtensionsUpdateOperation() { } - internal VirtualMachineScaleSetVMExtensionsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetVMExtensionsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetVMExtensionsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMOperations.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMOperations.cs index 774abbd861d..3589ee92bb3 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMOperations.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMOperations.cs @@ -30,7 +30,7 @@ protected VirtualMachineScaleSetVMOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal VirtualMachineScaleSetVMOperations(OperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) + protected internal VirtualMachineScaleSetVMOperations(ResourceOperationsBase options, ResourceGroupResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new VirtualMachineScaleSetVMsRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri); diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMsUpdateOperation.cs index afa1d37c036..a7759fda247 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetVMsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetVMsUpdateOperation : Operation _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetVMsUpdateOperation for mocking. protected VirtualMachineScaleSetVMsUpdateOperation() { } - internal VirtualMachineScaleSetVMsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetVMsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetVMsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsCreateOrUpdateOperation.cs index fe98c9714b2..69b03fb640a 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetsCreateOrUpdateOperation : Operation< { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetsCreateOrUpdateOperation for mocking. protected VirtualMachineScaleSetsCreateOrUpdateOperation() { } - internal VirtualMachineScaleSetsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetsCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetsCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsUpdateOperation.cs index 2b05be9675f..2a04317fc77 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachineScaleSetsUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachineScaleSetsUpdateOperation : Operation _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachineScaleSetsUpdateOperation for mocking. protected VirtualMachineScaleSetsUpdateOperation() { } - internal VirtualMachineScaleSetsUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachineScaleSetsUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachineScaleSetsUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesCreateOrUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesCreateOrUpdateOperation.cs index b8e7bb2fae2..e86cceb057e 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesCreateOrUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesCreateOrUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachinesCreateOrUpdateOperation : Operation _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachinesCreateOrUpdateOperation for mocking. protected VirtualMachinesCreateOrUpdateOperation() { } - internal VirtualMachinesCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachinesCreateOrUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachinesCreateOrUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesUpdateOperation.cs b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesUpdateOperation.cs index 81deb999220..ec65fff5615 100644 --- a/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesUpdateOperation.cs +++ b/samples/Azure.ResourceManager.Sample/Generated/VirtualMachinesUpdateOperation.cs @@ -21,14 +21,14 @@ public partial class VirtualMachinesUpdateOperation : Operation, { private readonly OperationInternals _operation; - private readonly OperationsBase _operationBase; + private readonly ResourceOperationsBase _operationBase; /// Initializes a new instance of VirtualMachinesUpdateOperation for mocking. protected VirtualMachinesUpdateOperation() { } - internal VirtualMachinesUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + internal VirtualMachinesUpdateOperation(ResourceOperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VirtualMachinesUpdateOperation"); _operationBase = operationsBase; diff --git a/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj b/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj index 426f8446715..f80a0ecc713 100644 --- a/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj +++ b/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj @@ -19,5 +19,4 @@ --> - -© 2021 GitHub, Inc. \ No newline at end of file + \ No newline at end of file diff --git a/src/AutoRest.CSharp/Common/Generation/Writers/LongRunningOperationWriter.cs b/src/AutoRest.CSharp/Common/Generation/Writers/LongRunningOperationWriter.cs index 0a35e867b6a..7524a6190ae 100644 --- a/src/AutoRest.CSharp/Common/Generation/Writers/LongRunningOperationWriter.cs +++ b/src/AutoRest.CSharp/Common/Generation/Writers/LongRunningOperationWriter.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; using AutoRest.CSharp.Generation.Types; using AutoRest.CSharp.Output.Models.Requests; +using AutoRest.CSharp.Output.Models.Types; using Azure; using Azure.Core; using Azure.Core.Pipeline; @@ -16,7 +17,7 @@ namespace AutoRest.CSharp.Generation.Writers { internal class LongRunningOperationWriter { - public void Write(CodeWriter writer, LongRunningOperation operation) + public void Write(CodeWriter writer, LongRunningOperation operation, BuildContext? context = null) { var responseVariable = "response"; var pagingResponse = operation.PagingResponse; @@ -38,7 +39,7 @@ public void Write(CodeWriter writer, LongRunningOperation operation) using (writer.Scope()) { - WriteFields(writer, operation, pagingResponse, helperType); + WriteFields(writer, operation, pagingResponse, helperType, context); writer.Line(); writer.WriteXmlDocumentationSummary($"Initializes a new instance of {cs.Name} for mocking."); @@ -48,7 +49,7 @@ public void Write(CodeWriter writer, LongRunningOperation operation) writer.Line(); - WriteConstructor(writer, operation, pagingResponse, cs, helperType); + WriteConstructor(writer, operation, pagingResponse, cs, helperType, context); writer.Line(); writer.WriteXmlDocumentationInheritDoc(); @@ -132,7 +133,7 @@ protected virtual CSharpType GetHelperType(LongRunningOperation operation) return operation.ResultType != null ? new CSharpType(typeof(OperationInternals<>), operation.ResultType) : new CSharpType(typeof(OperationInternals)); } - protected virtual void WriteFields(CodeWriter writer, LongRunningOperation operation, PagingResponseInfo? pagingResponse, CSharpType helperType) + protected virtual void WriteFields(CodeWriter writer, LongRunningOperation operation, PagingResponseInfo? pagingResponse, CSharpType helperType, BuildContext? context = null) { writer.Line($"private readonly {helperType} _operation;"); @@ -142,7 +143,7 @@ protected virtual void WriteFields(CodeWriter writer, LongRunningOperation opera } } - protected virtual void WriteConstructor(CodeWriter writer, LongRunningOperation operation, PagingResponseInfo? pagingResponse, CSharpType lroType, CSharpType helperType) + protected virtual void WriteConstructor(CodeWriter writer, LongRunningOperation operation, PagingResponseInfo? pagingResponse, CSharpType lroType, CSharpType helperType, BuildContext? context = null) { writer.Append($"internal {lroType.Name}({typeof(ClientDiagnostics)} clientDiagnostics, {typeof(HttpPipeline)} pipeline, {typeof(Request)} request, {typeof(Response)} response"); diff --git a/src/AutoRest.CSharp/Mgmt/AutoRest/MgmtTarget.cs b/src/AutoRest.CSharp/Mgmt/AutoRest/MgmtTarget.cs index 2e4d8b82dd8..de7abdcbad7 100644 --- a/src/AutoRest.CSharp/Mgmt/AutoRest/MgmtTarget.cs +++ b/src/AutoRest.CSharp/Mgmt/AutoRest/MgmtTarget.cs @@ -88,7 +88,7 @@ public static void Execute(GeneratedCodeWorkspace project, CodeModel codeModel, foreach (var operation in context.Library.LongRunningOperations) { var codeWriter = new CodeWriter(); - mgmtLongRunningOperationWriter.Write(codeWriter, operation); + mgmtLongRunningOperationWriter.Write(codeWriter, operation, context); project.AddGeneratedFile($"{operation.Type.Name}.cs", codeWriter.ToString()); } @@ -96,7 +96,7 @@ public static void Execute(GeneratedCodeWorkspace project, CodeModel codeModel, foreach (var operation in context.Library.NonLongRunningOperations) { var codeWriter = new CodeWriter(); - NonLongRunningOperationWriter.Write(codeWriter, operation); + NonLongRunningOperationWriter.Write(codeWriter, operation, context); project.AddGeneratedFile($"{operation.Type.Name}.cs", codeWriter.ToString()); } diff --git a/src/AutoRest.CSharp/Mgmt/Generation/MgmtLongRunningOperationWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/MgmtLongRunningOperationWriter.cs index 4485d7191d7..20411c4d691 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/MgmtLongRunningOperationWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/MgmtLongRunningOperationWriter.cs @@ -7,8 +7,10 @@ using System.Threading.Tasks; using AutoRest.CSharp.Generation.Types; using AutoRest.CSharp.Generation.Writers; +using AutoRest.CSharp.Mgmt.Decorator; using AutoRest.CSharp.Mgmt.Output; using AutoRest.CSharp.Output.Models.Requests; +using AutoRest.CSharp.Output.Models.Types; using Azure; using Azure.Core; using Azure.Core.Pipeline; @@ -45,8 +47,9 @@ protected override CSharpType GetValueTaskType(LongRunningOperation operation) return mgmtOperation.WrapperType != null ? new CSharpType(typeof(Response<>), mgmtOperation.WrapperType) : base.GetValueTaskType(operation); } - protected override void WriteFields(CodeWriter writer, LongRunningOperation operation, PagingResponseInfo? pagingResponse, CSharpType helperType) + protected override void WriteFields(CodeWriter writer, LongRunningOperation operation, PagingResponseInfo? pagingResponse, CSharpType helperType, BuildContext? context) { + Debug.Assert(context != null); base.WriteFields(writer, operation, pagingResponse, helperType); MgmtLongRunningOperation mgmtOperation = AsMgmtOperation(operation); @@ -54,18 +57,23 @@ protected override void WriteFields(CodeWriter writer, LongRunningOperation oper if (mgmtOperation.WrapperType != null) { writer.Line(); - writer.Line($"private readonly {typeof(OperationsBase)} {_operationBaseField};"); + var isTenantResource = (operation.ResultType?.Implementation as MgmtObjectType)?.OperationGroup?.IsTenantResource(context.Configuration.MgmtConfiguration) == true; + var optionType = isTenantResource ? typeof(OperationsBase) : typeof(ResourceOperationsBase); + writer.Line($"private readonly {optionType} {_operationBaseField};"); } } - protected override void WriteConstructor(CodeWriter writer, LongRunningOperation operation, PagingResponseInfo? pagingResponse, CSharpType cs, CSharpType helperType) + protected override void WriteConstructor(CodeWriter writer, LongRunningOperation operation, PagingResponseInfo? pagingResponse, CSharpType cs, CSharpType helperType, BuildContext? context) { + Debug.Assert(context != null); MgmtLongRunningOperation mgmtOperation = AsMgmtOperation(operation); if (mgmtOperation.WrapperType != null) { // pass operationsBase in so that the construction of [Resource] is possible - writer.Append($"internal {cs.Name}({typeof(OperationsBase)} operationsBase, {typeof(ClientDiagnostics)} clientDiagnostics, {typeof(HttpPipeline)} pipeline, {typeof(Request)} request, {typeof(Response)} response"); + var isTenantResource = (operation.ResultType?.Implementation as MgmtObjectType)?.OperationGroup?.IsTenantResource(context.Configuration.MgmtConfiguration) == true; + var optionType = isTenantResource ? typeof(OperationsBase) : typeof(ResourceOperationsBase); + writer.Append($"internal {cs.Name}({optionType} operationsBase, {typeof(ClientDiagnostics)} clientDiagnostics, {typeof(HttpPipeline)} pipeline, {typeof(Request)} request, {typeof(Response)} response"); if (pagingResponse != null) { diff --git a/src/AutoRest.CSharp/Mgmt/Generation/NonLongRunningOperationWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/NonLongRunningOperationWriter.cs index 86aa87c6f21..419b71b2b8a 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/NonLongRunningOperationWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/NonLongRunningOperationWriter.cs @@ -6,7 +6,9 @@ using System.Threading.Tasks; using AutoRest.CSharp.Generation.Types; using AutoRest.CSharp.Generation.Writers; +using AutoRest.CSharp.Mgmt.Decorator; using AutoRest.CSharp.Mgmt.Output; +using AutoRest.CSharp.Output.Models.Types; using Azure; using Azure.Core; using Azure.ResourceManager.Core; @@ -20,7 +22,7 @@ internal class NonLongRunningOperationWriter /// /// /// - public static void Write(CodeWriter writer, NonLongRunningOperation operation) + public static void Write(CodeWriter writer, NonLongRunningOperation operation, BuildContext context) { var responseVariable = "response"; @@ -52,7 +54,9 @@ public static void Write(CodeWriter writer, NonLongRunningOperation operation) if (operation.ResultDataType != null) { // todo: programmatically get the type of operationBase from the definition of [Resource] - writer.Append($"{typeof(OperationsBase)} operationsBase, "); + var isTenantResource = (operation.ResultType?.Implementation as Resource)?.OperationGroup.IsTenantResource(context.Configuration.MgmtConfiguration) == true; + var optionType = isTenantResource ? typeof(OperationsBase) : typeof(ResourceOperationsBase); + writer.Append($"{optionType} operationsBase, "); writer.Append($"{typeof(Response)}<{operation.ResultDataType}> {responseVariable}"); } else diff --git a/src/AutoRest.CSharp/Mgmt/Generation/ResourceContainerWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/ResourceContainerWriter.cs index 4ba2fd72ff6..20c1349ef96 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/ResourceContainerWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/ResourceContainerWriter.cs @@ -65,7 +65,13 @@ public void WriteContainer() string baseClass = GetBaseType(); using (_writer.Scope($"{_resourceContainer.Declaration.Accessibility} partial class {cs.Name:D} : {baseClass}")) { - WriteContainerCtors(_writer, _resourceContainer.Type.Name, "OperationsBase", "parent"); + var isTenantResource = _resourceContainer.OperationGroup.IsTenantResource(_context.Configuration.MgmtConfiguration); + var conextArgumentType = isTenantResource ? "OperationsBase" : "ResourceOperationsBase"; + WriteContainerCtors(_writer, _resourceContainer.Type.Name, conextArgumentType, "parent"); + if (!isTenantResource) + { + WriteParent(_writer); + } WriteFields(_writer, _restClient!); WriteIdProperty(); WriteContainerProperties(_writer, _resourceContainer.GetValidResourceValue()); @@ -76,6 +82,13 @@ public void WriteContainer() } } + private void WriteParent(CodeWriter writer) + { + _writer.Line(); + _writer.WriteXmlDocumentationSummary($"Get the parent resource of this container."); + _writer.Line($"protected new ResourceOperationsBase Parent {{ get {{return base.Parent as ResourceOperationsBase;}} }}"); + } + private void WriteRemainingMethods() { _writer.Line(); @@ -165,7 +178,7 @@ private void WriteCreateOrUpdateVariants(RestClientMethod restClientMethod) if (isLongRunning) { _writer.Append($"return new {lroObjectType}("); - _writer.Append($"this, {ClientDiagnosticsField}, {PipelineProperty}, {RestClientField}.Create{restClientMethod.Name}Request("); + _writer.Append($"{_parentProperty}, {ClientDiagnosticsField}, {PipelineProperty}, {RestClientField}.Create{restClientMethod.Name}Request("); WriteArguments(writer, parameterMapping); _writer.RemoveTrailingComma(); _writer.Append($").Request,"); @@ -174,7 +187,7 @@ private void WriteCreateOrUpdateVariants(RestClientMethod restClientMethod) else { _writer.Append($"return new {lroObjectType}("); - _writer.Append($"this,"); + _writer.Append($"{_parentProperty},"); _writer.Line($"originalResponse);"); } }); @@ -189,7 +202,7 @@ private void WriteCreateOrUpdateVariants(RestClientMethod restClientMethod) if (isLongRunning) { _writer.Append($"return new {lroObjectType}("); - _writer.Append($"this, {ClientDiagnosticsField}, {PipelineProperty}, {RestClientField}.Create{restClientMethod.Name}Request("); + _writer.Append($"{_parentProperty}, {ClientDiagnosticsField}, {PipelineProperty}, {RestClientField}.Create{restClientMethod.Name}Request("); WriteArguments(writer, parameterMapping); _writer.RemoveTrailingComma(); _writer.Append($").Request,"); @@ -198,7 +211,7 @@ private void WriteCreateOrUpdateVariants(RestClientMethod restClientMethod) else { _writer.Append($"return new {lroObjectType}("); - _writer.Append($"this,"); + _writer.Append($"{_parentProperty},"); _writer.Line($"originalResponse);"); } }); @@ -261,7 +274,7 @@ private void WriteGetVariants(RestClientMethod method) _writer.AppendRaw(", "); } _writer.Line($"cancellationToken: cancellationToken);"); - _writer.Line($"return {typeof(Response)}.FromValue(new {_resource.Type}(this, response.Value), response.GetRawResponse());"); + _writer.Line($"return {typeof(Response)}.FromValue(new {_resource.Type}({_parentProperty}, response.Value), response.GetRawResponse());"); }, isOverride: false); _writer.Line(); @@ -275,7 +288,7 @@ private void WriteGetVariants(RestClientMethod method) _writer.AppendRaw(", "); } _writer.Line($"cancellationToken: cancellationToken).ConfigureAwait(false);"); - _writer.Line($"return {typeof(Response)}.FromValue(new {_resource.Type}(this, response.Value), response.GetRawResponse());"); + _writer.Line($"return {typeof(Response)}.FromValue(new {_resource.Type}({_parentProperty}, response.Value), response.GetRawResponse());"); }, isOverride: false); } @@ -283,8 +296,8 @@ private void WriteListVariants() { if (_resourceContainer.ListMethod != null) { - WriteList(_writer, false, _resource.Type, _resourceContainer.ListMethod, $".Select(value => new {_resource.Type.Name}(this, value))"); - WriteList(_writer, true, _resource.Type, _resourceContainer.ListMethod, $".Select(value => new {_resource.Type.Name}(this, value))"); + WriteList(_writer, false, _resource.Type, _resourceContainer.ListMethod, $".Select(value => new {_resource.Type.Name}({_parentProperty}, value))"); + WriteList(_writer, true, _resource.Type, _resourceContainer.ListMethod, $".Select(value => new {_resource.Type.Name}({_parentProperty}, value))"); } WriteListAsGenericResource(async: false); diff --git a/src/AutoRest.CSharp/Mgmt/Generation/ResourceOperationWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/ResourceOperationWriter.cs index 44c45c4bcf0..f2c08f4c7c5 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/ResourceOperationWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/ResourceOperationWriter.cs @@ -140,7 +140,9 @@ private void WriteClientCtors(CodeWriter writer, ResourceOperation resourceOpera writer.WriteXmlDocumentationParameter("id", "The identifier of the resource that is the target of operations."); } var baseConstructorCall = isSingleton ? "base(options)" : "base(options, id)"; - using (writer.Scope($"protected internal {typeOfThis}({typeof(OperationsBase)} options{constructorIdParam}) : {baseConstructorCall}")) + var isTenantResource = resourceOperation.OperationGroup.IsTenantResource(context.Configuration.MgmtConfiguration); + var optionType = isTenantResource ? typeof(OperationsBase) : typeof(ResourceOperationsBase); + using (writer.Scope($"protected internal {typeOfThis}({optionType} options{constructorIdParam}) : {baseConstructorCall}")) { if (!isSingleton) { diff --git a/src/AutoRest.CSharp/Mgmt/Generation/ResourceWriter.cs b/src/AutoRest.CSharp/Mgmt/Generation/ResourceWriter.cs index 48274476d0c..933ef7d7d69 100644 --- a/src/AutoRest.CSharp/Mgmt/Generation/ResourceWriter.cs +++ b/src/AutoRest.CSharp/Mgmt/Generation/ResourceWriter.cs @@ -36,8 +36,9 @@ public void WriteResource(CodeWriter writer, Resource resource, BuildContext Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal Agreement(OperationsBase options, AgreementData resource) : base(options, resource.Id) + internal Agreement(ResourceOperationsBase options, AgreementData resource) : base(options, resource.Id) { Data = resource; } diff --git a/test/TestProjects/TenantOnly/Generated/AgreementContainer.cs b/test/TestProjects/TenantOnly/Generated/AgreementContainer.cs index bbf94316556..c33e00a4a9c 100644 --- a/test/TestProjects/TenantOnly/Generated/AgreementContainer.cs +++ b/test/TestProjects/TenantOnly/Generated/AgreementContainer.cs @@ -25,11 +25,14 @@ protected AgreementContainer() /// Initializes a new instance of AgreementContainer class. /// The resource representing the parent resource. - internal AgreementContainer(OperationsBase parent) : base(parent) + internal AgreementContainer(ResourceOperationsBase parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); } + /// Get the parent resource of this container. + protected new ResourceOperationsBase Parent { get { return base.Parent as ResourceOperationsBase; } } + private readonly ClientDiagnostics _clientDiagnostics; /// Represents the REST operations. @@ -59,7 +62,7 @@ public Response Get(string agreementName, string expand = null, Cance } var response = _restClient.Get(Id.Name, agreementName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new Agreement(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new Agreement(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -84,7 +87,7 @@ public async Task> GetAsync(string agreementName, string exp } var response = await _restClient.GetAsync(Id.Name, agreementName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new Agreement(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new Agreement(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/test/TestProjects/TenantOnly/Generated/AgreementOperations.cs b/test/TestProjects/TenantOnly/Generated/AgreementOperations.cs index 22259c1128e..b25461b1aa4 100644 --- a/test/TestProjects/TenantOnly/Generated/AgreementOperations.cs +++ b/test/TestProjects/TenantOnly/Generated/AgreementOperations.cs @@ -30,7 +30,7 @@ protected AgreementOperations() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - protected internal AgreementOperations(OperationsBase options, TenantResourceIdentifier id) : base(options, id) + protected internal AgreementOperations(ResourceOperationsBase options, TenantResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new AgreementsRestOperations(_clientDiagnostics, Pipeline, BaseUri); diff --git a/test/TestProjects/TenantOnly/Generated/BillingAccountContainer.cs b/test/TestProjects/TenantOnly/Generated/BillingAccountContainer.cs index 4e2e356f7f8..1a9f8a4b7aa 100644 --- a/test/TestProjects/TenantOnly/Generated/BillingAccountContainer.cs +++ b/test/TestProjects/TenantOnly/Generated/BillingAccountContainer.cs @@ -120,7 +120,7 @@ public BillingAccountsUpdateOperation StartCreateOrUpdate(string billingAccountN } var originalResponse = _restClient.Update(billingAccountName, parameters, cancellationToken: cancellationToken); - return new BillingAccountsUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(billingAccountName, parameters).Request, originalResponse); + return new BillingAccountsUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(billingAccountName, parameters).Request, originalResponse); } catch (Exception e) { @@ -149,7 +149,7 @@ public async Task StartCreateOrUpdateAsync(strin } var originalResponse = await _restClient.UpdateAsync(billingAccountName, parameters, cancellationToken: cancellationToken).ConfigureAwait(false); - return new BillingAccountsUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(billingAccountName, parameters).Request, originalResponse); + return new BillingAccountsUpdateOperation(Parent, _clientDiagnostics, Pipeline, _restClient.CreateUpdateRequest(billingAccountName, parameters).Request, originalResponse); } catch (Exception e) { @@ -174,7 +174,7 @@ public Response Get(string billingAccountName, string expand = n } var response = _restClient.Get(billingAccountName, expand, cancellationToken: cancellationToken); - return Response.FromValue(new BillingAccount(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new BillingAccount(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -199,7 +199,7 @@ public async Task> GetAsync(string billingAccountName, } var response = await _restClient.GetAsync(billingAccountName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(new BillingAccount(this, response.Value), response.GetRawResponse()); + return Response.FromValue(new BillingAccount(Parent, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/test/TestProjects/TenantOnly/TenantOnly.csproj b/test/TestProjects/TenantOnly/TenantOnly.csproj index 6216658ba67..46d32d7014c 100644 --- a/test/TestProjects/TenantOnly/TenantOnly.csproj +++ b/test/TestProjects/TenantOnly/TenantOnly.csproj @@ -11,11 +11,12 @@ - + + - + From 3c132d5eb87d6a830bf295975173aa40bbde6e44 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Sat, 10 Jul 2021 21:47:52 +0800 Subject: [PATCH 4/5] revert add resources sample --- eng/Generate.ps1 | 1 - .../Azure.Resources.Sample.csproj | 22 - .../Generated/CodeModel.yaml | 18583 ---------------- .../Generated/Configuration.json | 37 - samples/Azure.Resources.Sample/readme.md | 144 - .../Properties/launchSettings.json | 4 - 6 files changed, 18791 deletions(-) delete mode 100644 samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj delete mode 100644 samples/Azure.Resources.Sample/Generated/CodeModel.yaml delete mode 100644 samples/Azure.Resources.Sample/Generated/Configuration.json delete mode 100644 samples/Azure.Resources.Sample/readme.md diff --git a/eng/Generate.ps1 b/eng/Generate.ps1 index 48ac9648e73..986c7f69761 100644 --- a/eng/Generate.ps1 +++ b/eng/Generate.ps1 @@ -139,7 +139,6 @@ $projectNames = 'Azure.AI.FormRecognizer', 'Azure.Storage.Tables', 'Azure.ResourceManager.Sample', - 'Azure.Resources.Sample', 'Azure.Management.Storage', 'Azure.Network.Management.Interface', 'Azure.AI.DocumentTranslation' diff --git a/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj b/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj deleted file mode 100644 index f80a0ecc713..00000000000 --- a/samples/Azure.Resources.Sample/Azure.Resources.Sample.csproj +++ /dev/null @@ -1,22 +0,0 @@ - - - - netstandard2.0 - true - annotations - - - - true - - - - - - - - - - \ No newline at end of file diff --git a/samples/Azure.Resources.Sample/Generated/CodeModel.yaml b/samples/Azure.Resources.Sample/Generated/CodeModel.yaml deleted file mode 100644 index fed542e913f..00000000000 --- a/samples/Azure.Resources.Sample/Generated/CodeModel.yaml +++ /dev/null @@ -1,18583 +0,0 @@ -!CodeModel -info: !Info - description: Provides operations for working with resources and resource groups. - title: ResourceManagementClient -schemas: !Schemas - booleans: - - !BooleanSchema &ref_9 - type: boolean - language: !Languages - default: - name: Boolean - description: >- - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the - assignment scope. - protocol: !Protocols {} - - !BooleanSchema &ref_262 - type: boolean - language: !Languages - default: - name: Boolean - description: If this is a service role. - protocol: !Protocols {} - - !BooleanSchema &ref_269 - type: boolean - language: !Languages - default: - name: Boolean - description: A value indicating whether authorization is consented or not. - protocol: !Protocols {} - numbers: - - !NumberSchema &ref_339 - type: integer - apiVersions: - - !ApiVersion - version: '2021-04-01' - precision: 32 - language: !Languages - default: - name: Integer - description: '' - protocol: !Protocols {} - - !NumberSchema &ref_479 - type: integer - apiVersions: - - !ApiVersion - version: '2020-09-01' - maximum: 1000 - minimum: 1 - precision: 32 - language: !Languages - default: - name: Integer - description: '' - protocol: !Protocols {} - - !NumberSchema &ref_194 - type: integer - apiVersions: - - !ApiVersion - version: '2021-04-01' - precision: 32 - language: !Languages - default: - name: SkuCapacity - description: The SKU capacity. - protocol: !Protocols {} - - !NumberSchema &ref_227 - type: integer - apiVersions: - - !ApiVersion - version: '2021-04-01' - precision: 32 - language: !Languages - default: - name: TagCountValue - description: Value of count. - protocol: !Protocols {} - strings: - - !StringSchema &ref_0 - type: string - language: !Languages - default: - name: String - description: simple string - protocol: !Protocols {} - - !StringSchema &ref_1 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: '' - header: Location - protocol: !Protocols {} - - !StringSchema &ref_315 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - maxLength: 64 - minLength: 1 - pattern: ^[-\w\._\(\)]+$ - language: !Languages - default: - name: String - description: '' - protocol: !Protocols {} - - !StringSchema &ref_14 - type: string - apiVersions: - - !ApiVersion - version: '1.0' - language: !Languages - default: - name: ErrorResponseCode - description: The error code. - protocol: !Protocols {} - - !StringSchema &ref_15 - type: string - apiVersions: - - !ApiVersion - version: '1.0' - language: !Languages - default: - name: ErrorResponseMessage - description: The error message. - protocol: !Protocols {} - - !StringSchema &ref_16 - type: string - apiVersions: - - !ApiVersion - version: '1.0' - language: !Languages - default: - name: ErrorResponseTarget - description: The error target. - protocol: !Protocols {} - - !StringSchema &ref_18 - type: string - apiVersions: - - !ApiVersion - version: '1.0' - language: !Languages - default: - name: ErrorAdditionalInfoType - description: The additional info type. - protocol: !Protocols {} - - !StringSchema &ref_20 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentLocation - description: The location to store the deployment data. - protocol: !Protocols {} - - !StringSchema &ref_24 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TemplateLinkUri - description: The URI of the template to deploy. Use either the uri or id property, but not both. - protocol: !Protocols {} - - !StringSchema &ref_25 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TemplateLinkId - description: The resource id of a Template Spec. Use either the id or uri property, but not both. - protocol: !Protocols {} - - !StringSchema &ref_26 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TemplateLinkRelativePath - description: >- - The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent - was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs - protocol: !Protocols {} - - !StringSchema &ref_27 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TemplateLinkContentVersion - description: If included, must match the ContentVersion in the template. - protocol: !Protocols {} - - !StringSchema &ref_28 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TemplateLinkQueryString - description: The query string (for example, a SAS token) to be used with the templateLink URI. - protocol: !Protocols {} - - !StringSchema &ref_29 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ParametersLinkUri - description: The URI of the parameters file. - protocol: !Protocols {} - - !StringSchema &ref_30 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ParametersLinkContentVersion - description: If included, must match the ContentVersion in the template. - protocol: !Protocols {} - - !StringSchema &ref_32 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DebugSettingDetailLevel - description: >- - Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this - value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment - operations. - protocol: !Protocols {} - - !StringSchema &ref_34 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: OnErrorDeploymentName - description: The deployment to be used on error case. - protocol: !Protocols {} - - !StringSchema &ref_42 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentExtendedId - description: The ID of the deployment. - protocol: !Protocols {} - - !StringSchema &ref_43 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentExtendedName - description: The name of the deployment. - protocol: !Protocols {} - - !StringSchema &ref_44 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentExtendedType - description: The type of the deployment. - protocol: !Protocols {} - - !StringSchema &ref_45 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentExtendedLocation - description: the location of the deployment. - protocol: !Protocols {} - - !StringSchema &ref_47 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentPropertiesExtendedCorrelationId - description: The correlation ID of the deployment. - protocol: !Protocols {} - - !StringSchema &ref_49 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentPropertiesExtendedDuration - description: The duration of the template deployment. - protocol: !Protocols {} - - !StringSchema &ref_50 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderId - description: The provider ID. - protocol: !Protocols {} - - !StringSchema &ref_51 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderNamespace - description: The namespace of the resource provider. - protocol: !Protocols {} - - !StringSchema &ref_52 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderRegistrationState - description: The registration state of the resource provider. - protocol: !Protocols {} - - !StringSchema &ref_53 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderRegistrationPolicy - description: The registration policy of the resource provider. - protocol: !Protocols {} - - !StringSchema &ref_54 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderResourceType - description: The resource type. - protocol: !Protocols {} - - !StringSchema &ref_55 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderResourceTypeLocationsItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_56 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderExtendedLocation - description: The azure location. - protocol: !Protocols {} - - !StringSchema &ref_57 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderExtendedLocationType - description: The extended location type. - protocol: !Protocols {} - - !StringSchema &ref_58 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderExtendedLocationExtendedLocationsItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_59 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: AliasName - description: The alias name. - protocol: !Protocols {} - - !StringSchema &ref_60 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: AliasPath - description: The path of an alias. - protocol: !Protocols {} - - !StringSchema &ref_61 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: AliasPathApiVersionsItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_62 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: AliasPatternPhrase - description: The alias pattern phrase. - protocol: !Protocols {} - - !StringSchema &ref_63 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: AliasPatternVariable - description: The alias pattern variable. - protocol: !Protocols {} - - !StringSchema &ref_68 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: AliasDefaultPath - description: The default path for an alias. - protocol: !Protocols {} - - !StringSchema &ref_71 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderResourceTypeApiVersionsItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_72 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderResourceTypeDefaultApiVersion - description: The default API version. - protocol: !Protocols {} - - !StringSchema &ref_73 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ApiProfileVersion - description: The profile version. - protocol: !Protocols {} - - !StringSchema &ref_74 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ApiProfileApiVersion - description: The API version. - protocol: !Protocols {} - - !StringSchema &ref_75 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderResourceTypeCapabilities - description: The additional capabilities offered by this resource type. - protocol: !Protocols {} - - !StringSchema &ref_2 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: 'The additional properties. ' - protocol: !Protocols {} - - !StringSchema &ref_78 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: BasicDependencyId - description: The ID of the dependency. - protocol: !Protocols {} - - !StringSchema &ref_79 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: BasicDependencyResourceType - description: The dependency resource type. - protocol: !Protocols {} - - !StringSchema &ref_80 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: BasicDependencyResourceName - description: The dependency resource name. - protocol: !Protocols {} - - !StringSchema &ref_81 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DependencyId - description: The ID of the dependency. - protocol: !Protocols {} - - !StringSchema &ref_82 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DependencyResourceType - description: The dependency resource type. - protocol: !Protocols {} - - !StringSchema &ref_83 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DependencyResourceName - description: The dependency resource name. - protocol: !Protocols {} - - !StringSchema &ref_84 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: OnErrorDeploymentExtendedProvisioningState - description: The state of the provisioning for the on error deployment. - protocol: !Protocols {} - - !StringSchema &ref_85 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: OnErrorDeploymentExtendedDeploymentName - description: The deployment to be used on error case. - protocol: !Protocols {} - - !StringSchema &ref_86 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentPropertiesExtendedTemplateHash - description: The hash produced for the template. - protocol: !Protocols {} - - !StringSchema &ref_87 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceReferenceId - description: The fully qualified resource Id. - protocol: !Protocols {} - - !StringSchema &ref_101 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - - !StringSchema &ref_102 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ScopedDeploymentLocation - description: The location to store the deployment data. - protocol: !Protocols {} - - !StringSchema &ref_104 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ScopedDeploymentWhatIfLocation - description: The location to store the deployment data. - protocol: !Protocols {} - - !StringSchema &ref_106 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: WhatIfOperationResultStatus - description: Status of the What-If operation. - protocol: !Protocols {} - - !StringSchema &ref_107 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: WhatIfChangeResourceId - description: Resource ID - protocol: !Protocols {} - - !StringSchema &ref_109 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: WhatIfChangeUnsupportedReason - description: The explanation about why the resource is unsupported by What-If. - protocol: !Protocols {} - - !StringSchema &ref_110 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: WhatIfPropertyChangePath - description: The path of the property. - protocol: !Protocols {} - - !StringSchema &ref_361 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: '' - header: Retry-After - protocol: !Protocols {} - - !StringSchema &ref_363 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: '' - header: Location - protocol: !Protocols {} - - !StringSchema &ref_366 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - maxLength: 90 - minLength: 1 - language: !Languages - default: - name: String - description: '' - protocol: !Protocols {} - - !StringSchema &ref_386 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: '' - header: Retry-After - protocol: !Protocols {} - - !StringSchema &ref_389 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: '' - header: Location - protocol: !Protocols {} - - !StringSchema &ref_313 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: String - description: '' - protocol: !Protocols {} - - !StringSchema &ref_114 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentWhatIfLocation - description: The location to store the deployment data. - protocol: !Protocols {} - - !StringSchema &ref_409 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: '' - header: Retry-After - protocol: !Protocols {} - - !StringSchema &ref_411 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: '' - header: Location - protocol: !Protocols {} - - !StringSchema &ref_414 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - maxLength: 90 - minLength: 1 - pattern: ^[-\w\._\(\)]+$ - language: !Languages - default: - name: String - description: '' - protocol: !Protocols {} - - !StringSchema &ref_434 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: '' - header: Retry-After - protocol: !Protocols {} - - !StringSchema &ref_10 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: '' - protocol: !Protocols {} - - !StringSchema &ref_115 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentOperationId - description: Full deployment operation ID. - protocol: !Protocols {} - - !StringSchema &ref_116 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentOperationId - description: Deployment operation ID. - protocol: !Protocols {} - - !StringSchema &ref_118 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentOperationPropertiesProvisioningState - description: The state of the provisioning. - protocol: !Protocols {} - - !StringSchema &ref_120 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentOperationPropertiesDuration - description: The duration of the operation. - protocol: !Protocols {} - - !StringSchema &ref_121 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentOperationPropertiesServiceRequestId - description: Deployment operation service request id. - protocol: !Protocols {} - - !StringSchema &ref_122 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentOperationPropertiesStatusCode - description: Operation status code from the resource provider. This property may not be set if a response has not yet been received. - protocol: !Protocols {} - - !StringSchema &ref_123 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: StatusMessageStatus - description: Status of the deployment operation. - protocol: !Protocols {} - - !StringSchema &ref_124 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TargetResourceId - description: The ID of the resource. - protocol: !Protocols {} - - !StringSchema &ref_125 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TargetResourceName - description: The name of the resource. - protocol: !Protocols {} - - !StringSchema &ref_126 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TargetResourceType - description: The type of the resource. - protocol: !Protocols {} - - !StringSchema &ref_132 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentOperationsListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - - !StringSchema &ref_133 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TemplateHashResultMinifiedTemplate - description: The minified template string. - protocol: !Protocols {} - - !StringSchema &ref_134 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TemplateHashResultTemplateHash - description: The template hash. - protocol: !Protocols {} - - !StringSchema &ref_469 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: String - description: '' - protocol: !Protocols {} - - !StringSchema &ref_142 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentPropertiesDisplayName - description: The display name of the policy assignment. - protocol: !Protocols {} - - !StringSchema &ref_143 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentPropertiesPolicyDefinitionId - description: The ID of the policy definition or policy set definition being assigned. - protocol: !Protocols {} - - !StringSchema &ref_144 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentPropertiesScope - description: The scope for the policy assignment. - protocol: !Protocols {} - - !StringSchema &ref_145 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentPropertiesNotScopesItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_147 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentPropertiesDescription - description: This message will be part of response in case of policy violation. - protocol: !Protocols {} - - !StringSchema &ref_149 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: NonComplianceMessage - description: A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. - protocol: !Protocols {} - - !StringSchema &ref_150 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: NonComplianceMessagePolicyDefinitionReferenceId - description: >- - The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If this is not provided the message applies to all - policies assigned by this policy assignment. - protocol: !Protocols {} - - !StringSchema &ref_135 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentId - description: The ID of the policy assignment. - protocol: !Protocols {} - - !StringSchema &ref_136 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentType - description: The type of the policy assignment. - protocol: !Protocols {} - - !StringSchema &ref_137 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentName - description: The name of the policy assignment. - protocol: !Protocols {} - - !StringSchema &ref_138 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentLocation - description: The location of the policy assignment. Only required when utilizing managed identity. - protocol: !Protocols {} - - !StringSchema &ref_139 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: IdentityPrincipalId - description: The principal ID of resource identity. - protocol: !Protocols {} - - !StringSchema &ref_140 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: IdentityTenantId - description: The tenant ID of resource. - protocol: !Protocols {} - - !StringSchema &ref_478 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - maxLength: 90 - minLength: 1 - pattern: ^[-\w\._\(\)]+$ - language: !Languages - default: - name: String - description: '' - protocol: !Protocols {} - - !StringSchema &ref_155 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyAssignmentListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - - !StringSchema &ref_160 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - defaultValue: Indexed - language: !Languages - default: - name: PolicyDefinitionPropertiesMode - description: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data. - protocol: !Protocols {} - - !StringSchema &ref_161 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyDefinitionPropertiesDisplayName - description: The display name of the policy definition. - protocol: !Protocols {} - - !StringSchema &ref_162 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyDefinitionPropertiesDescription - description: The policy definition description. - protocol: !Protocols {} - - !StringSchema &ref_6 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: ParameterDefinitionsValueMetadataDisplayName - description: The display name for the parameter. - protocol: !Protocols {} - - !StringSchema &ref_7 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: ParameterDefinitionsValueMetadataDescription - description: The description of the parameter. - protocol: !Protocols {} - - !StringSchema &ref_8 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: ParameterDefinitionsValueMetadataStrongType - description: Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from. - protocol: !Protocols {} - - !StringSchema &ref_156 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyDefinitionId - description: The ID of the policy definition. - protocol: !Protocols {} - - !StringSchema &ref_157 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyDefinitionName - description: The name of the policy definition. - protocol: !Protocols {} - - !StringSchema &ref_158 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyDefinitionType - description: The type of the resource (Microsoft.Authorization/policyDefinitions). - protocol: !Protocols {} - - !StringSchema &ref_167 - type: string - apiVersions: - - !ApiVersion - version: '2020-09-01' - language: !Languages - default: - name: PolicyDefinitionListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - - !StringSchema &ref_168 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentExtendedFilterProvisioningState - description: The provisioning state. - protocol: !Protocols {} - - !StringSchema &ref_169 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: GenericResourceFilterResourceType - description: The resource type. - protocol: !Protocols {} - - !StringSchema &ref_170 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: GenericResourceFilterTagname - description: The tag name. - protocol: !Protocols {} - - !StringSchema &ref_171 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: GenericResourceFilterTagvalue - description: The tag value. - protocol: !Protocols {} - - !StringSchema &ref_172 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupFilterTagName - description: The tag name. - protocol: !Protocols {} - - !StringSchema &ref_173 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupFilterTagValue - description: The tag value. - protocol: !Protocols {} - - !StringSchema &ref_174 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - - !StringSchema &ref_175 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderResourceTypeListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - - !StringSchema &ref_196 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceId - description: Resource ID - protocol: !Protocols {} - - !StringSchema &ref_197 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceName - description: Resource name - protocol: !Protocols {} - - !StringSchema &ref_198 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceType - description: Resource type - protocol: !Protocols {} - - !StringSchema &ref_199 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceLocation - description: Resource location - protocol: !Protocols {} - - !StringSchema &ref_201 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ExtendedLocationName - description: The extended location name. - protocol: !Protocols {} - - !StringSchema &ref_182 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: PlanName - description: The plan ID. - protocol: !Protocols {} - - !StringSchema &ref_183 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: PlanPublisher - description: The publisher ID. - protocol: !Protocols {} - - !StringSchema &ref_184 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: PlanProduct - description: The offer ID. - protocol: !Protocols {} - - !StringSchema &ref_185 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: PlanPromotionCode - description: The promotion code. - protocol: !Protocols {} - - !StringSchema &ref_186 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: PlanVersion - description: The plan's version. - protocol: !Protocols {} - - !StringSchema &ref_187 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - pattern: ^[-\w\._,\(\)]+$ - language: !Languages - default: - name: GenericResourceKind - description: The kind of the resource. - protocol: !Protocols {} - - !StringSchema &ref_188 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: GenericResourceManagedBy - description: ID of the resource that manages this resource. - protocol: !Protocols {} - - !StringSchema &ref_189 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: SkuName - description: The SKU name. - protocol: !Protocols {} - - !StringSchema &ref_190 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: SkuTier - description: The SKU tier. - protocol: !Protocols {} - - !StringSchema &ref_191 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: SkuSize - description: The SKU size. - protocol: !Protocols {} - - !StringSchema &ref_192 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: SkuFamily - description: The SKU family. - protocol: !Protocols {} - - !StringSchema &ref_193 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: SkuModel - description: The SKU model. - protocol: !Protocols {} - - !StringSchema &ref_11 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: IdentityUserAssignedIdentitiesProperties - description: The principal id of user assigned identity. - protocol: !Protocols {} - - !StringSchema &ref_12 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: The client id of user assigned identity. - protocol: !Protocols {} - - !StringSchema &ref_180 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: GenericResourceExpandedProvisioningState - description: The provisioning state of the resource. This is only present if requested via the $expand query parameter. - protocol: !Protocols {} - - !StringSchema &ref_208 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - - !StringSchema &ref_209 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupId - description: The ID of the resource group. - protocol: !Protocols {} - - !StringSchema &ref_210 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupName - description: The name of the resource group. - protocol: !Protocols {} - - !StringSchema &ref_211 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupType - description: The type of the resource group. - protocol: !Protocols {} - - !StringSchema &ref_212 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupPropertiesProvisioningState - description: 'The provisioning state. ' - protocol: !Protocols {} - - !StringSchema &ref_213 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupLocation - description: The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations. - protocol: !Protocols {} - - !StringSchema &ref_214 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupManagedBy - description: The ID of the resource that manages this resource group. - protocol: !Protocols {} - - !StringSchema &ref_217 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupPatchableName - description: The name of the resource group. - protocol: !Protocols {} - - !StringSchema &ref_218 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupPatchableManagedBy - description: The ID of the resource that manages this resource group. - protocol: !Protocols {} - - !StringSchema &ref_221 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceGroupListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - - !StringSchema &ref_222 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourcesMoveInfoResourcesItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_223 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourcesMoveInfoTargetResourceGroup - description: The target resource group. - protocol: !Protocols {} - - !StringSchema &ref_224 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ExportTemplateRequestResourcesItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_225 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ExportTemplateRequestOptions - description: 'The export template options. A CSV-formatted list containing zero or more of the following: ''IncludeParameterDefaultValue'', ''IncludeComments'', ''SkipResourceNameParameterization'', ''SkipAllParameterization''' - protocol: !Protocols {} - - !StringSchema &ref_226 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TagCountType - description: Type of count. - protocol: !Protocols {} - - !StringSchema &ref_228 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TagValueId - description: The tag value ID. - protocol: !Protocols {} - - !StringSchema &ref_229 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TagValue - description: The tag value. - protocol: !Protocols {} - - !StringSchema &ref_231 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TagDetailsId - description: The tag name ID. - protocol: !Protocols {} - - !StringSchema &ref_232 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TagDetailsTagName - description: The tag name. - protocol: !Protocols {} - - !StringSchema &ref_235 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TagsListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - - !StringSchema &ref_236 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceProviderOperationDisplayPropertiesPublisher - description: Operation description. - protocol: !Protocols {} - - !StringSchema &ref_237 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceProviderOperationDisplayPropertiesProvider - description: Operation provider. - protocol: !Protocols {} - - !StringSchema &ref_238 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceProviderOperationDisplayPropertiesResource - description: Operation resource. - protocol: !Protocols {} - - !StringSchema &ref_239 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceProviderOperationDisplayPropertiesOperation - description: Resource provider operation. - protocol: !Protocols {} - - !StringSchema &ref_240 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ResourceProviderOperationDisplayPropertiesDescription - description: Operation description. - protocol: !Protocols {} - - !StringSchema &ref_241 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: SubResourceId - description: Resource ID - protocol: !Protocols {} - - !StringSchema &ref_242 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: OperationName - description: 'Operation name: {provider}/{resource}/{operation}' - protocol: !Protocols {} - - !StringSchema &ref_243 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: OperationDisplayProvider - description: 'Service provider: Microsoft.Resources' - protocol: !Protocols {} - - !StringSchema &ref_244 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: OperationDisplayResource - description: 'Resource on which the operation is performed: Profile, endpoint, etc.' - protocol: !Protocols {} - - !StringSchema &ref_245 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: OperationDisplayOperation - description: 'Operation type: Read, write, delete, etc.' - protocol: !Protocols {} - - !StringSchema &ref_246 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: OperationDisplayDescription - description: Description of the operation. - protocol: !Protocols {} - - !StringSchema &ref_249 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: OperationListResultNextLink - description: URL to get the next set of operation list results if there are any. - protocol: !Protocols {} - - !StringSchema &ref_13 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: String - description: The tag value. - protocol: !Protocols {} - - !StringSchema &ref_253 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TagsResourceId - description: The ID of the tags wrapper resource. - protocol: !Protocols {} - - !StringSchema &ref_254 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TagsResourceName - description: The name of the tags wrapper resource. - protocol: !Protocols {} - - !StringSchema &ref_255 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: TagsResourceType - description: The type of the tags wrapper resource. - protocol: !Protocols {} - - !StringSchema &ref_256 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: PermissionActionsItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_257 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: PermissionNotActionsItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_258 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: PermissionDataActionsItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_259 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: PermissionNotDataActionsItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_260 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: RoleDefinitionId - description: The role definition ID. - protocol: !Protocols {} - - !StringSchema &ref_261 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: RoleDefinitionName - description: The role definition name. - protocol: !Protocols {} - - !StringSchema &ref_264 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: RoleDefinitionScopesItem - description: '' - protocol: !Protocols {} - - !StringSchema &ref_265 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderPermissionApplicationId - description: The application id. - protocol: !Protocols {} - - !StringSchema &ref_268 - type: string - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: ProviderPermissionListResultNextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - choices: - - !ChoiceSchema &ref_35 - choices: - - !ChoiceValue - value: NotSpecified - language: - default: - name: NotSpecified - description: '' - - !ChoiceValue - value: Outer - language: - default: - name: Outer - description: '' - - !ChoiceValue - value: Inner - language: - default: - name: Inner - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: ExpressionEvaluationOptionsScopeType - description: The scope to be used for evaluation of parameters, variables and functions in a nested template. - protocol: !Protocols {} - - !ChoiceSchema &ref_46 - choices: - - !ChoiceValue - value: NotSpecified - language: - default: - name: NotSpecified - description: '' - - !ChoiceValue - value: Accepted - language: - default: - name: Accepted - description: '' - - !ChoiceValue - value: Running - language: - default: - name: Running - description: '' - - !ChoiceValue - value: Ready - language: - default: - name: Ready - description: '' - - !ChoiceValue - value: Creating - language: - default: - name: Creating - description: '' - - !ChoiceValue - value: Created - language: - default: - name: Created - description: '' - - !ChoiceValue - value: Deleting - language: - default: - name: Deleting - description: '' - - !ChoiceValue - value: Deleted - language: - default: - name: Deleted - description: '' - - !ChoiceValue - value: Canceled - language: - default: - name: Canceled - description: '' - - !ChoiceValue - value: Failed - language: - default: - name: Failed - description: '' - - !ChoiceValue - value: Succeeded - language: - default: - name: Succeeded - description: '' - - !ChoiceValue - value: Updating - language: - default: - name: Updating - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: ProvisioningState - description: Denotes the state of provisioning. - protocol: !Protocols {} - - !ChoiceSchema &ref_65 - choices: - - !ChoiceValue - value: NotSpecified - language: - default: - name: NotSpecified - description: The token type is not specified. - - !ChoiceValue - value: Any - language: - default: - name: Any - description: The token type can be anything. - - !ChoiceValue - value: String - language: - default: - name: String - description: The token type is string. - - !ChoiceValue - value: Object - language: - default: - name: Object - description: The token type is object. - - !ChoiceValue - value: Array - language: - default: - name: Array - description: The token type is array. - - !ChoiceValue - value: Integer - language: - default: - name: Integer - description: The token type is integer. - - !ChoiceValue - value: Number - language: - default: - name: Number - description: The token type is number. - - !ChoiceValue - value: Boolean - language: - default: - name: Boolean - description: The token type is boolean. - type: choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: AliasPathTokenType - description: The type of the token that the alias path is referring to. - protocol: !Protocols {} - - !ChoiceSchema &ref_66 - choices: - - !ChoiceValue - value: None - language: - default: - name: None - description: The token that the alias path is referring to has no attributes. - - !ChoiceValue - value: Modifiable - language: - default: - name: Modifiable - description: The token that the alias path is referring to is modifiable by policies with 'modify' effect. - type: choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: AliasPathAttributes - description: The attributes of the token that the alias path is referring to. - protocol: !Protocols {} - - !ChoiceSchema &ref_77 - choices: - - !ChoiceValue - value: NotSpecified - language: - default: - name: NotSpecified - description: '' - - !ChoiceValue - value: Required - language: - default: - name: Required - description: '' - - !ChoiceValue - value: NotRequired - language: - default: - name: NotRequired - description: '' - - !ChoiceValue - value: Consented - language: - default: - name: Consented - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: ProviderAuthorizationConsentState - description: The provider authorization consent state. - protocol: !Protocols {} - - !ChoiceSchema &ref_148 - choices: - - !ChoiceValue - value: Default - language: - default: - name: Default - description: The policy effect is enforced during resource creation or update. - - !ChoiceValue - value: DoNotEnforce - language: - default: - name: DoNotEnforce - description: The policy effect is not enforced during resource creation or update. - type: choice - apiVersions: - - !ApiVersion - version: '2020-09-01' - choiceType: *ref_0 - defaultValue: Default - language: !Languages - default: - name: EnforcementMode - description: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. - protocol: !Protocols {} - - !ChoiceSchema &ref_159 - choices: - - !ChoiceValue - value: NotSpecified - language: - default: - name: NotSpecified - description: '' - - !ChoiceValue - value: BuiltIn - language: - default: - name: BuiltIn - description: '' - - !ChoiceValue - value: Custom - language: - default: - name: Custom - description: '' - - !ChoiceValue - value: Static - language: - default: - name: Static - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2020-09-01' - choiceType: *ref_0 - language: !Languages - default: - name: PolicyType - description: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. - protocol: !Protocols {} - - !ChoiceSchema &ref_4 - choices: - - !ChoiceValue - value: String - language: - default: - name: String - description: '' - - !ChoiceValue - value: Array - language: - default: - name: Array - description: '' - - !ChoiceValue - value: Object - language: - default: - name: Object - description: '' - - !ChoiceValue - value: Boolean - language: - default: - name: Boolean - description: '' - - !ChoiceValue - value: Integer - language: - default: - name: Integer - description: '' - - !ChoiceValue - value: Float - language: - default: - name: Float - description: '' - - !ChoiceValue - value: DateTime - language: - default: - name: DateTime - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2020-09-01' - choiceType: *ref_0 - language: !Languages - default: - name: ParameterType - description: The data type of the parameter. - protocol: !Protocols {} - - !ChoiceSchema &ref_200 - choices: - - !ChoiceValue - value: EdgeZone - language: - default: - name: EdgeZone - description: '' - type: choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: ExtendedLocationType - description: The extended location type. - protocol: !Protocols {} - - !ChoiceSchema &ref_251 - choices: - - !ChoiceValue - value: Replace - language: - default: - name: Replace - description: The 'replace' option replaces the entire set of existing tags with a new set. - - !ChoiceValue - value: Merge - language: - default: - name: Merge - description: The 'merge' option allows adding tags with new names and updating the values of tags with existing names. - - !ChoiceValue - value: Delete - language: - default: - name: Delete - description: The 'delete' option allows selectively deleting tags based on given names or name/value pairs. - type: choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: TagsPatchOperation - description: The operation type for the patch API. - protocol: !Protocols {} - sealedChoices: - - !SealedChoiceSchema &ref_31 - choices: - - !ChoiceValue - value: Incremental - language: - default: - name: Incremental - description: '' - - !ChoiceValue - value: Complete - language: - default: - name: Complete - description: '' - type: sealed-choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: DeploymentMode - description: >- - The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete - mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. - protocol: !Protocols {} - - !SealedChoiceSchema &ref_33 - choices: - - !ChoiceValue - value: LastSuccessful - language: - default: - name: LastSuccessful - description: '' - - !ChoiceValue - value: SpecificDeployment - language: - default: - name: SpecificDeployment - description: '' - type: sealed-choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: OnErrorDeploymentType - description: The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. - protocol: !Protocols {} - - !SealedChoiceSchema &ref_64 - choices: - - !ChoiceValue - value: NotSpecified - language: - default: - name: NotSpecified - description: NotSpecified is not allowed. - - !ChoiceValue - value: Extract - language: - default: - name: Extract - description: Extract is the only allowed value. - type: sealed-choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: AliasPatternType - description: The type of alias pattern - protocol: !Protocols {} - - !SealedChoiceSchema &ref_67 - choices: - - !ChoiceValue - value: NotSpecified - language: - default: - name: NotSpecified - description: Alias type is unknown (same as not providing alias type). - - !ChoiceValue - value: PlainText - language: - default: - name: PlainText - description: Alias value is not secret. - - !ChoiceValue - value: Mask - language: - default: - name: Mask - description: Alias value is secret. - type: sealed-choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: AliasType - description: The type of the alias. - protocol: !Protocols {} - - !SealedChoiceSchema &ref_22 - choices: - - !ChoiceValue - value: ResourceIdOnly - language: - default: - name: ResourceIdOnly - description: '' - - !ChoiceValue - value: FullResourcePayloads - language: - default: - name: FullResourcePayloads - description: '' - type: sealed-choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: WhatIfResultFormat - description: The format of the What-If results - protocol: !Protocols {} - - !SealedChoiceSchema &ref_108 - choices: - - !ChoiceValue - value: Create - language: - default: - name: Create - description: The resource does not exist in the current state but is present in the desired state. The resource will be created when the deployment is executed. - - !ChoiceValue - value: Delete - language: - default: - name: Delete - description: The resource exists in the current state and is missing from the desired state. The resource will be deleted when the deployment is executed. - - !ChoiceValue - value: Ignore - language: - default: - name: Ignore - description: The resource exists in the current state and is missing from the desired state. The resource will not be deployed or modified when the deployment is executed. - - !ChoiceValue - value: Deploy - language: - default: - name: Deploy - description: The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource may or may not change. - - !ChoiceValue - value: NoChange - language: - default: - name: NoChange - description: The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource will not change. - - !ChoiceValue - value: Modify - language: - default: - name: Modify - description: The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource will change. - - !ChoiceValue - value: Unsupported - language: - default: - name: Unsupported - description: The resource is not supported by What-If. - type: sealed-choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: ChangeType - description: Type of change that will be made to the resource when the deployment is executed. - protocol: !Protocols {} - - !SealedChoiceSchema &ref_111 - choices: - - !ChoiceValue - value: Create - language: - default: - name: Create - description: The property does not exist in the current state but is present in the desired state. The property will be created when the deployment is executed. - - !ChoiceValue - value: Delete - language: - default: - name: Delete - description: The property exists in the current state and is missing from the desired state. It will be deleted when the deployment is executed. - - !ChoiceValue - value: Modify - language: - default: - name: Modify - description: The property exists in both current and desired state and is different. The value of the property will change when the deployment is executed. - - !ChoiceValue - value: Array - language: - default: - name: Array - description: The property is an array and contains nested changes. - - !ChoiceValue - value: NoEffect - language: - default: - name: NoEffect - description: The property will not be set or updated. - type: sealed-choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: PropertyChangeType - description: The type of property change. - protocol: !Protocols {} - - !SealedChoiceSchema &ref_117 - choices: - - !ChoiceValue - value: NotSpecified - language: - default: - name: NotSpecified - description: The provisioning operation is not specified. - - !ChoiceValue - value: Create - language: - default: - name: Create - description: The provisioning operation is create. - - !ChoiceValue - value: Delete - language: - default: - name: Delete - description: The provisioning operation is delete. - - !ChoiceValue - value: Waiting - language: - default: - name: Waiting - description: The provisioning operation is waiting. - - !ChoiceValue - value: AzureAsyncOperationWaiting - language: - default: - name: AzureAsyncOperationWaiting - description: The provisioning operation is waiting Azure async operation. - - !ChoiceValue - value: ResourceCacheWaiting - language: - default: - name: ResourceCacheWaiting - description: The provisioning operation is waiting for resource cache. - - !ChoiceValue - value: Action - language: - default: - name: Action - description: The provisioning operation is action. - - !ChoiceValue - value: Read - language: - default: - name: Read - description: The provisioning operation is read. - - !ChoiceValue - value: EvaluateDeploymentOutput - language: - default: - name: EvaluateDeploymentOutput - description: The provisioning operation is evaluate output. - - !ChoiceValue - value: DeploymentCleanup - language: - default: - name: DeploymentCleanup - description: The provisioning operation is cleanup. This operation is part of the 'complete' mode deployment. - type: sealed-choice - apiVersions: - - !ApiVersion - version: '2021-04-01' - choiceType: *ref_0 - language: !Languages - default: - name: ProvisioningOperation - description: The name of the current provisioning operation. - protocol: !Protocols {} - - !SealedChoiceSchema &ref_141 - choices: - - !ChoiceValue - value: SystemAssigned - language: - default: - name: SystemAssigned - description: Indicates that a system assigned identity is associated with the resource. - - !ChoiceValue - value: None - language: - default: - name: None - description: Indicates that no identity is associated with the resource or that the existing identity should be removed. - type: sealed-choice - apiVersions: - - !ApiVersion - version: '2020-09-01' - choiceType: *ref_0 - language: !Languages - default: - name: ResourceIdentityType - description: The identity type. This is the only required field when adding a system assigned identity to a resource. - protocol: !Protocols {} - constants: - - !ConstantSchema &ref_316 - type: constant - value: !ConstantValue - value: '2021-04-01' - valueType: *ref_0 - language: !Languages - default: - name: ApiVersion20210401 - description: Api Version (2021-04-01) - protocol: !Protocols {} - - !ConstantSchema &ref_317 - type: constant - value: !ConstantValue - value: application/json - valueType: *ref_0 - language: !Languages - default: - name: Accept - description: 'Accept: application/json' - protocol: !Protocols {} - - !ConstantSchema &ref_323 - type: constant - value: !ConstantValue - value: application/json - valueType: *ref_0 - language: !Languages - default: - name: ApplicationJson - description: Content Type 'application/json' - protocol: !Protocols {} - - !ConstantSchema &ref_470 - type: constant - value: !ConstantValue - value: '2020-09-01' - valueType: *ref_0 - language: !Languages - default: - name: ApiVersion20200901 - description: Api Version (2020-09-01) - protocol: !Protocols {} - dictionaries: - - !DictionarySchema &ref_36 - type: dictionary - elementType: *ref_1 - language: !Languages - default: - name: DeploymentTags - description: Deployment tags - protocol: !Protocols {} - - !DictionarySchema &ref_76 - type: dictionary - elementType: *ref_2 - language: !Languages - default: - name: ProviderResourceTypeProperties - description: The properties. - protocol: !Protocols {} - - !DictionarySchema &ref_89 - type: dictionary - elementType: *ref_1 - language: !Languages - default: - name: DeploymentExtendedTags - description: Deployment tags - protocol: !Protocols {} - - !DictionarySchema &ref_103 - type: dictionary - elementType: *ref_1 - language: !Languages - default: - name: ScopedDeploymentTags - description: Deployment tags - protocol: !Protocols {} - - !DictionarySchema &ref_146 - type: dictionary - elementType: !ObjectSchema &ref_151 - type: object - apiVersions: - - !ApiVersion - version: '2020-09-01' - properties: - - !Property - schema: !AnyObjectSchema &ref_3 - type: any-object - language: !Languages - default: - name: AnyObject - description: Any object - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: The value of the parameter. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: ParameterValuesValue - description: The value of a parameter. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ParameterValues - description: The parameter values for the policy rule. The keys are the parameter names. - protocol: !Protocols {} - - !DictionarySchema &ref_5 - type: dictionary - elementType: *ref_3 - language: !Languages - default: - name: ParameterDefinitionsValueMetadata - description: General metadata for the parameter. - protocol: !Protocols {} - - !DictionarySchema &ref_163 - type: dictionary - elementType: !ObjectSchema &ref_164 - type: object - apiVersions: - - !ApiVersion - version: '2020-09-01' - properties: - - !Property - schema: *ref_4 - serializedName: type - language: !Languages - default: - name: type - description: The data type of the parameter. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_295 - type: array - apiVersions: - - !ApiVersion - version: '2020-09-01' - elementType: *ref_3 - language: !Languages - default: - name: ParameterDefinitionsValueAllowedValues - description: The allowed values for the parameter. - protocol: !Protocols {} - serializedName: allowedValues - language: !Languages - default: - name: allowedValues - description: The allowed values for the parameter. - protocol: !Protocols {} - - !Property - schema: *ref_3 - serializedName: defaultValue - language: !Languages - default: - name: defaultValue - description: The default value for the parameter if no value is provided. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_165 - type: object - apiVersions: - - !ApiVersion - version: '2020-09-01' - parents: !Relations - all: - - *ref_5 - immediate: - - *ref_5 - properties: - - !Property - schema: *ref_6 - serializedName: displayName - language: !Languages - default: - name: displayName - description: The display name for the parameter. - protocol: !Protocols {} - - !Property - schema: *ref_7 - serializedName: description - language: !Languages - default: - name: description - description: The description of the parameter. - protocol: !Protocols {} - - !Property - schema: *ref_8 - serializedName: strongType - language: !Languages - default: - name: strongType - description: Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from. - protocol: !Protocols {} - - !Property - schema: *ref_9 - serializedName: assignPermissions - language: !Languages - default: - name: assignPermissions - description: >- - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside - the assignment scope. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - - output - extensions: - x-internal-autorest-anonymous-schema: - anonymous: true - language: !Languages - default: - name: ParameterDefinitionsValueMetadata - description: General metadata for the parameter. - namespace: '' - protocol: !Protocols {} - serializedName: metadata - language: !Languages - default: - name: metadata - description: General metadata for the parameter. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - - output - language: !Languages - default: - name: ParameterDefinitionsValue - description: The definition of a parameter that can be provided to the policy. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ParameterDefinitions - description: The parameter definitions for parameters used in the policy. The keys are the parameter names. - protocol: !Protocols {} - - !DictionarySchema &ref_202 - type: dictionary - elementType: *ref_10 - language: !Languages - default: - name: ResourceTags - description: Resource tags - protocol: !Protocols {} - - !DictionarySchema &ref_195 - type: dictionary - elementType: !ObjectSchema &ref_207 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_11 - readOnly: true - serializedName: principalId - language: !Languages - default: - name: principalId - description: The principal id of user assigned identity. - protocol: !Protocols {} - - !Property - schema: *ref_12 - readOnly: true - serializedName: clientId - language: !Languages - default: - name: clientId - description: The client id of user assigned identity. - protocol: !Protocols {} - language: !Languages - default: - name: IdentityUserAssignedIdentitiesValue - description: '' - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: IdentityUserAssignedIdentities - description: >- - The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - protocol: !Protocols {} - - !DictionarySchema &ref_215 - type: dictionary - elementType: *ref_2 - language: !Languages - default: - name: ResourceGroupTags - description: The tags attached to the resource group. - protocol: !Protocols {} - - !DictionarySchema &ref_219 - type: dictionary - elementType: *ref_2 - language: !Languages - default: - name: ResourceGroupPatchableTags - description: The tags attached to the resource group. - protocol: !Protocols {} - - !DictionarySchema &ref_250 - type: dictionary - elementType: *ref_13 - language: !Languages - default: - name: Tags - description: Dictionary of - protocol: !Protocols {} - anyObjects: - - *ref_3 - dateTimes: - - !DateTimeSchema &ref_48 - type: date-time - format: date-time - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentPropertiesExtendedTimestamp - description: The timestamp of the template deployment. - protocol: !Protocols {} - - !DateTimeSchema &ref_119 - type: date-time - format: date-time - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: DeploymentOperationPropertiesTimestamp - description: The date and time of the operation. - protocol: !Protocols {} - - !DateTimeSchema &ref_178 - type: date-time - format: date-time - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: GenericResourceExpandedCreatedTime - description: The created time of the resource. This is only present if requested via the $expand query parameter. - protocol: !Protocols {} - - !DateTimeSchema &ref_179 - type: date-time - format: date-time - apiVersions: - - !ApiVersion - version: '2021-04-01' - language: !Languages - default: - name: GenericResourceExpandedChangedTime - description: The changed time of the resource. This is only present if requested via the $expand query parameter. - protocol: !Protocols {} - objects: - - !ObjectSchema &ref_320 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - - !ApiVersion - version: '2020-09-01' - properties: - - !Property - schema: !ObjectSchema &ref_17 - type: object - apiVersions: - - !ApiVersion - version: '1.0' - properties: - - !Property - schema: *ref_14 - readOnly: true - serializedName: code - language: !Languages - default: - name: code - description: The error code. - protocol: !Protocols {} - - !Property - schema: *ref_15 - readOnly: true - serializedName: message - language: !Languages - default: - name: message - description: The error message. - protocol: !Protocols {} - - !Property - schema: *ref_16 - readOnly: true - serializedName: target - language: !Languages - default: - name: target - description: The error target. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_271 - type: array - apiVersions: - - !ApiVersion - version: '1.0' - elementType: *ref_17 - language: !Languages - default: - name: ErrorResponseDetails - description: The error details. - protocol: !Protocols {} - readOnly: true - serializedName: details - language: !Languages - default: - name: details - description: The error details. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_272 - type: array - apiVersions: - - !ApiVersion - version: '1.0' - elementType: !ObjectSchema &ref_19 - type: object - apiVersions: - - !ApiVersion - version: '1.0' - properties: - - !Property - schema: *ref_18 - readOnly: true - serializedName: type - language: !Languages - default: - name: type - description: The additional info type. - protocol: !Protocols {} - - !Property - schema: *ref_3 - readOnly: true - serializedName: info - language: !Languages - default: - name: info - description: The additional info. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - exception - - output - language: !Languages - default: - name: ErrorAdditionalInfo - description: The resource management error additional info. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ErrorResponseAdditionalInfo - description: The error additional info. - protocol: !Protocols {} - readOnly: true - serializedName: additionalInfo - language: !Languages - default: - name: additionalInfo - description: The error additional info. - protocol: !Protocols {} - serializationFormats: - - json - summary: Error Response - usage: - - exception - - output - language: !Languages - default: - name: ErrorResponse - description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) - namespace: '' - summary: Error Response - protocol: !Protocols {} - serializedName: error - language: !Languages - default: - name: error - description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) - protocol: !Protocols {} - serializationFormats: - - json - usage: - - exception - extensions: - x-ms-external: true - language: !Languages - default: - name: CloudError - description: An error response for a resource management request. - namespace: '' - protocol: !Protocols {} - - *ref_17 - - *ref_19 - - !ObjectSchema &ref_324 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_20 - required: false - serializedName: location - language: !Languages - default: - name: location - description: The location to store the deployment data. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_21 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - children: !Relations - all: - - !ObjectSchema &ref_23 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - parents: !Relations - all: - - *ref_21 - immediate: - - *ref_21 - properties: - - !Property - schema: !ObjectSchema &ref_105 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_22 - serializedName: resultFormat - language: !Languages - default: - name: resultFormat - description: The format of the What-If results - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: DeploymentWhatIfSettings - description: Deployment What-If operation settings. - namespace: '' - protocol: !Protocols {} - serializedName: whatIfSettings - language: !Languages - default: - name: whatIfSettings - description: Optional What-If operation settings. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: DeploymentWhatIfProperties - description: Deployment What-if properties. - namespace: '' - protocol: !Protocols {} - immediate: - - *ref_23 - properties: - - !Property - schema: *ref_3 - required: false - serializedName: template - language: !Languages - default: - name: template - description: >- - The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the - templateLink property or the template property, but not both. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_37 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_24 - serializedName: uri - language: !Languages - default: - name: uri - description: The URI of the template to deploy. Use either the uri or id property, but not both. - protocol: !Protocols {} - - !Property - schema: *ref_25 - serializedName: id - language: !Languages - default: - name: id - description: The resource id of a Template Spec. Use either the id or uri property, but not both. - protocol: !Protocols {} - - !Property - schema: *ref_26 - serializedName: relativePath - language: !Languages - default: - name: relativePath - description: >- - The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. - If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs - protocol: !Protocols {} - - !Property - schema: *ref_27 - serializedName: contentVersion - language: !Languages - default: - name: contentVersion - description: If included, must match the ContentVersion in the template. - protocol: !Protocols {} - - !Property - schema: *ref_28 - serializedName: queryString - language: !Languages - default: - name: queryString - description: The query string (for example, a SAS token) to be used with the templateLink URI. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - - output - language: !Languages - default: - name: TemplateLink - description: Entity representing the reference to the template. - namespace: '' - protocol: !Protocols {} - required: false - serializedName: templateLink - language: !Languages - default: - name: templateLink - description: The URI of the template. Use either the templateLink property or the template property, but not both. - protocol: !Protocols {} - - !Property - schema: *ref_3 - required: false - serializedName: parameters - language: !Languages - default: - name: parameters - description: >- - Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. - Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_38 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_29 - required: true - serializedName: uri - language: !Languages - default: - name: uri - description: The URI of the parameters file. - protocol: !Protocols {} - - !Property - schema: *ref_30 - required: false - serializedName: contentVersion - language: !Languages - default: - name: contentVersion - description: If included, must match the ContentVersion in the template. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - - output - language: !Languages - default: - name: ParametersLink - description: Entity representing the reference to the deployment parameters. - namespace: '' - protocol: !Protocols {} - required: false - serializedName: parametersLink - language: !Languages - default: - name: parametersLink - description: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. - protocol: !Protocols {} - - !Property - schema: *ref_31 - required: true - serializedName: mode - language: !Languages - default: - name: mode - description: >- - The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In - Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_39 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_32 - serializedName: detailLevel - language: !Languages - default: - name: detailLevel - description: >- - Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When - setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is - retrieved through the deployment operations. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - - output - language: !Languages - default: - name: DebugSetting - description: The debug setting. - namespace: '' - protocol: !Protocols {} - required: false - serializedName: debugSetting - language: !Languages - default: - name: debugSetting - description: The debug setting of the deployment. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_40 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_33 - serializedName: type - language: !Languages - default: - name: type - description: The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. - protocol: !Protocols {} - - !Property - schema: *ref_34 - serializedName: deploymentName - language: !Languages - default: - name: deploymentName - description: The deployment to be used on error case. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: OnErrorDeployment - description: Deployment on error behavior. - namespace: '' - protocol: !Protocols {} - required: false - serializedName: onErrorDeployment - language: !Languages - default: - name: onErrorDeployment - description: The deployment on error behavior. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_41 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_35 - serializedName: scope - language: !Languages - default: - name: scope - description: The scope to be used for evaluation of parameters, variables and functions in a nested template. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: ExpressionEvaluationOptions - description: Specifies whether template expressions are evaluated within the scope of the parent template or nested template. - namespace: '' - protocol: !Protocols {} - required: false - serializedName: expressionEvaluationOptions - language: !Languages - default: - name: expressionEvaluationOptions - description: Specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable to nested templates. If not specified, default value is outer. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: DeploymentProperties - description: Deployment properties. - namespace: '' - protocol: !Protocols {} - required: true - serializedName: properties - language: !Languages - default: - name: properties - description: The deployment properties. - protocol: !Protocols {} - - !Property - schema: *ref_36 - required: false - serializedName: tags - language: !Languages - default: - name: tags - description: Deployment tags - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: Deployment - description: Deployment operation parameters. - namespace: '' - protocol: !Protocols {} - - *ref_21 - - *ref_37 - - *ref_38 - - *ref_39 - - *ref_40 - - *ref_41 - - !ObjectSchema &ref_100 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_42 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The ID of the deployment. - protocol: !Protocols {} - - !Property - schema: *ref_43 - readOnly: true - serializedName: name - language: !Languages - default: - name: name - description: The name of the deployment. - protocol: !Protocols {} - - !Property - schema: *ref_44 - readOnly: true - serializedName: type - language: !Languages - default: - name: type - description: The type of the deployment. - protocol: !Protocols {} - - !Property - schema: *ref_45 - serializedName: location - language: !Languages - default: - name: location - description: the location of the deployment. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_90 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_46 - readOnly: true - serializedName: provisioningState - language: !Languages - default: - name: provisioningState - description: Denotes the state of provisioning. - protocol: !Protocols {} - - !Property - schema: *ref_47 - readOnly: true - serializedName: correlationId - language: !Languages - default: - name: correlationId - description: The correlation ID of the deployment. - protocol: !Protocols {} - - !Property - schema: *ref_48 - readOnly: true - serializedName: timestamp - language: !Languages - default: - name: timestamp - description: The timestamp of the template deployment. - protocol: !Protocols {} - - !Property - schema: *ref_49 - readOnly: true - serializedName: duration - language: !Languages - default: - name: duration - description: The duration of the template deployment. - protocol: !Protocols {} - - !Property - schema: *ref_3 - readOnly: true - serializedName: outputs - language: !Languages - default: - name: outputs - description: Key/value pairs that represent deployment output. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_282 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_91 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_50 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The provider ID. - protocol: !Protocols {} - - !Property - schema: *ref_51 - serializedName: namespace - language: !Languages - default: - name: namespace - description: The namespace of the resource provider. - protocol: !Protocols {} - - !Property - schema: *ref_52 - readOnly: true - serializedName: registrationState - language: !Languages - default: - name: registrationState - description: The registration state of the resource provider. - protocol: !Protocols {} - - !Property - schema: *ref_53 - readOnly: true - serializedName: registrationPolicy - language: !Languages - default: - name: registrationPolicy - description: The registration policy of the resource provider. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_281 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_92 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_54 - serializedName: resourceType - language: !Languages - default: - name: resourceType - description: The resource type. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_273 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_55 - language: !Languages - default: - name: ProviderResourceTypeLocations - description: The collection of locations where this resource type can be created. - protocol: !Protocols {} - serializedName: locations - language: !Languages - default: - name: locations - description: The collection of locations where this resource type can be created. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_275 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_93 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_56 - serializedName: location - language: !Languages - default: - name: location - description: The azure location. - protocol: !Protocols {} - - !Property - schema: *ref_57 - serializedName: type - language: !Languages - default: - name: type - description: The extended location type. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_274 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_58 - language: !Languages - default: - name: ProviderExtendedLocationExtendedLocations - description: The extended locations for the azure location. - protocol: !Protocols {} - serializedName: extendedLocations - language: !Languages - default: - name: extendedLocations - description: The extended locations for the azure location. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: ProviderExtendedLocation - description: 'The provider extended location. ' - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ProviderResourceTypeLocationMappings - description: The location mappings that are supported by this resource type. - protocol: !Protocols {} - serializedName: locationMappings - language: !Languages - default: - name: locationMappings - description: The location mappings that are supported by this resource type. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_278 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_94 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_59 - serializedName: name - language: !Languages - default: - name: name - description: The alias name. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_277 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_95 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_60 - serializedName: path - language: !Languages - default: - name: path - description: The path of an alias. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_276 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_61 - language: !Languages - default: - name: AliasPathApiVersions - description: The API versions. - protocol: !Protocols {} - serializedName: apiVersions - language: !Languages - default: - name: apiVersions - description: The API versions. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_69 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_62 - serializedName: phrase - language: !Languages - default: - name: phrase - description: The alias pattern phrase. - protocol: !Protocols {} - - !Property - schema: *ref_63 - serializedName: variable - language: !Languages - default: - name: variable - description: The alias pattern variable. - protocol: !Protocols {} - - !Property - schema: *ref_64 - serializedName: type - language: !Languages - default: - name: type - description: The type of alias pattern - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: AliasPattern - description: The type of the pattern for an alias path. - namespace: '' - protocol: !Protocols {} - serializedName: pattern - language: !Languages - default: - name: pattern - description: The pattern for an alias path. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_70 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_65 - readOnly: true - serializedName: type - language: !Languages - default: - name: type - description: The type of the token that the alias path is referring to. - protocol: !Protocols {} - - !Property - schema: *ref_66 - readOnly: true - serializedName: attributes - language: !Languages - default: - name: attributes - description: The attributes of the token that the alias path is referring to. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: AliasPathMetadata - description: '' - namespace: '' - protocol: !Protocols {} - readOnly: true - serializedName: metadata - language: !Languages - default: - name: metadata - description: The metadata of the alias path. If missing, fall back to the default metadata of the alias. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: AliasPath - description: The type of the paths for alias. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: AliasPaths - description: The paths for an alias. - protocol: !Protocols {} - serializedName: paths - language: !Languages - default: - name: paths - description: The paths for an alias. - protocol: !Protocols {} - - !Property - schema: *ref_67 - serializedName: type - language: !Languages - default: - name: type - description: The type of the alias. - protocol: !Protocols {} - - !Property - schema: *ref_68 - serializedName: defaultPath - language: !Languages - default: - name: defaultPath - description: The default path for an alias. - protocol: !Protocols {} - - !Property - schema: *ref_69 - serializedName: defaultPattern - language: !Languages - default: - name: defaultPattern - description: The default pattern for an alias. - protocol: !Protocols {} - - !Property - schema: *ref_70 - readOnly: true - serializedName: defaultMetadata - language: !Languages - default: - name: defaultMetadata - description: The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: Alias - description: 'The alias type. ' - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ProviderResourceTypeAliases - description: The aliases that are supported by this resource type. - protocol: !Protocols {} - serializedName: aliases - language: !Languages - default: - name: aliases - description: The aliases that are supported by this resource type. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_279 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_71 - language: !Languages - default: - name: ProviderResourceTypeApiVersions - description: The API version. - protocol: !Protocols {} - serializedName: apiVersions - language: !Languages - default: - name: apiVersions - description: The API version. - protocol: !Protocols {} - - !Property - schema: *ref_72 - readOnly: true - serializedName: defaultApiVersion - language: !Languages - default: - name: defaultApiVersion - description: The default API version. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_280 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_96 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_73 - readOnly: true - serializedName: profileVersion - language: !Languages - default: - name: profileVersion - description: The profile version. - protocol: !Protocols {} - - !Property - schema: *ref_74 - readOnly: true - serializedName: apiVersion - language: !Languages - default: - name: apiVersion - description: The API version. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: ApiProfile - description: '' - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ProviderResourceTypeApiProfiles - description: The API profiles for the resource provider. - protocol: !Protocols {} - readOnly: true - serializedName: apiProfiles - language: !Languages - default: - name: apiProfiles - description: The API profiles for the resource provider. - protocol: !Protocols {} - - !Property - schema: *ref_75 - serializedName: capabilities - language: !Languages - default: - name: capabilities - description: The additional capabilities offered by this resource type. - protocol: !Protocols {} - - !Property - schema: *ref_76 - serializedName: properties - language: !Languages - default: - name: properties - description: The properties. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: ProviderResourceType - description: Resource type managed by the resource provider. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: ProviderResourceTypes - description: The collection of provider resource types. - protocol: !Protocols {} - readOnly: true - serializedName: resourceTypes - language: !Languages - default: - name: resourceTypes - description: The collection of provider resource types. - protocol: !Protocols {} - - !Property - schema: *ref_77 - serializedName: providerAuthorizationConsentState - language: !Languages - default: - name: providerAuthorizationConsentState - description: The provider authorization consent state. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: Provider - description: Resource provider information. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: DeploymentPropertiesExtendedProviders - description: The list of resource providers needed for the deployment. - protocol: !Protocols {} - readOnly: true - serializedName: providers - language: !Languages - default: - name: providers - description: The list of resource providers needed for the deployment. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_284 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_97 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_283 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_98 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_78 - serializedName: id - language: !Languages - default: - name: id - description: The ID of the dependency. - protocol: !Protocols {} - - !Property - schema: *ref_79 - serializedName: resourceType - language: !Languages - default: - name: resourceType - description: The dependency resource type. - protocol: !Protocols {} - - !Property - schema: *ref_80 - serializedName: resourceName - language: !Languages - default: - name: resourceName - description: The dependency resource name. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: BasicDependency - description: Deployment dependency information. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: DependencyDependsOn - description: The list of dependencies. - protocol: !Protocols {} - serializedName: dependsOn - language: !Languages - default: - name: dependsOn - description: The list of dependencies. - protocol: !Protocols {} - - !Property - schema: *ref_81 - serializedName: id - language: !Languages - default: - name: id - description: The ID of the dependency. - protocol: !Protocols {} - - !Property - schema: *ref_82 - serializedName: resourceType - language: !Languages - default: - name: resourceType - description: The dependency resource type. - protocol: !Protocols {} - - !Property - schema: *ref_83 - serializedName: resourceName - language: !Languages - default: - name: resourceName - description: The dependency resource name. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: Dependency - description: Deployment dependency information. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: DeploymentPropertiesExtendedDependencies - description: The list of deployment dependencies. - protocol: !Protocols {} - readOnly: true - serializedName: dependencies - language: !Languages - default: - name: dependencies - description: The list of deployment dependencies. - protocol: !Protocols {} - - !Property - schema: *ref_37 - readOnly: true - serializedName: templateLink - language: !Languages - default: - name: templateLink - description: The URI referencing the template. - protocol: !Protocols {} - - !Property - schema: *ref_3 - readOnly: true - serializedName: parameters - language: !Languages - default: - name: parameters - description: 'Deployment parameters. ' - protocol: !Protocols {} - - !Property - schema: *ref_38 - readOnly: true - serializedName: parametersLink - language: !Languages - default: - name: parametersLink - description: 'The URI referencing the parameters. ' - protocol: !Protocols {} - - !Property - schema: *ref_31 - readOnly: true - serializedName: mode - language: !Languages - default: - name: mode - description: The deployment mode. Possible values are Incremental and Complete. - protocol: !Protocols {} - - !Property - schema: *ref_39 - readOnly: true - serializedName: debugSetting - language: !Languages - default: - name: debugSetting - description: The debug setting of the deployment. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_99 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_84 - readOnly: true - serializedName: provisioningState - language: !Languages - default: - name: provisioningState - description: The state of the provisioning for the on error deployment. - protocol: !Protocols {} - - !Property - schema: *ref_33 - serializedName: type - language: !Languages - default: - name: type - description: The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. - protocol: !Protocols {} - - !Property - schema: *ref_85 - serializedName: deploymentName - language: !Languages - default: - name: deploymentName - description: The deployment to be used on error case. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: OnErrorDeploymentExtended - description: Deployment on error behavior with additional details. - namespace: '' - protocol: !Protocols {} - readOnly: true - serializedName: onErrorDeployment - language: !Languages - default: - name: onErrorDeployment - description: The deployment on error behavior. - protocol: !Protocols {} - - !Property - schema: *ref_86 - readOnly: true - serializedName: templateHash - language: !Languages - default: - name: templateHash - description: The hash produced for the template. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_285 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_88 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_87 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The fully qualified resource Id. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: ResourceReference - description: The resource Id model. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: DeploymentPropertiesExtendedOutputResources - description: Array of provisioned resources. - protocol: !Protocols {} - readOnly: true - serializedName: outputResources - language: !Languages - default: - name: outputResources - description: Array of provisioned resources. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_286 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_88 - language: !Languages - default: - name: DeploymentPropertiesExtendedValidatedResources - description: Array of validated resources. - protocol: !Protocols {} - readOnly: true - serializedName: validatedResources - language: !Languages - default: - name: validatedResources - description: Array of validated resources. - protocol: !Protocols {} - - !Property - schema: *ref_17 - readOnly: true - serializedName: error - language: !Languages - default: - name: error - description: The deployment error. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: DeploymentPropertiesExtended - description: Deployment properties with additional details. - namespace: '' - protocol: !Protocols {} - serializedName: properties - language: !Languages - default: - name: properties - description: Deployment properties. - protocol: !Protocols {} - - !Property - schema: *ref_89 - serializedName: tags - language: !Languages - default: - name: tags - description: Deployment tags - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: DeploymentExtended - description: Deployment information. - namespace: '' - protocol: !Protocols {} - - *ref_90 - - *ref_91 - - *ref_92 - - *ref_93 - - *ref_94 - - *ref_95 - - *ref_69 - - *ref_70 - - *ref_96 - - *ref_97 - - *ref_98 - - *ref_99 - - *ref_88 - - !ObjectSchema &ref_335 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_17 - readOnly: true - serializedName: error - language: !Languages - default: - name: error - description: The deployment validation error. - protocol: !Protocols {} - - !Property - schema: *ref_90 - serializedName: properties - language: !Languages - default: - name: properties - description: The template deployment properties. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: DeploymentValidateResult - description: Information from validate template deployment response. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_338 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_3 - serializedName: template - language: !Languages - default: - name: template - description: The template content. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: DeploymentExportResult - description: 'The deployment export result. ' - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_343 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_287 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_100 - language: !Languages - default: - name: DeploymentListResultValue - description: An array of deployments. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of deployments. - protocol: !Protocols {} - - !Property - schema: *ref_101 - readOnly: true - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: DeploymentListResult - description: List of deployments. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_346 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_102 - required: true - serializedName: location - language: !Languages - default: - name: location - description: The location to store the deployment data. - protocol: !Protocols {} - - !Property - schema: *ref_21 - required: true - serializedName: properties - language: !Languages - default: - name: properties - description: The deployment properties. - protocol: !Protocols {} - - !Property - schema: *ref_103 - required: false - serializedName: tags - language: !Languages - default: - name: tags - description: Deployment tags - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: ScopedDeployment - description: Deployment operation parameters. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_353 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property &ref_355 - schema: *ref_104 - required: true - serializedName: location - language: !Languages - default: - name: location - description: The location to store the deployment data. - protocol: !Protocols {} - - !Property &ref_356 - schema: *ref_23 - required: true - serializedName: properties - language: !Languages - default: - name: properties - description: The deployment properties. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: ScopedDeploymentWhatIf - description: Deployment What-if operation parameters. - namespace: '' - protocol: !Protocols {} - - *ref_23 - - *ref_105 - - !ObjectSchema &ref_360 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_106 - serializedName: status - language: !Languages - default: - name: status - description: Status of the What-If operation. - protocol: !Protocols {} - - !Property - schema: *ref_17 - serializedName: error - language: !Languages - default: - name: error - description: Error when What-If operation fails. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_290 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_113 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_107 - required: true - serializedName: resourceId - language: !Languages - default: - name: resourceId - description: Resource ID - protocol: !Protocols {} - - !Property - schema: *ref_108 - required: true - serializedName: changeType - language: !Languages - default: - name: changeType - description: Type of change that will be made to the resource when the deployment is executed. - protocol: !Protocols {} - - !Property - schema: *ref_109 - required: false - serializedName: unsupportedReason - language: !Languages - default: - name: unsupportedReason - description: The explanation about why the resource is unsupported by What-If. - protocol: !Protocols {} - - !Property - schema: *ref_3 - required: false - serializedName: before - language: !Languages - default: - name: before - description: The snapshot of the resource before the deployment is executed. - protocol: !Protocols {} - - !Property - schema: *ref_3 - required: false - serializedName: after - language: !Languages - default: - name: after - description: The predicted snapshot of the resource after the deployment is executed. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_289 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: !ObjectSchema &ref_112 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_110 - required: true - serializedName: path - language: !Languages - default: - name: path - description: The path of the property. - protocol: !Protocols {} - - !Property - schema: *ref_111 - required: true - serializedName: propertyChangeType - language: !Languages - default: - name: propertyChangeType - description: The type of property change. - protocol: !Protocols {} - - !Property - schema: *ref_3 - required: false - serializedName: before - language: !Languages - default: - name: before - description: The value of the property before the deployment is executed. - protocol: !Protocols {} - - !Property - schema: *ref_3 - required: false - serializedName: after - language: !Languages - default: - name: after - description: The value of the property after the deployment is executed. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_288 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_112 - language: !Languages - default: - name: WhatIfPropertyChangeChildren - description: Nested property changes. - protocol: !Protocols {} - required: false - serializedName: children - language: !Languages - default: - name: children - description: Nested property changes. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: WhatIfPropertyChange - description: The predicted change to the resource property. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: WhatIfChangeDelta - description: The predicted changes to resource properties. - protocol: !Protocols {} - required: false - serializedName: delta - language: !Languages - default: - name: delta - description: The predicted changes to resource properties. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: WhatIfChange - description: Information about a single resource change predicted by What-If operation. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: WhatIfOperationPropertiesChanges - description: List of resource changes predicted by What-If operation. - protocol: !Protocols {} - flattenedNames: - - properties - - changes - serializedName: changes - language: !Languages - default: - name: changes - description: List of resource changes predicted by What-If operation. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: WhatIfOperationResult - description: Result of the What-If operation. Contains a list of predicted changes and a URL link to get to the next set of results. - namespace: '' - protocol: !Protocols {} - - *ref_113 - - *ref_112 - - !ObjectSchema &ref_402 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property &ref_404 - schema: *ref_114 - required: false - serializedName: location - language: !Languages - default: - name: location - description: The location to store the deployment data. - protocol: !Protocols {} - - !Property &ref_405 - schema: *ref_23 - required: true - serializedName: properties - language: !Languages - default: - name: properties - description: The deployment properties. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - language: !Languages - default: - name: DeploymentWhatIf - description: Deployment What-if operation parameters. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_131 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_115 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: Full deployment operation ID. - protocol: !Protocols {} - - !Property - schema: *ref_116 - readOnly: true - serializedName: operationId - language: !Languages - default: - name: operationId - description: Deployment operation ID. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_128 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_117 - readOnly: true - serializedName: provisioningOperation - language: !Languages - default: - name: provisioningOperation - description: The name of the current provisioning operation. - protocol: !Protocols {} - - !Property - schema: *ref_118 - readOnly: true - serializedName: provisioningState - language: !Languages - default: - name: provisioningState - description: The state of the provisioning. - protocol: !Protocols {} - - !Property - schema: *ref_119 - readOnly: true - serializedName: timestamp - language: !Languages - default: - name: timestamp - description: The date and time of the operation. - protocol: !Protocols {} - - !Property - schema: *ref_120 - readOnly: true - serializedName: duration - language: !Languages - default: - name: duration - description: The duration of the operation. - protocol: !Protocols {} - - !Property - schema: *ref_121 - readOnly: true - serializedName: serviceRequestId - language: !Languages - default: - name: serviceRequestId - description: Deployment operation service request id. - protocol: !Protocols {} - - !Property - schema: *ref_122 - readOnly: true - serializedName: statusCode - language: !Languages - default: - name: statusCode - description: Operation status code from the resource provider. This property may not be set if a response has not yet been received. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_129 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_123 - serializedName: status - language: !Languages - default: - name: status - description: Status of the deployment operation. - protocol: !Protocols {} - - !Property - schema: *ref_17 - serializedName: error - language: !Languages - default: - name: error - description: The error reported by the operation. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: StatusMessage - description: Operation status message object. - namespace: '' - protocol: !Protocols {} - nullable: true - readOnly: true - serializedName: statusMessage - extensions: - x-nullable: true - language: !Languages - default: - name: statusMessage - description: Operation status message from the resource provider. This property is optional. It will only be provided if an error was received from the resource provider. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_130 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_124 - serializedName: id - language: !Languages - default: - name: id - description: The ID of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_125 - serializedName: resourceName - language: !Languages - default: - name: resourceName - description: The name of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_126 - serializedName: resourceType - language: !Languages - default: - name: resourceType - description: The type of the resource. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: TargetResource - description: Target resource. - namespace: '' - protocol: !Protocols {} - readOnly: true - serializedName: targetResource - language: !Languages - default: - name: targetResource - description: The target resource. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_127 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_3 - serializedName: content - language: !Languages - default: - name: content - description: HTTP message content. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: HttpMessage - description: HTTP message. - namespace: '' - protocol: !Protocols {} - readOnly: true - serializedName: request - language: !Languages - default: - name: request - description: The HTTP request message. - protocol: !Protocols {} - - !Property - schema: *ref_127 - readOnly: true - serializedName: response - language: !Languages - default: - name: response - description: The HTTP response message. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: DeploymentOperationProperties - description: Deployment operation properties. - namespace: '' - protocol: !Protocols {} - serializedName: properties - language: !Languages - default: - name: properties - description: Deployment properties. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: DeploymentOperation - description: Deployment operation information. - namespace: '' - protocol: !Protocols {} - - *ref_128 - - *ref_129 - - *ref_130 - - *ref_127 - - !ObjectSchema &ref_448 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_291 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_131 - language: !Languages - default: - name: DeploymentOperationsListResultValue - description: An array of deployment operations. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of deployment operations. - protocol: !Protocols {} - - !Property - schema: *ref_132 - readOnly: true - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: DeploymentOperationsListResult - description: List of deployment operations. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_441 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_133 - serializedName: minifiedTemplate - language: !Languages - default: - name: minifiedTemplate - description: The minified template string. - protocol: !Protocols {} - - !Property - schema: *ref_134 - serializedName: templateHash - language: !Languages - default: - name: templateHash - description: The template hash. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: TemplateHashResult - description: Result of the request to calculate template hash. It contains a string of minified template and its hash. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_154 - type: object - apiVersions: - - !ApiVersion - version: '2020-09-01' - properties: - - !Property - schema: *ref_135 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The ID of the policy assignment. - protocol: !Protocols {} - - !Property - schema: *ref_136 - readOnly: true - serializedName: type - language: !Languages - default: - name: type - description: The type of the policy assignment. - protocol: !Protocols {} - - !Property - schema: *ref_137 - readOnly: true - serializedName: name - language: !Languages - default: - name: name - description: The name of the policy assignment. - protocol: !Protocols {} - - !Property - schema: *ref_138 - serializedName: location - language: !Languages - default: - name: location - description: The location of the policy assignment. Only required when utilizing managed identity. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_153 - type: object - apiVersions: - - !ApiVersion - version: '2020-09-01' - properties: - - !Property - schema: *ref_139 - readOnly: true - serializedName: principalId - language: !Languages - default: - name: principalId - description: The principal ID of the resource identity. - protocol: !Protocols {} - - !Property - schema: *ref_140 - readOnly: true - serializedName: tenantId - language: !Languages - default: - name: tenantId - description: The tenant ID of the resource identity. - protocol: !Protocols {} - - !Property - schema: *ref_141 - serializedName: type - language: !Languages - default: - name: type - description: The identity type. This is the only required field when adding a system assigned identity to a resource. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: Identity - description: Identity for the resource. - namespace: '' - protocol: !Protocols {} - serializedName: identity - language: !Languages - default: - name: identity - description: The managed identity associated with the policy assignment. - protocol: !Protocols {} - - !Property - schema: *ref_142 - flattenedNames: - - properties - - displayName - serializedName: displayName - language: !Languages - default: - name: displayName - description: The display name of the policy assignment. - protocol: !Protocols {} - - !Property - schema: *ref_143 - flattenedNames: - - properties - - policyDefinitionId - serializedName: policyDefinitionId - language: !Languages - default: - name: policyDefinitionId - description: The ID of the policy definition or policy set definition being assigned. - protocol: !Protocols {} - - !Property - schema: *ref_144 - flattenedNames: - - properties - - scope - readOnly: true - serializedName: scope - language: !Languages - default: - name: scope - description: The scope for the policy assignment. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_292 - type: array - apiVersions: - - !ApiVersion - version: '2020-09-01' - elementType: *ref_145 - language: !Languages - default: - name: PolicyAssignmentPropertiesNotScopes - description: The policy's excluded scopes. - protocol: !Protocols {} - flattenedNames: - - properties - - notScopes - serializedName: notScopes - language: !Languages - default: - name: notScopes - description: The policy's excluded scopes. - protocol: !Protocols {} - - !Property - schema: *ref_146 - flattenedNames: - - properties - - parameters - serializedName: parameters - language: !Languages - default: - name: parameters - description: The parameter values for the assigned policy rule. The keys are the parameter names. - protocol: !Protocols {} - - !Property - schema: *ref_147 - flattenedNames: - - properties - - description - serializedName: description - language: !Languages - default: - name: description - description: This message will be part of response in case of policy violation. - protocol: !Protocols {} - - !Property - schema: *ref_3 - flattenedNames: - - properties - - metadata - serializedName: metadata - language: !Languages - default: - name: metadata - description: The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. - protocol: !Protocols {} - - !Property - schema: *ref_148 - flattenedNames: - - properties - - enforcementMode - serializedName: enforcementMode - language: !Languages - default: - name: enforcementMode - description: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_293 - type: array - apiVersions: - - !ApiVersion - version: '2020-09-01' - elementType: !ObjectSchema &ref_152 - type: object - apiVersions: - - !ApiVersion - version: '2020-09-01' - properties: - - !Property - schema: *ref_149 - required: true - serializedName: message - language: !Languages - default: - name: message - description: A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. - protocol: !Protocols {} - - !Property - schema: *ref_150 - required: false - serializedName: policyDefinitionReferenceId - language: !Languages - default: - name: policyDefinitionReferenceId - description: >- - The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If this is not provided the message - applies to all policies assigned by this policy assignment. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - language: !Languages - default: - name: NonComplianceMessage - description: A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. - namespace: '' - protocol: !Protocols {} - language: !Languages - default: - name: PolicyAssignmentPropertiesNonComplianceMessages - description: The messages that describe why a resource is non-compliant with the policy. - protocol: !Protocols {} - flattenedNames: - - properties - - nonComplianceMessages - serializedName: nonComplianceMessages - language: !Languages - default: - name: nonComplianceMessages - description: The messages that describe why a resource is non-compliant with the policy. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - - input - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: PolicyAssignment - description: The policy assignment. - namespace: '' - protocol: !Protocols {} - - *ref_151 - - *ref_152 - - *ref_153 - - !ObjectSchema &ref_483 - type: object - apiVersions: - - !ApiVersion - version: '2020-09-01' - properties: - - !Property - schema: !ArraySchema &ref_294 - type: array - apiVersions: - - !ApiVersion - version: '2020-09-01' - elementType: *ref_154 - language: !Languages - default: - name: PolicyAssignmentListResultValue - description: An array of policy assignments. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of policy assignments. - protocol: !Protocols {} - - !Property - schema: *ref_155 - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: PolicyAssignmentListResult - description: List of policy assignments. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_166 - type: object - apiVersions: - - !ApiVersion - version: '2020-09-01' - properties: - - !Property - schema: *ref_156 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The ID of the policy definition. - protocol: !Protocols {} - - !Property - schema: *ref_157 - readOnly: true - serializedName: name - language: !Languages - default: - name: name - description: The name of the policy definition. - protocol: !Protocols {} - - !Property - schema: *ref_158 - readOnly: true - serializedName: type - language: !Languages - default: - name: type - description: The type of the resource (Microsoft.Authorization/policyDefinitions). - protocol: !Protocols {} - - !Property - schema: *ref_159 - flattenedNames: - - properties - - policyType - serializedName: policyType - language: !Languages - default: - name: policyType - description: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. - protocol: !Protocols {} - - !Property - schema: *ref_160 - flattenedNames: - - properties - - mode - serializedName: mode - language: !Languages - default: - name: mode - description: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data. - protocol: !Protocols {} - - !Property - schema: *ref_161 - flattenedNames: - - properties - - displayName - serializedName: displayName - language: !Languages - default: - name: displayName - description: The display name of the policy definition. - protocol: !Protocols {} - - !Property - schema: *ref_162 - flattenedNames: - - properties - - description - serializedName: description - language: !Languages - default: - name: description - description: The policy definition description. - protocol: !Protocols {} - - !Property - schema: *ref_3 - flattenedNames: - - properties - - policyRule - serializedName: policyRule - language: !Languages - default: - name: policyRule - description: The policy rule. - protocol: !Protocols {} - - !Property - schema: *ref_3 - flattenedNames: - - properties - - metadata - serializedName: metadata - language: !Languages - default: - name: metadata - description: The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - protocol: !Protocols {} - - !Property - schema: *ref_163 - flattenedNames: - - properties - - parameters - serializedName: parameters - language: !Languages - default: - name: parameters - description: The parameter definitions for parameters used in the policy rule. The keys are the parameter names. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - input - - output - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: PolicyDefinition - description: The policy definition. - namespace: '' - protocol: !Protocols {} - - *ref_164 - - *ref_165 - - !ObjectSchema &ref_514 - type: object - apiVersions: - - !ApiVersion - version: '2020-09-01' - properties: - - !Property - schema: !ArraySchema &ref_296 - type: array - apiVersions: - - !ApiVersion - version: '2020-09-01' - elementType: *ref_166 - language: !Languages - default: - name: PolicyDefinitionListResultValue - description: An array of policy definitions. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of policy definitions. - protocol: !Protocols {} - - !Property - schema: *ref_167 - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - serializationFormats: - - json - usage: - - output - language: !Languages - default: - name: PolicyDefinitionListResult - description: List of policy definitions. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_168 - serializedName: provisioningState - language: !Languages - default: - name: provisioningState - description: The provisioning state. - protocol: !Protocols {} - language: !Languages - default: - name: DeploymentExtendedFilter - description: Deployment filter. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_169 - serializedName: resourceType - language: !Languages - default: - name: resourceType - description: The resource type. - protocol: !Protocols {} - - !Property - schema: *ref_170 - serializedName: tagname - language: !Languages - default: - name: tagname - description: The tag name. - protocol: !Protocols {} - - !Property - schema: *ref_171 - serializedName: tagvalue - language: !Languages - default: - name: tagvalue - description: The tag value. - protocol: !Protocols {} - language: !Languages - default: - name: GenericResourceFilter - description: Resource filter. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_172 - serializedName: tagName - language: !Languages - default: - name: tagName - description: The tag name. - protocol: !Protocols {} - - !Property - schema: *ref_173 - serializedName: tagValue - language: !Languages - default: - name: tagValue - description: The tag value. - protocol: !Protocols {} - language: !Languages - default: - name: ResourceGroupFilter - description: Resource group filter. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_297 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_91 - language: !Languages - default: - name: ProviderListResultValue - description: An array of resource providers. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of resource providers. - protocol: !Protocols {} - - !Property - schema: *ref_174 - readOnly: true - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - language: !Languages - default: - name: ProviderListResult - description: List of resource providers. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_298 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_92 - language: !Languages - default: - name: ProviderResourceTypeListResultValue - description: An array of resource types. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of resource types. - protocol: !Protocols {} - - !Property - schema: *ref_175 - readOnly: true - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - language: !Languages - default: - name: ProviderResourceTypeListResult - description: List of resource types of a resource provider. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_177 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - children: !Relations - all: - - !ObjectSchema &ref_176 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - children: !Relations - all: - - !ObjectSchema &ref_181 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - parents: !Relations - all: - - *ref_176 - - *ref_177 - immediate: - - *ref_176 - properties: - - !Property - schema: *ref_178 - readOnly: true - serializedName: createdTime - language: !Languages - default: - name: createdTime - description: The created time of the resource. This is only present if requested via the $expand query parameter. - protocol: !Protocols {} - - !Property - schema: *ref_179 - readOnly: true - serializedName: changedTime - language: !Languages - default: - name: changedTime - description: The changed time of the resource. This is only present if requested via the $expand query parameter. - protocol: !Protocols {} - - !Property - schema: *ref_180 - readOnly: true - serializedName: provisioningState - language: !Languages - default: - name: provisioningState - description: The provisioning state of the resource. This is only present if requested via the $expand query parameter. - protocol: !Protocols {} - language: !Languages - default: - name: GenericResourceExpanded - description: Resource information. - namespace: '' - protocol: !Protocols {} - immediate: - - *ref_181 - parents: !Relations - all: - - *ref_177 - immediate: - - *ref_177 - properties: - - !Property - schema: !ObjectSchema &ref_204 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_182 - serializedName: name - language: !Languages - default: - name: name - description: The plan ID. - protocol: !Protocols {} - - !Property - schema: *ref_183 - serializedName: publisher - language: !Languages - default: - name: publisher - description: The publisher ID. - protocol: !Protocols {} - - !Property - schema: *ref_184 - serializedName: product - language: !Languages - default: - name: product - description: The offer ID. - protocol: !Protocols {} - - !Property - schema: *ref_185 - serializedName: promotionCode - language: !Languages - default: - name: promotionCode - description: The promotion code. - protocol: !Protocols {} - - !Property - schema: *ref_186 - serializedName: version - language: !Languages - default: - name: version - description: The plan's version. - protocol: !Protocols {} - language: !Languages - default: - name: Plan - description: Plan for the resource. - namespace: '' - protocol: !Protocols {} - serializedName: plan - language: !Languages - default: - name: plan - description: The plan of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_3 - serializedName: properties - language: !Languages - default: - name: properties - description: The resource properties. - protocol: !Protocols {} - - !Property - schema: *ref_187 - serializedName: kind - language: !Languages - default: - name: kind - description: The kind of the resource. - protocol: !Protocols {} - - !Property - schema: *ref_188 - serializedName: managedBy - language: !Languages - default: - name: managedBy - description: ID of the resource that manages this resource. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_205 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_189 - serializedName: name - language: !Languages - default: - name: name - description: The SKU name. - protocol: !Protocols {} - - !Property - schema: *ref_190 - serializedName: tier - language: !Languages - default: - name: tier - description: The SKU tier. - protocol: !Protocols {} - - !Property - schema: *ref_191 - serializedName: size - language: !Languages - default: - name: size - description: The SKU size. - protocol: !Protocols {} - - !Property - schema: *ref_192 - serializedName: family - language: !Languages - default: - name: family - description: The SKU family. - protocol: !Protocols {} - - !Property - schema: *ref_193 - serializedName: model - language: !Languages - default: - name: model - description: The SKU model. - protocol: !Protocols {} - - !Property - schema: *ref_194 - serializedName: capacity - language: !Languages - default: - name: capacity - description: The SKU capacity. - protocol: !Protocols {} - language: !Languages - default: - name: Sku - description: SKU for the resource. - namespace: '' - protocol: !Protocols {} - serializedName: sku - language: !Languages - default: - name: sku - description: The SKU of the resource. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_206 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_139 - readOnly: true - serializedName: principalId - language: !Languages - default: - name: principalId - description: The principal ID of resource identity. - protocol: !Protocols {} - - !Property - schema: *ref_140 - readOnly: true - serializedName: tenantId - language: !Languages - default: - name: tenantId - description: The tenant ID of resource. - protocol: !Protocols {} - - !Property - schema: *ref_141 - serializedName: type - language: !Languages - default: - name: type - description: The identity type. - protocol: !Protocols {} - - !Property - schema: *ref_195 - serializedName: userAssignedIdentities - language: !Languages - default: - name: userAssignedIdentities - description: >- - The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - protocol: !Protocols {} - language: !Languages - default: - name: IdentityAutoGenerated - description: Identity for the resource. - namespace: '' - protocol: !Protocols {} - serializedName: identity - language: !Languages - default: - name: identity - description: The identity of the resource. - protocol: !Protocols {} - language: !Languages - default: - name: GenericResource - description: Resource information. - namespace: '' - protocol: !Protocols {} - - *ref_181 - immediate: - - *ref_176 - properties: - - !Property - schema: *ref_196 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: Resource ID - protocol: !Protocols {} - - !Property - schema: *ref_197 - readOnly: true - serializedName: name - language: !Languages - default: - name: name - description: Resource name - protocol: !Protocols {} - - !Property - schema: *ref_198 - readOnly: true - serializedName: type - language: !Languages - default: - name: type - description: Resource type - protocol: !Protocols {} - - !Property - schema: *ref_199 - serializedName: location - language: !Languages - default: - name: location - description: Resource location - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_203 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_200 - serializedName: type - language: !Languages - default: - name: type - description: The extended location type. - protocol: !Protocols {} - - !Property - schema: *ref_201 - serializedName: name - language: !Languages - default: - name: name - description: The extended location name. - protocol: !Protocols {} - language: !Languages - default: - name: ExtendedLocation - description: Resource extended location. - namespace: '' - protocol: !Protocols {} - serializedName: extendedLocation - extensions: - x-ms-mutability: - - read - - create - language: !Languages - default: - name: extendedLocation - description: Resource extended location. - protocol: !Protocols {} - - !Property - schema: *ref_202 - serializedName: tags - language: !Languages - default: - name: tags - description: Resource tags - protocol: !Protocols {} - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: Resource - description: Specified resource. - namespace: '' - protocol: !Protocols {} - - *ref_203 - - *ref_176 - - *ref_204 - - *ref_205 - - *ref_206 - - *ref_207 - - *ref_181 - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_299 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_181 - language: !Languages - default: - name: ResourceListResultValue - description: An array of resources. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of resources. - protocol: !Protocols {} - - !Property - schema: *ref_208 - readOnly: true - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - language: !Languages - default: - name: ResourceListResult - description: List of resource groups. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_220 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_209 - readOnly: true - required: false - serializedName: id - language: !Languages - default: - name: id - description: The ID of the resource group. - protocol: !Protocols {} - - !Property - schema: *ref_210 - readOnly: true - required: false - serializedName: name - language: !Languages - default: - name: name - description: The name of the resource group. - protocol: !Protocols {} - - !Property - schema: *ref_211 - readOnly: true - required: false - serializedName: type - language: !Languages - default: - name: type - description: The type of the resource group. - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_216 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_212 - readOnly: true - serializedName: provisioningState - language: !Languages - default: - name: provisioningState - description: 'The provisioning state. ' - protocol: !Protocols {} - language: !Languages - default: - name: ResourceGroupProperties - description: The resource group properties. - namespace: '' - protocol: !Protocols {} - required: false - serializedName: properties - language: !Languages - default: - name: properties - description: The resource group properties. - protocol: !Protocols {} - - !Property - schema: *ref_213 - required: true - serializedName: location - language: !Languages - default: - name: location - description: The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations. - protocol: !Protocols {} - - !Property - schema: *ref_214 - required: false - serializedName: managedBy - language: !Languages - default: - name: managedBy - description: The ID of the resource that manages this resource group. - protocol: !Protocols {} - - !Property - schema: *ref_215 - required: false - serializedName: tags - language: !Languages - default: - name: tags - description: The tags attached to the resource group. - protocol: !Protocols {} - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: ResourceGroup - description: Resource group information. - namespace: '' - protocol: !Protocols {} - - *ref_216 - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_217 - serializedName: name - language: !Languages - default: - name: name - description: The name of the resource group. - protocol: !Protocols {} - - !Property - schema: *ref_216 - serializedName: properties - language: !Languages - default: - name: properties - description: The resource group properties. - protocol: !Protocols {} - - !Property - schema: *ref_218 - serializedName: managedBy - language: !Languages - default: - name: managedBy - description: The ID of the resource that manages this resource group. - protocol: !Protocols {} - - !Property - schema: *ref_219 - serializedName: tags - language: !Languages - default: - name: tags - description: The tags attached to the resource group. - protocol: !Protocols {} - language: !Languages - default: - name: ResourceGroupPatchable - description: Resource group information. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_300 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_220 - language: !Languages - default: - name: ResourceGroupListResultValue - description: An array of resource groups. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of resource groups. - protocol: !Protocols {} - - !Property - schema: *ref_221 - readOnly: true - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - language: !Languages - default: - name: ResourceGroupListResult - description: List of resource groups. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_301 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_222 - language: !Languages - default: - name: ResourcesMoveInfoResources - description: The IDs of the resources. - protocol: !Protocols {} - serializedName: resources - language: !Languages - default: - name: resources - description: The IDs of the resources. - protocol: !Protocols {} - - !Property - schema: *ref_223 - serializedName: targetResourceGroup - language: !Languages - default: - name: targetResourceGroup - description: The target resource group. - protocol: !Protocols {} - language: !Languages - default: - name: ResourcesMoveInfo - description: Parameters of move resources. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_302 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_224 - language: !Languages - default: - name: ExportTemplateRequestResources - description: The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. - protocol: !Protocols {} - serializedName: resources - language: !Languages - default: - name: resources - description: The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. - protocol: !Protocols {} - - !Property - schema: *ref_225 - serializedName: options - language: !Languages - default: - name: options - description: 'The export template options. A CSV-formatted list containing zero or more of the following: ''IncludeParameterDefaultValue'', ''IncludeComments'', ''SkipResourceNameParameterization'', ''SkipAllParameterization''' - protocol: !Protocols {} - language: !Languages - default: - name: ExportTemplateRequest - description: Export resource group template request parameters. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_230 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_226 - serializedName: type - language: !Languages - default: - name: type - description: Type of count. - protocol: !Protocols {} - - !Property - schema: *ref_227 - serializedName: value - language: !Languages - default: - name: value - description: Value of count. - protocol: !Protocols {} - language: !Languages - default: - name: TagCount - description: Tag count. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_233 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_228 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The tag value ID. - protocol: !Protocols {} - - !Property - schema: *ref_229 - serializedName: tagValue - language: !Languages - default: - name: tagValue - description: The tag value. - protocol: !Protocols {} - - !Property - schema: *ref_230 - serializedName: count - language: !Languages - default: - name: count - description: The tag value count. - protocol: !Protocols {} - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: TagValue - description: Tag information. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_234 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_231 - readOnly: true - serializedName: id - language: !Languages - default: - name: id - description: The tag name ID. - protocol: !Protocols {} - - !Property - schema: *ref_232 - serializedName: tagName - language: !Languages - default: - name: tagName - description: The tag name. - protocol: !Protocols {} - - !Property - schema: *ref_230 - serializedName: count - language: !Languages - default: - name: count - description: The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_303 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_233 - language: !Languages - default: - name: TagDetailsValues - description: The list of tag values. - protocol: !Protocols {} - serializedName: values - language: !Languages - default: - name: values - description: The list of tag values. - protocol: !Protocols {} - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: TagDetails - description: Tag details. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_304 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_234 - language: !Languages - default: - name: TagsListResultValue - description: An array of tags. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of tags. - protocol: !Protocols {} - - !Property - schema: *ref_235 - readOnly: true - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - language: !Languages - default: - name: TagsListResult - description: List of subscription tags. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_236 - serializedName: publisher - language: !Languages - default: - name: publisher - description: Operation description. - protocol: !Protocols {} - - !Property - schema: *ref_237 - serializedName: provider - language: !Languages - default: - name: provider - description: Operation provider. - protocol: !Protocols {} - - !Property - schema: *ref_238 - serializedName: resource - language: !Languages - default: - name: resource - description: Operation resource. - protocol: !Protocols {} - - !Property - schema: *ref_239 - serializedName: operation - language: !Languages - default: - name: operation - description: Resource provider operation. - protocol: !Protocols {} - - !Property - schema: *ref_240 - serializedName: description - language: !Languages - default: - name: description - description: Operation description. - protocol: !Protocols {} - language: !Languages - default: - name: ResourceProviderOperationDisplayProperties - description: Resource provider operation's display properties. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_241 - serializedName: id - language: !Languages - default: - name: id - description: Resource ID - protocol: !Protocols {} - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: SubResource - description: Sub-resource. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_3 - serializedName: template - language: !Languages - default: - name: template - description: The template content. - protocol: !Protocols {} - - !Property - schema: *ref_17 - serializedName: error - language: !Languages - default: - name: error - description: The template export error. - protocol: !Protocols {} - language: !Languages - default: - name: ResourceGroupExportResult - description: Resource group export result. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_248 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_242 - serializedName: name - language: !Languages - default: - name: name - description: 'Operation name: {provider}/{resource}/{operation}' - protocol: !Protocols {} - - !Property - schema: !ObjectSchema &ref_247 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_243 - serializedName: provider - language: !Languages - default: - name: provider - description: 'Service provider: Microsoft.Resources' - protocol: !Protocols {} - - !Property - schema: *ref_244 - serializedName: resource - language: !Languages - default: - name: resource - description: 'Resource on which the operation is performed: Profile, endpoint, etc.' - protocol: !Protocols {} - - !Property - schema: *ref_245 - serializedName: operation - language: !Languages - default: - name: operation - description: 'Operation type: Read, write, delete, etc.' - protocol: !Protocols {} - - !Property - schema: *ref_246 - serializedName: description - language: !Languages - default: - name: description - description: Description of the operation. - protocol: !Protocols {} - extensions: - x-internal-autorest-anonymous-schema: - anonymous: true - language: !Languages - default: - name: OperationDisplay - description: The object that represents the operation. - namespace: '' - protocol: !Protocols {} - serializedName: display - language: !Languages - default: - name: display - description: The object that represents the operation. - protocol: !Protocols {} - language: !Languages - default: - name: Operation - description: Microsoft.Resources operation - namespace: '' - protocol: !Protocols {} - - *ref_247 - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_305 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_248 - language: !Languages - default: - name: OperationListResultValue - description: List of Microsoft.Resources operations. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: List of Microsoft.Resources operations. - protocol: !Protocols {} - - !Property - schema: *ref_249 - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: URL to get the next set of operation list results if there are any. - protocol: !Protocols {} - language: !Languages - default: - name: OperationListResult - description: Result of the request to list Microsoft.Resources operations. It contains a list of operations and a URL link to get the next set of results. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_252 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_250 - serializedName: tags - language: !Languages - default: - name: tags - description: Dictionary of - protocol: !Protocols {} - language: !Languages - default: - name: Tags - description: A dictionary of name and value pairs. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_251 - serializedName: operation - language: !Languages - default: - name: operation - description: The operation type for the patch API. - protocol: !Protocols {} - - !Property - schema: *ref_252 - serializedName: properties - language: !Languages - default: - name: properties - description: The set of tags. - protocol: !Protocols {} - language: !Languages - default: - name: TagsPatchResource - description: Wrapper resource for tags patch API request only. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_253 - readOnly: true - required: false - serializedName: id - language: !Languages - default: - name: id - description: The ID of the tags wrapper resource. - protocol: !Protocols {} - - !Property - schema: *ref_254 - readOnly: true - required: false - serializedName: name - language: !Languages - default: - name: name - description: The name of the tags wrapper resource. - protocol: !Protocols {} - - !Property - schema: *ref_255 - readOnly: true - required: false - serializedName: type - language: !Languages - default: - name: type - description: The type of the tags wrapper resource. - protocol: !Protocols {} - - !Property - schema: *ref_252 - required: true - serializedName: properties - language: !Languages - default: - name: properties - description: The set of tags. - protocol: !Protocols {} - extensions: - x-ms-azure-resource: true - language: !Languages - default: - name: TagsResource - description: Wrapper resource for tags API requests and responses. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_263 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_306 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_256 - language: !Languages - default: - name: PermissionActions - description: Allowed actions. - protocol: !Protocols {} - serializedName: actions - language: !Languages - default: - name: actions - description: Allowed actions. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_307 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_257 - language: !Languages - default: - name: PermissionNotActions - description: Denied actions. - protocol: !Protocols {} - serializedName: notActions - language: !Languages - default: - name: notActions - description: Denied actions. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_308 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_258 - language: !Languages - default: - name: PermissionDataActions - description: Allowed Data actions. - protocol: !Protocols {} - serializedName: dataActions - language: !Languages - default: - name: dataActions - description: Allowed Data actions. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_309 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_259 - language: !Languages - default: - name: PermissionNotDataActions - description: Denied Data actions. - protocol: !Protocols {} - serializedName: notDataActions - language: !Languages - default: - name: notDataActions - description: Denied Data actions. - protocol: !Protocols {} - language: !Languages - default: - name: Permission - description: Role definition permissions. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_266 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_260 - serializedName: id - language: !Languages - default: - name: id - description: The role definition ID. - protocol: !Protocols {} - - !Property - schema: *ref_261 - serializedName: name - language: !Languages - default: - name: name - description: The role definition name. - protocol: !Protocols {} - - !Property - schema: *ref_262 - serializedName: isServiceRole - language: !Languages - default: - name: isServiceRole - description: If this is a service role. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_310 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_263 - language: !Languages - default: - name: RoleDefinitionPermissions - description: Role definition permissions. - protocol: !Protocols {} - serializedName: permissions - language: !Languages - default: - name: permissions - description: Role definition permissions. - protocol: !Protocols {} - - !Property - schema: !ArraySchema &ref_311 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_264 - language: !Languages - default: - name: RoleDefinitionScopes - description: Role definition assignable scopes. - protocol: !Protocols {} - serializedName: scopes - language: !Languages - default: - name: scopes - description: Role definition assignable scopes. - protocol: !Protocols {} - language: !Languages - default: - name: RoleDefinition - description: Role definition properties. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_267 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_265 - serializedName: applicationId - language: !Languages - default: - name: applicationId - description: The application id. - protocol: !Protocols {} - - !Property - schema: *ref_266 - serializedName: roleDefinition - language: !Languages - default: - name: roleDefinition - description: Role definition properties. - protocol: !Protocols {} - - !Property - schema: *ref_266 - serializedName: managedByRoleDefinition - language: !Languages - default: - name: managedByRoleDefinition - description: Role definition properties. - protocol: !Protocols {} - - !Property - schema: *ref_77 - serializedName: providerAuthorizationConsentState - language: !Languages - default: - name: providerAuthorizationConsentState - description: The provider authorization consent state. - protocol: !Protocols {} - language: !Languages - default: - name: ProviderPermission - description: The provider permission - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: !ArraySchema &ref_312 - type: array - apiVersions: - - !ApiVersion - version: '2021-04-01' - elementType: *ref_267 - language: !Languages - default: - name: ProviderPermissionListResultValue - description: An array of provider permissions. - protocol: !Protocols {} - serializedName: value - language: !Languages - default: - name: value - description: An array of provider permissions. - protocol: !Protocols {} - - !Property - schema: *ref_268 - readOnly: true - serializedName: nextLink - language: !Languages - default: - name: nextLink - description: The URL to use for getting the next set of results. - protocol: !Protocols {} - language: !Languages - default: - name: ProviderPermissionListResult - description: List of provider permissions. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema &ref_270 - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_269 - serializedName: consentToAuthorization - language: !Languages - default: - name: consentToAuthorization - description: A value indicating whether authorization is consented or not. - protocol: !Protocols {} - language: !Languages - default: - name: ProviderConsentDefinition - description: The provider consent. - namespace: '' - protocol: !Protocols {} - - !ObjectSchema - type: object - apiVersions: - - !ApiVersion - version: '2021-04-01' - properties: - - !Property - schema: *ref_270 - serializedName: thirdPartyProviderConsent - language: !Languages - default: - name: thirdPartyProviderConsent - description: The provider consent. - protocol: !Protocols {} - language: !Languages - default: - name: ProviderRegistrationRequest - description: The provider registration definition. - namespace: '' - protocol: !Protocols {} - arrays: - - *ref_271 - - *ref_272 - - *ref_273 - - *ref_274 - - *ref_275 - - *ref_276 - - *ref_277 - - *ref_278 - - *ref_279 - - *ref_280 - - *ref_281 - - *ref_282 - - *ref_283 - - *ref_284 - - *ref_285 - - *ref_286 - - *ref_287 - - *ref_288 - - *ref_289 - - *ref_290 - - *ref_291 - - *ref_292 - - *ref_293 - - *ref_294 - - *ref_295 - - *ref_296 - - *ref_297 - - *ref_298 - - *ref_299 - - *ref_300 - - *ref_301 - - *ref_302 - - *ref_303 - - *ref_304 - - *ref_305 - - *ref_306 - - *ref_307 - - *ref_308 - - *ref_309 - - *ref_310 - - *ref_311 - - *ref_312 -globalParameters: - - !Parameter &ref_393 - schema: *ref_313 - implementation: Client - required: true - extensions: - x-ms-priority: 0 - language: !Languages - default: - name: SubscriptionId - description: The Microsoft Azure subscription ID. - serializedName: subscriptionId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_314 - schema: *ref_0 - clientDefaultValue: https://management.azure.com - implementation: Client - origin: modelerfour:synthesized/host - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: $host - description: server parameter - serializedName: $host - protocol: !Protocols - http: !HttpParameter - in: uri -operationGroups: - - !OperationGroup - $key: Deployments - operations: - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_318 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_319 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_318 - - *ref_319 - responses: - - !Response - language: !Languages - default: - name: '' - description: Accepted - Returns this status until the asynchronous operation has completed. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: DeleteAtScope - description: >- - A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template - deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of - 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. - summary: Deletes a deployment from the deployment history. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_321 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_322 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName} - method: head - uri: '{$host}' - signatureParameters: - - *ref_321 - - *ref_322 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - - !Response - language: !Languages - default: - name: '' - description: Not Found - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '404' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: CheckExistenceAtScope - description: Checks whether the deployment exists. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_326 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_327 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_325 - schema: *ref_324 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Additional parameters supplied to the operation. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_325 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_326 - - *ref_327 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: Created - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Create deployment at a given scope.: - parameters: - api-version: '2021-04-01' - deploymentName: my-deployment - parameters: - location: eastus - properties: - mode: Incremental - parameters: {} - templateLink: - uri: https://example.com/exampleTemplate.json - tags: - tagKey1: tag-value-1 - tagKey2: tag-value-2 - scope: providers/Microsoft.Management/managementGroups/my-management-group-id - responses: - '200': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment - location: eastus - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name - resourceName: policy-definition-name - resourceType: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock - resourceName: location-lock - resourceType: Microsoft.Authorization/policyAssignments - duration: PT1.2970875S - mode: Incremental - parameters: {} - providers: - - namespace: Microsoft.Authorization - resourceTypes: - - locations: - - null - resourceType: policyDefinitions - - locations: - - null - resourceType: policyAssignments - - namespace: Microsoft.Resources - resourceTypes: - - locations: - - eastus - resourceType: deployments - provisioningState: Accepted - timestamp: '2019-04-24T22:52:38.7895563Z' - tags: - tagKey1: tag-value-1 - tagKey2: tag-value-2 - '201': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment - location: eastus - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name - resourceName: policy-definition-name - resourceType: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock - resourceName: location-lock - resourceType: Microsoft.Authorization/policyAssignments - duration: PT1.2970875S - mode: Incremental - parameters: {} - providers: - - namespace: Microsoft.Authorization - resourceTypes: - - locations: - - null - resourceType: policyDefinitions - - locations: - - null - resourceType: policyAssignments - - namespace: Microsoft.Resources - resourceTypes: - - locations: - - eastus - resourceType: deployments - provisioningState: Accepted - timestamp: '2019-04-24T22:52:38.7895563Z' - tags: - tagKey1: tag-value-1 - tagKey2: tag-value-2 - x-ms-long-running-operation: true - language: !Languages - default: - name: CreateOrUpdateAtScope - description: You can provide the template and parameters directly in the request or link to JSON files. - summary: Deploys resources at a given scope. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_328 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_329 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_328 - - *ref_329 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtScope - description: Gets a deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_330 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_331 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel - method: post - uri: '{$host}' - signatureParameters: - - *ref_330 - - *ref_331 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: CancelAtScope - description: >- - You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template - deployment and leaves the resources partially deployed. - summary: Cancels a currently running template deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_333 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_334 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_332 - schema: *ref_324 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters to validate. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_332 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_333 - - *ref_334 - responses: - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: OK - Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '400' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: ValidateAtScope - description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_336 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_337 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate - method: post - uri: '{$host}' - signatureParameters: - - *ref_336 - - *ref_337 - responses: - - !SchemaResponse - schema: *ref_338 - language: !Languages - default: - name: '' - description: OK - Returns the template. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: ExportTemplateAtScope - description: Exports the template used for specified deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_340 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_341 - schema: *ref_1 - implementation: Method - language: !Languages - default: - name: filter - description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_342 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to get. If null is passed, returns all deployments. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Resources/deployments/ - method: get - uri: '{$host}' - signatureParameters: - - *ref_340 - - *ref_341 - - *ref_342 - responses: - - !SchemaResponse - schema: *ref_343 - language: !Languages - default: - name: '' - description: OK - Returns an array of deployments. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListAtScope - description: Get all the deployments at the given scope. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_344 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_344 - responses: - - !Response - language: !Languages - default: - name: '' - description: Accepted - Returns this status until the asynchronous operation has completed. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: DeleteAtTenantScope - description: >- - A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template - deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of - 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. - summary: Deletes a deployment from the deployment history. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_345 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName} - method: head - uri: '{$host}' - signatureParameters: - - *ref_345 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - - !Response - language: !Languages - default: - name: '' - description: Not Found - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '404' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: CheckExistenceAtTenantScope - description: Checks whether the deployment exists. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_348 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_347 - schema: *ref_346 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Additional parameters supplied to the operation. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_347 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_348 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: Created - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Create deployment at tenant scope.: - parameters: - api-version: '2021-04-01' - deploymentName: tenant-dep01 - parameters: - location: eastus - properties: - mode: Incremental - parameters: {} - templateLink: - uri: https://example.com/exampleTemplate.json - tags: - tagKey1: tag-value-1 - tagKey2: tag-value-2 - responses: - '200': - body: - name: tenant-dep01 - type: Microsoft.Resources/deployments - id: /providers/Microsoft.Resources/deployments/tenant-dep01 - location: eastus - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: /providers/Microsoft.Authorization/policyDefinitions/policy-definition-name - resourceName: policy-definition-name - resourceType: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Authorization/policyAssignments/location-lock - resourceName: location-lock - resourceType: Microsoft.Authorization/policyAssignments - duration: PT1.2970875S - mode: Incremental - parameters: {} - providers: - - namespace: Microsoft.Authorization - resourceTypes: - - locations: - - null - resourceType: policyDefinitions - - locations: - - null - resourceType: policyAssignments - - namespace: Microsoft.Resources - resourceTypes: - - locations: - - eastus - resourceType: deployments - provisioningState: Accepted - timestamp: '2019-04-24T22:52:38.7895563Z' - tags: - tagKey1: tag-value-1 - tagKey2: tag-value-2 - '201': - body: - name: tenant-dep01 - type: Microsoft.Resources/deployments - id: /providers/Microsoft.Resources/deployments/tenant-dep01 - location: eastus - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: /providers/Microsoft.Authorization/policyDefinitions/policy-definition-name - resourceName: policy-definition-name - resourceType: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Authorization/policyAssignments/location-lock - resourceName: location-lock - resourceType: Microsoft.Authorization/policyAssignments - duration: PT1.2970875S - mode: Incremental - parameters: {} - providers: - - namespace: Microsoft.Authorization - resourceTypes: - - locations: - - null - resourceType: policyDefinitions - - locations: - - null - resourceType: policyAssignments - - namespace: Microsoft.Resources - resourceTypes: - - locations: - - eastus - resourceType: deployments - provisioningState: Accepted - timestamp: '2019-04-24T22:52:38.7895563Z' - tags: - tagKey1: tag-value-1 - tagKey2: tag-value-2 - x-ms-long-running-operation: true - language: !Languages - default: - name: CreateOrUpdateAtTenantScope - description: You can provide the template and parameters directly in the request or link to JSON files. - summary: Deploys resources at tenant scope. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_349 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_349 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtTenantScope - description: Gets a deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_350 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName}/cancel - method: post - uri: '{$host}' - signatureParameters: - - *ref_350 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: CancelAtTenantScope - description: >- - You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template - deployment and leaves the resources partially deployed. - summary: Cancels a currently running template deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_352 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_351 - schema: *ref_346 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters to validate. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_351 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName}/validate - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_352 - responses: - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: OK - Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '400' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: ValidateAtTenantScope - description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_359 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_354 - schema: *ref_353 - flattened: true - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters to validate. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - - !VirtualParameter &ref_357 - schema: *ref_104 - implementation: Method - originalParameter: *ref_354 - pathToProperty: [] - required: true - targetProperty: *ref_355 - language: !Languages - default: - name: location - description: The location to store the deployment data. - protocol: !Protocols {} - - !VirtualParameter &ref_358 - schema: *ref_23 - implementation: Method - originalParameter: *ref_354 - pathToProperty: [] - required: true - targetProperty: *ref_356 - language: !Languages - default: - name: properties - description: The deployment properties. - protocol: !Protocols {} - signatureParameters: - - *ref_357 - - *ref_358 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName}/whatIf - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_359 - responses: - - !SchemaResponse - schema: *ref_360 - language: !Languages - default: - name: '' - description: OK - Returns What-If operation status - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: Accepted - Returns URL in Location header to query for long-running operation status. - protocol: !Protocols - http: !HttpResponse - headers: - - !HttpHeader - schema: *ref_1 - header: Location - language: - default: - name: Location - description: URL to get status of this long-running operation. - - !HttpHeader - schema: *ref_361 - header: Retry-After - language: - default: - name: RetryAfter - description: Number of seconds to wait before polling for status. - statusCodes: - - '202' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Predict template changes at management group scope: - parameters: - api-version: '2021-04-01' - deploymentName: exampleDeploymentName - parameters: - location: eastus - properties: - mode: Incremental - parameters: {} - templateLink: https://example.com/exampleTemplate.json - responses: - '200': - body: - properties: - changes: - - after: - name: myManagementGroup - type: Microsoft.Management/managementGroups - apiVersion: '2019-11-01' - id: /providers/Microsoft.Management/managementGroups/myManagementGroup - changeType: Create - resourceId: /providers/Microsoft.Management/managementGroups/myManagementGroup - status: Succeeded - '202': - headers: - Location: >- - /subscriptions/4d0ca63b-7939-4c9c-afbe-5fafae501724/operationresults/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - x-ms-long-running-operation: true - x-ms-long-running-operation-options: - final-state-via: location - language: !Languages - default: - name: WhatIfAtTenantScope - description: Returns changes that will be made by the deployment if executed at the scope of the tenant group. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_362 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate - method: post - uri: '{$host}' - signatureParameters: - - *ref_362 - responses: - - !SchemaResponse - schema: *ref_338 - language: !Languages - default: - name: '' - description: OK - Returns the template. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: ExportTemplateAtTenantScope - description: Exports the template used for specified deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_364 - schema: *ref_363 - implementation: Method - language: !Languages - default: - name: filter - description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_365 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to get. If null is passed, returns all deployments. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Resources/deployments/ - method: get - uri: '{$host}' - signatureParameters: - - *ref_364 - - *ref_365 - responses: - - !SchemaResponse - schema: *ref_343 - language: !Languages - default: - name: '' - description: OK - Returns an array of deployments. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListAtTenantScope - description: Get all the deployments at the tenant scope. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_367 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_368 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_367 - - *ref_368 - responses: - - !Response - language: !Languages - default: - name: '' - description: Accepted - Returns this status until the asynchronous operation has completed. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: DeleteAtManagementGroupScope - description: >- - A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template - deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of - 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. - summary: Deletes a deployment from the deployment history. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_369 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_370 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName} - method: head - uri: '{$host}' - signatureParameters: - - *ref_369 - - *ref_370 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - - !Response - language: !Languages - default: - name: '' - description: Not Found - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '404' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: CheckExistenceAtManagementGroupScope - description: Checks whether the deployment exists. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_372 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_373 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_371 - schema: *ref_346 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Additional parameters supplied to the operation. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_371 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_372 - - *ref_373 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: Created - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Create deployment at management group scope.: - parameters: - api-version: '2021-04-01' - deploymentName: my-deployment - groupId: my-management-group-id - parameters: - location: eastus - properties: - mode: Incremental - parameters: {} - templateLink: - uri: https://example.com/exampleTemplate.json - responses: - '200': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment - location: eastus - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name - resourceName: policy-definition-name - resourceType: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock - resourceName: location-lock - resourceType: Microsoft.Authorization/policyAssignments - duration: PT1.2970875S - mode: Incremental - parameters: {} - providers: - - namespace: Microsoft.Authorization - resourceTypes: - - locations: - - null - resourceType: policyDefinitions - - locations: - - null - resourceType: policyAssignments - - namespace: Microsoft.Resources - resourceTypes: - - locations: - - eastus - resourceType: deployments - provisioningState: Accepted - timestamp: '2019-04-24T22:52:38.7895563Z' - '201': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment - location: eastus - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name - resourceName: policy-definition-name - resourceType: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock - resourceName: location-lock - resourceType: Microsoft.Authorization/policyAssignments - duration: PT1.2970875S - mode: Incremental - parameters: {} - providers: - - namespace: Microsoft.Authorization - resourceTypes: - - locations: - - null - resourceType: policyDefinitions - - locations: - - null - resourceType: policyAssignments - - namespace: Microsoft.Resources - resourceTypes: - - locations: - - eastus - resourceType: deployments - provisioningState: Accepted - timestamp: '2019-04-24T22:52:38.7895563Z' - x-ms-long-running-operation: true - language: !Languages - default: - name: CreateOrUpdateAtManagementGroupScope - description: You can provide the template and parameters directly in the request or link to JSON files. - summary: Deploys resources at management group scope. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_374 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_375 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_374 - - *ref_375 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtManagementGroupScope - description: Gets a deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_376 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_377 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel - method: post - uri: '{$host}' - signatureParameters: - - *ref_376 - - *ref_377 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: CancelAtManagementGroupScope - description: >- - You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template - deployment and leaves the resources partially deployed. - summary: Cancels a currently running template deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_379 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_380 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_378 - schema: *ref_346 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters to validate. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_378 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_379 - - *ref_380 - responses: - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: OK - Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '400' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: ValidateAtManagementGroupScope - description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_384 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_385 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_381 - schema: *ref_353 - flattened: true - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters to validate. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - - !VirtualParameter &ref_382 - schema: *ref_104 - implementation: Method - originalParameter: *ref_381 - pathToProperty: [] - required: true - targetProperty: *ref_355 - language: !Languages - default: - name: location - description: The location to store the deployment data. - protocol: !Protocols {} - - !VirtualParameter &ref_383 - schema: *ref_23 - implementation: Method - originalParameter: *ref_381 - pathToProperty: [] - required: true - targetProperty: *ref_356 - language: !Languages - default: - name: properties - description: The deployment properties. - protocol: !Protocols {} - signatureParameters: - - *ref_382 - - *ref_383 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_384 - - *ref_385 - responses: - - !SchemaResponse - schema: *ref_360 - language: !Languages - default: - name: '' - description: OK - Returns What-If operation status - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: Accepted - Returns URL in Location header to query for long-running operation status. - protocol: !Protocols - http: !HttpResponse - headers: - - !HttpHeader - schema: *ref_363 - header: Location - language: - default: - name: Location - description: URL to get status of this long-running operation. - - !HttpHeader - schema: *ref_386 - header: Retry-After - language: - default: - name: RetryAfter - description: Number of seconds to wait before polling for status. - statusCodes: - - '202' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Predict template changes at management group scope: - parameters: - api-version: '2021-04-01' - deploymentName: exampleDeploymentName - groupId: myManagementGruop - parameters: - location: eastus - properties: - mode: Incremental - parameters: {} - templateLink: https://example.com/exampleTemplate.json - responses: - '200': - body: - properties: - changes: - - after: - before: - name: myPolicyAssignment - type: Microsoft.Authorization/policyAssignments - apiVersion: '2019-06-01' - id: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment - location: westus2 - properties: - enforcementMode: DoNotEnforce - policyDefinitionId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyDefinition - scope: /subscriptions/00000000-0000-0000-0000-000000000001 - changeType: Modify - delta: - - path: properties.enforcementMode - after: DoNotEnforce - before: Default - propertyChangeType: Modify - resourceId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment - before: - name: myPolicyAssignment - type: Microsoft.Authorization/policyAssignments - apiVersion: '2019-06-01' - id: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment - location: westus2 - properties: - enforcementMode: Default - policyDefinitionId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyDefinition - scope: /subscriptions/00000000-0000-0000-0000-000000000001 - changeType: Modify - resourceId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment - - after: - name: myPolicyAssignment2 - type: Microsoft.Authorization/policyAssignments - apiVersion: '2019-06-01' - id: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment2 - location: westus2 - properties: - enforcementMode: Default - policyDefinitionId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyDefinition - scope: /subscriptions/00000000-0000-0000-0000-000000000002 - changeType: Create - resourceId: /providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment2 - status: Succeeded - '202': - headers: - Location: >- - /subscriptions/4d0ca63b-7939-4c9c-afbe-5fafae501724/operationresults/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - x-ms-long-running-operation: true - x-ms-long-running-operation-options: - final-state-via: location - language: !Languages - default: - name: WhatIfAtManagementGroupScope - description: Returns changes that will be made by the deployment if executed at the scope of the management group. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_387 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_388 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate - method: post - uri: '{$host}' - signatureParameters: - - *ref_387 - - *ref_388 - responses: - - !SchemaResponse - schema: *ref_338 - language: !Languages - default: - name: '' - description: OK - Returns the template. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: ExportTemplateAtManagementGroupScope - description: Exports the template used for specified deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_390 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_391 - schema: *ref_389 - implementation: Method - language: !Languages - default: - name: filter - description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_392 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to get. If null is passed, returns all deployments. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/ - method: get - uri: '{$host}' - signatureParameters: - - *ref_390 - - *ref_391 - - *ref_392 - responses: - - !SchemaResponse - schema: *ref_343 - language: !Languages - default: - name: '' - description: OK - Returns an array of deployments. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListAtManagementGroupScope - description: Get all the deployments for a management group. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_394 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_394 - responses: - - !Response - language: !Languages - default: - name: '' - description: Accepted - Returns this status until the asynchronous operation has completed. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: DeleteAtSubscriptionScope - description: >- - A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template - deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of - 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. - summary: Deletes a deployment from the deployment history. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_395 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName} - method: head - uri: '{$host}' - signatureParameters: - - *ref_395 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - - !Response - language: !Languages - default: - name: '' - description: Not Found - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '404' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: CheckExistenceAtSubscriptionScope - description: Checks whether the deployment exists. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_397 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_396 - schema: *ref_324 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Additional parameters supplied to the operation. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_396 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_397 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: Created - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Create a deployment that will deploy a templateSpec with the given resourceId: - parameters: - api-version: '2021-04-01' - deploymentName: my-deployment - parameters: - location: eastus - properties: - mode: Incremental - parameters: {} - templateLink: - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 - subscriptionId: 00000000-0000-0000-0000-000000000001 - responses: - '200': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.Resources/deployments/my-deployment - location: eastus - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: [] - duration: PT1.2637681S - mode: Incremental - outputResources: [] - parameters: {} - providers: [] - provisioningState: Succeeded - templateHash: '0000000000000000000' - templateLink: - contentVersion: 1.0.0.0 - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 - timestamp: '2020-06-05T01:51:58.6288067Z' - '201': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.Resources/deployments/my-deployment - location: eastus - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: [] - duration: PT1.2637681S - mode: Incremental - parameters: {} - providers: [] - provisioningState: Accepted - templateHash: '0000000000000000000' - templateLink: - contentVersion: 1.0.0.0 - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 - timestamp: '2020-06-05T01:51:58.6288067Z' - x-ms-long-running-operation: true - language: !Languages - default: - name: CreateOrUpdateAtSubscriptionScope - description: You can provide the template and parameters directly in the request or link to JSON files. - summary: Deploys resources at subscription scope. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_398 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_398 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtSubscriptionScope - description: Gets a deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_399 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel - method: post - uri: '{$host}' - signatureParameters: - - *ref_399 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: CancelAtSubscriptionScope - description: >- - You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template - deployment and leaves the resources partially deployed. - summary: Cancels a currently running template deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_401 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_400 - schema: *ref_324 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters to validate. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_400 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_401 - responses: - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: OK - Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '400' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: ValidateAtSubscriptionScope - description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_408 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_403 - schema: *ref_402 - flattened: true - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters to What If. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - - !VirtualParameter &ref_406 - schema: *ref_114 - implementation: Method - originalParameter: *ref_403 - pathToProperty: [] - required: false - targetProperty: *ref_404 - language: !Languages - default: - name: location - description: The location to store the deployment data. - protocol: !Protocols {} - - !VirtualParameter &ref_407 - schema: *ref_23 - implementation: Method - originalParameter: *ref_403 - pathToProperty: [] - required: true - targetProperty: *ref_405 - language: !Languages - default: - name: properties - description: The deployment properties. - protocol: !Protocols {} - signatureParameters: - - *ref_406 - - *ref_407 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_408 - responses: - - !SchemaResponse - schema: *ref_360 - language: !Languages - default: - name: '' - description: OK - Returns What-If operation status - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: Accepted - Returns URL in Location header to query for long-running operation status. - protocol: !Protocols - http: !HttpResponse - headers: - - !HttpHeader - schema: *ref_389 - header: Location - language: - default: - name: Location - description: URL to get status of this long-running operation. - - !HttpHeader - schema: *ref_409 - header: Retry-After - language: - default: - name: RetryAfter - description: Number of seconds to wait before polling for status. - statusCodes: - - '202' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Predict template changes at subscription scope: - parameters: - api-version: '2021-04-01' - deploymentName: my-deployment - parameters: - location: westus - properties: - mode: Incremental - parameters: {} - templateLink: https://example.com/exampleTemplate.json - subscriptionId: 00000000-0000-0000-0000-000000000001 - responses: - '200': - body: - properties: - changes: - - after: - name: myExistingIdentity - type: Microsoft.ManagedIdentity/userAssignedIdentities - apiVersion: '2018-11-30' - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity - location: westus2 - tags: - myNewTag: my tag value - before: - name: myExistingIdentity - type: Microsoft.ManagedIdentity/userAssignedIdentities - apiVersion: '2018-11-30' - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity - location: westus2 - changeType: Modify - delta: - - path: tags.myNewTag - after: my tag value - propertyChangeType: Create - resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity - - after: - name: myNewIdentity - type: Microsoft.ManagedIdentity/userAssignedIdentities - apiVersion: '2018-11-30' - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity - location: eastus - tags: - myOtherNewTag: another new tag value - changeType: Create - resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity - - after: - name: my-resource-group2 - type: Microsoft.Resources/resourceGroups - apiVersion: '2019-03-01' - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group2 - location: '{location3}' - changeType: Create - resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group2 - status: succeeded - '202': - headers: - Location: >- - /subscriptions/00000000-0000-0000-0000-000000000000/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - x-ms-long-running-operation: true - x-ms-long-running-operation-options: - final-state-via: location - language: !Languages - default: - name: WhatIfAtSubscriptionScope - description: Returns changes that will be made by the deployment if executed at the scope of the subscription. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_410 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate - method: post - uri: '{$host}' - signatureParameters: - - *ref_410 - responses: - - !SchemaResponse - schema: *ref_338 - language: !Languages - default: - name: '' - description: OK - Returns the template. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: ExportTemplateAtSubscriptionScope - description: Exports the template used for specified deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_412 - schema: *ref_411 - implementation: Method - language: !Languages - default: - name: filter - description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_413 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to get. If null is passed, returns all deployments. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/ - method: get - uri: '{$host}' - signatureParameters: - - *ref_412 - - *ref_413 - responses: - - !SchemaResponse - schema: *ref_343 - language: !Languages - default: - name: '' - description: OK - Returns an array of deployments. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListAtSubscriptionScope - description: Get all the deployments for a subscription. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_415 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group with the deployment to delete. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_416 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_415 - - *ref_416 - responses: - - !Response - language: !Languages - default: - name: '' - description: Accepted - Returns this status until the asynchronous operation has completed. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: Delete - description: >- - A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. - This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the - process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in - the Location header returns an error-level status code. - summary: Deletes a deployment from the deployment history. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_417 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group with the deployment to check. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_418 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName} - method: head - uri: '{$host}' - signatureParameters: - - *ref_417 - - *ref_418 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - - !Response - language: !Languages - default: - name: '' - description: Not Found - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '404' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: CheckExistence - description: Checks whether the deployment exists. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_420 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_421 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_419 - schema: *ref_324 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Additional parameters supplied to the operation. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_419 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_420 - - *ref_421 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: Created - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Create a deployment that will deploy a template with a uri and queryString: - parameters: - api-version: '2021-04-01' - deploymentName: my-deployment - parameters: - properties: - mode: Incremental - parameters: {} - templateLink: - queryString: sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=xxxxxxxx0xxxxxxxxxxxxx%2bxxxxxxxxxxxxxxxxxxxx%3d - uri: https://example.com/exampleTemplate.json - resourceGroupName: my-resource-group - subscriptionId: 00000000-0000-0000-0000-000000000001 - responses: - '200': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: [] - duration: PT22.8356799S - mode: Incremental - outputResources: - - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account - parameters: {} - providers: - - namespace: Microsoft.Storage - resourceTypes: - - locations: - - eastus - resourceType: storageAccounts - provisioningState: Succeeded - templateHash: '0000000000000000000' - templateLink: - contentVersion: 1.0.0.0 - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 - timestamp: '2020-06-05T01:20:01.723776Z' - '201': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: [] - duration: PT22.8356799S - mode: Incremental - parameters: {} - providers: - - namespace: Microsoft.Storage - resourceTypes: - - locations: - - eastus - resourceType: storageAccounts - provisioningState: Accepted - templateHash: '0000000000000000000' - templateLink: - contentVersion: 1.0.0.0 - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 - timestamp: '2020-06-05T01:20:01.723776Z' - Create a deployment that will deploy a templateSpec with the given resourceId: - parameters: - api-version: '2021-04-01' - deploymentName: my-deployment - parameters: - properties: - mode: Incremental - parameters: {} - templateLink: - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 - resourceGroupName: my-resource-group - subscriptionId: 00000000-0000-0000-0000-000000000001 - responses: - '200': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: [] - duration: PT22.8356799S - mode: Incremental - outputResources: - - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account - parameters: {} - providers: - - namespace: Microsoft.Storage - resourceTypes: - - locations: - - eastus - resourceType: storageAccounts - provisioningState: Succeeded - templateHash: '0000000000000000000' - templateLink: - contentVersion: 1.0.0.0 - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 - timestamp: '2020-06-05T01:20:01.723776Z' - '201': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: [] - duration: PT22.8356799S - mode: Incremental - parameters: {} - providers: - - namespace: Microsoft.Storage - resourceTypes: - - locations: - - eastus - resourceType: storageAccounts - provisioningState: Accepted - templateHash: '0000000000000000000' - templateLink: - contentVersion: 1.0.0.0 - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1 - timestamp: '2020-06-05T01:20:01.723776Z' - Create a deployment that will redeploy another deployment on failure: - parameters: - api-version: '2021-04-01' - deploymentName: my-deployment - parameters: - properties: - mode: Complete - onErrorDeployment: - type: SpecificDeployment - deploymentName: name-of-deployment-to-use - parameters: {} - templateLink: - uri: https://example.com/exampleTemplate.json - resourceGroupName: my-resource-group - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: '{resourceid}' - resourceName: VNet1 - resourceType: Microsoft.Network/virtualNetworks - id: '{resourceid}' - resourceName: VNet1/Subnet1 - resourceType: Microsoft.Network/virtualNetworks/subnets - - dependsOn: - - id: '{resourceid}' - resourceName: VNet1 - resourceType: Microsoft.Network/virtualNetworks - - id: '{resourceid}' - resourceName: VNet1/Subnet1 - resourceType: Microsoft.Network/virtualNetworks/subnets - id: '{resourceid}' - resourceName: VNet1/Subnet2 - resourceType: Microsoft.Network/virtualNetworks/subnets - duration: PT0.8204881S - mode: Complete - onErrorDeployment: - type: SpecificDeployment - deploymentName: name-of-deployment-to-use - parameters: {} - providers: - - namespace: Microsoft.Network - resourceTypes: - - locations: - - centralus - resourceType: virtualNetworks - - locations: - - centralus - resourceType: virtualNetworks/subnets - provisioningState: Accepted - templateLink: - contentVersion: 1.0.0.0 - uri: https://example.com/exampleTemplate.json - timestamp: '2019-03-01T00:00:00.0000000Z' - '201': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: '{resourceid}' - resourceName: VNet1 - resourceType: Microsoft.Network/virtualNetworks - id: '{resourceid}' - resourceName: VNet1/Subnet1 - resourceType: Microsoft.Network/virtualNetworks/subnets - - dependsOn: - - id: '{resourceid}' - resourceName: VNet1 - resourceType: Microsoft.Network/virtualNetworks - - id: '{resourceid}' - resourceName: VNet1/Subnet1 - resourceType: Microsoft.Network/virtualNetworks/subnets - id: '{resourceid}' - resourceName: VNet1/Subnet2 - resourceType: Microsoft.Network/virtualNetworks/subnets - duration: PT0.8204881S - mode: Complete - onErrorDeployment: - type: SpecificDeployment - deploymentName: name-of-deployment-to-use - parameters: {} - providers: - - namespace: Microsoft.Network - resourceTypes: - - locations: - - centralus - resourceType: virtualNetworks - - locations: - - centralus - resourceType: virtualNetworks/subnets - provisioningState: Accepted - templateLink: - contentVersion: 1.0.0.0 - uri: https://example.com/exampleTemplate.json - timestamp: '2019-03-01T00:00:00.0000000Z' - Create a deployment that will redeploy the last successful deployment on failure: - parameters: - api-version: '2021-04-01' - deploymentName: my-deployment - parameters: - properties: - mode: Complete - onErrorDeployment: - type: LastSuccessful - parameters: {} - templateLink: - uri: https://example.com/exampleTemplate.json - resourceGroupName: my-resource-group - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: '{resourceid}' - resourceName: VNet1 - resourceType: Microsoft.Network/virtualNetworks - id: '{resourceid}' - resourceName: VNet1/Subnet1 - resourceType: Microsoft.Network/virtualNetworks/subnets - - dependsOn: - - id: '{resourceid}' - resourceName: VNet1 - resourceType: Microsoft.Network/virtualNetworks - - id: '{resourceid}' - resourceName: VNet1/Subnet1 - resourceType: Microsoft.Network/virtualNetworks/subnets - id: '{resourceid}' - resourceName: VNet1/Subnet2 - resourceType: Microsoft.Network/virtualNetworks/subnets - duration: PT0.8204881S - mode: Complete - onErrorDeployment: - type: LastSuccessful - deploymentName: '{nameOfLastSuccesfulDeployment}' - parameters: {} - providers: - - namespace: Microsoft.Network - resourceTypes: - - locations: - - centralus - resourceType: virtualNetworks - - locations: - - centralus - resourceType: virtualNetworks/subnets - provisioningState: Accepted - templateLink: - contentVersion: 1.0.0.0 - uri: https://example.com/exampleTemplate.json - timestamp: '2019-03-01T00:00:00.0000000Z' - '201': - body: - name: my-deployment - type: Microsoft.Resources/deployments - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment - properties: - correlationId: 00000000-0000-0000-0000-000000000000 - dependencies: - - dependsOn: - - id: '{resourceid}' - resourceName: VNet1 - resourceType: Microsoft.Network/virtualNetworks - id: '{resourceid}' - resourceName: VNet1/Subnet1 - resourceType: Microsoft.Network/virtualNetworks/subnets - - dependsOn: - - id: '{resourceid}' - resourceName: VNet1 - resourceType: Microsoft.Network/virtualNetworks - - id: '{resourceid}' - resourceName: VNet1/Subnet1 - resourceType: Microsoft.Network/virtualNetworks/subnets - id: '{resourceid}' - resourceName: VNet1/Subnet2 - resourceType: Microsoft.Network/virtualNetworks/subnets - duration: PT0.8204881S - mode: Complete - onErrorDeployment: - type: LastSuccessful - deploymentName: '{nameOfLastSuccesfulDeployment}' - parameters: {} - providers: - - namespace: Microsoft.Network - resourceTypes: - - locations: - - centralus - resourceType: virtualNetworks - - locations: - - centralus - resourceType: virtualNetworks/subnets - provisioningState: Accepted - templateLink: - contentVersion: 1.0.0.0 - uri: https://example.com/exampleTemplate.json - timestamp: '2019-03-01T00:00:00.0000000Z' - x-ms-long-running-operation: true - language: !Languages - default: - name: CreateOrUpdate - description: You can provide the template and parameters directly in the request or link to JSON files. - summary: Deploys resources to a resource group. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_422 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_423 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_422 - - *ref_423 - responses: - - !SchemaResponse - schema: *ref_100 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment, including provisioning status. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtResourceGroupScope - description: Gets a deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_424 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_425 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel - method: post - uri: '{$host}' - signatureParameters: - - *ref_424 - - *ref_425 - responses: - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: Cancel - description: >- - You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template - deployment and leaves the resource group partially deployed. - summary: Cancels a currently running template deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_427 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group the template will be deployed to. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_428 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_426 - schema: *ref_324 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters to validate. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_426 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_427 - - *ref_428 - responses: - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: OK - Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: Accepted - The request has been accepted for processing and the operation will complete asynchronously. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '202' - - !SchemaResponse - schema: *ref_335 - language: !Languages - default: - name: '' - description: Returns the validation result. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '400' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-long-running-operation: true - language: !Languages - default: - name: Validate - description: Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_432 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group the template will be deployed to. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_433 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_429 - schema: *ref_402 - flattened: true - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters to validate. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - - !VirtualParameter &ref_430 - schema: *ref_114 - implementation: Method - originalParameter: *ref_429 - pathToProperty: [] - required: false - targetProperty: *ref_404 - language: !Languages - default: - name: location - description: The location to store the deployment data. - protocol: !Protocols {} - - !VirtualParameter &ref_431 - schema: *ref_23 - implementation: Method - originalParameter: *ref_429 - pathToProperty: [] - required: true - targetProperty: *ref_405 - language: !Languages - default: - name: properties - description: The deployment properties. - protocol: !Protocols {} - signatureParameters: - - *ref_430 - - *ref_431 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_432 - - *ref_433 - responses: - - !SchemaResponse - schema: *ref_360 - language: !Languages - default: - name: '' - description: OK - Returns What-If operation status - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: Accepted - Returns URL in Location header to query for long-running operation status. - protocol: !Protocols - http: !HttpResponse - headers: - - !HttpHeader - schema: *ref_411 - header: Location - language: - default: - name: Location - description: URL to get status of this long-running operation. - - !HttpHeader - schema: *ref_434 - header: Retry-After - language: - default: - name: RetryAfter - description: Number of seconds to wait before polling for status. - statusCodes: - - '202' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Predict template changes at resource group scope: - parameters: - api-version: '2021-04-01' - deploymentName: my-deployment - parameters: - properties: - mode: Incremental - parameters: {} - templateLink: https://example.com/exampleTemplate.json - resourceGroupName: my-resource-group - subscriptionId: 00000000-0000-0000-0000-000000000001 - responses: - '200': - body: - properties: - changes: - - after: - name: myExistingIdentity - type: Microsoft.ManagedIdentity/userAssignedIdentities - apiVersion: '2018-11-30' - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity - location: westus2 - tags: - myNewTag: my tag value - before: - name: myExistingIdentity - type: Microsoft.ManagedIdentity/userAssignedIdentities - apiVersion: '2018-11-30' - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity - location: westus2 - changeType: Modify - delta: - - path: tags.myNewTag - after: my tag value - propertyChangeType: Create - resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity - - after: - name: myNewIdentity - type: Microsoft.ManagedIdentity/userAssignedIdentities - apiVersion: '2018-11-30' - id: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity - location: eastus - tags: - myOtherNewTag: another new tag value - changeType: Create - resourceId: /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity - status: succeeded - '202': - headers: - Location: >- - /subscriptions/00000000-0000-0000-0000-000000000000/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - x-ms-long-running-operation: true - x-ms-long-running-operation-options: - final-state-via: location - language: !Languages - default: - name: WhatIf - description: Returns changes that will be made by the deployment if executed at the scope of the resource group. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_435 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_436 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate - method: post - uri: '{$host}' - signatureParameters: - - *ref_435 - - *ref_436 - responses: - - !SchemaResponse - schema: *ref_338 - language: !Languages - default: - name: '' - description: OK - Returns the template. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: ExportTemplate - description: Exports the template used for specified deployment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_437 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group with the deployments to get. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_438 - schema: *ref_10 - implementation: Method - language: !Languages - default: - name: filter - description: The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_439 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to get. If null is passed, returns all deployments. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/ - method: get - uri: '{$host}' - signatureParameters: - - *ref_437 - - *ref_438 - - *ref_439 - responses: - - !SchemaResponse - schema: *ref_343 - language: !Languages - default: - name: '' - description: OK - Returns an array of deployments. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-odata: '#/components/schemas/DeploymentExtendedFilter' - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListByResourceGroup - description: Get all the deployments for a resource group. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_440 - schema: *ref_3 - implementation: Method - required: true - language: !Languages - default: - name: template - description: The template provided to calculate hash. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_440 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /providers/Microsoft.Resources/calculateTemplateHash - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: [] - responses: - - !SchemaResponse - schema: *ref_441 - language: !Languages - default: - name: '' - description: OK - Returns the hash. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Calculate template hash: - parameters: - api-version: '2021-04-01' - template: - $schema: http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview - contentVersion: 1.0.0.0 - outputs: - string: - type: string - value: myvalue - parameters: - string: - type: string - resources: [] - variables: - array: - - 1 - - 2 - - 3 - - 4 - bool: true - int: 42 - object: - object: - location: West US - vmSize: Large - string: string - responses: - '200': - body: - minifiedTemplate: >- - {"$SCHEMA":"HTTP://SCHEMAS.MANAGEMENT.AZURE.COM/DEPLOYMENTTEMPLATE?API-VERSION=2014-04-01-PREVIEW","CONTENTVERSION":"1.0.0.0","PARAMETERS":{"STRING":{"TYPE":"STRING"}},"VARIABLES":{"STRING":"STRING","INT":42,"BOOL":TRUE,"ARRAY":[1,2,3,4],"OBJECT":{"OBJECT":{"VMSIZE":"LARGE","LOCATION":"WEST - US"}}},"RESOURCES":[],"OUTPUTS":{"STRING":{"TYPE":"STRING","VALUE":"MYVALUE"}}} - templateHash: '695440707931307747' - language: !Languages - default: - name: CalculateTemplateHash - description: Calculate the hash of the given template. - protocol: !Protocols {} - language: !Languages - default: - name: Deployments - description: '' - protocol: !Protocols {} - - !OperationGroup - $key: DeploymentOperations - operations: - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_442 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_443 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_444 - schema: *ref_10 - implementation: Method - required: true - language: !Languages - default: - name: operationId - description: The ID of the operation to get. - serializedName: operationId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId} - method: get - uri: '{$host}' - signatureParameters: - - *ref_442 - - *ref_443 - - *ref_444 - responses: - - !SchemaResponse - schema: *ref_131 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment operation. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtScope - description: Gets a deployments operation. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_445 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: The resource scope. - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_446 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_447 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to return. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations - method: get - uri: '{$host}' - signatureParameters: - - *ref_445 - - *ref_446 - - *ref_447 - responses: - - !SchemaResponse - schema: *ref_448 - language: !Languages - default: - name: '' - description: OK - Return an array of deployment operations. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListAtScope - description: Gets all deployments operations for a deployment. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_449 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_450 - schema: *ref_10 - implementation: Method - required: true - language: !Languages - default: - name: operationId - description: The ID of the operation to get. - serializedName: operationId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId} - method: get - uri: '{$host}' - signatureParameters: - - *ref_449 - - *ref_450 - responses: - - !SchemaResponse - schema: *ref_131 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment operation. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtTenantScope - description: Gets a deployments operation. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_451 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_452 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to return. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Resources/deployments/{deploymentName}/operations - method: get - uri: '{$host}' - signatureParameters: - - *ref_451 - - *ref_452 - responses: - - !SchemaResponse - schema: *ref_448 - language: !Languages - default: - name: '' - description: OK - Return an array of deployment operations. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListAtTenantScope - description: Gets all deployments operations for a deployment. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_453 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_454 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_455 - schema: *ref_10 - implementation: Method - required: true - language: !Languages - default: - name: operationId - description: The ID of the operation to get. - serializedName: operationId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId} - method: get - uri: '{$host}' - signatureParameters: - - *ref_453 - - *ref_454 - - *ref_455 - responses: - - !SchemaResponse - schema: *ref_131 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment operation. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtManagementGroupScope - description: Gets a deployments operation. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_456 - schema: *ref_366 - implementation: Method - required: true - language: !Languages - default: - name: groupId - description: The management group ID. - serializedName: groupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_457 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_458 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to return. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations - method: get - uri: '{$host}' - signatureParameters: - - *ref_456 - - *ref_457 - - *ref_458 - responses: - - !SchemaResponse - schema: *ref_448 - language: !Languages - default: - name: '' - description: OK - Return an array of deployment operations. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListAtManagementGroupScope - description: Gets all deployments operations for a deployment. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_459 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_460 - schema: *ref_10 - implementation: Method - required: true - language: !Languages - default: - name: operationId - description: The ID of the operation to get. - serializedName: operationId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId} - method: get - uri: '{$host}' - signatureParameters: - - *ref_459 - - *ref_460 - responses: - - !SchemaResponse - schema: *ref_131 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment operation. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtSubscriptionScope - description: Gets a deployments operation. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_461 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_462 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to return. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations - method: get - uri: '{$host}' - signatureParameters: - - *ref_461 - - *ref_462 - responses: - - !SchemaResponse - schema: *ref_448 - language: !Languages - default: - name: '' - description: OK - Return an array of deployment operations. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListAtSubscriptionScope - description: Gets all deployments operations for a deployment. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_463 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_464 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_465 - schema: *ref_10 - implementation: Method - required: true - language: !Languages - default: - name: operationId - description: The ID of the operation to get. - serializedName: operationId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId} - method: get - uri: '{$host}' - signatureParameters: - - *ref_463 - - *ref_464 - - *ref_465 - responses: - - !SchemaResponse - schema: *ref_131 - language: !Languages - default: - name: '' - description: OK - Returns information about the deployment operation. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - language: !Languages - default: - name: GetAtResourceGroupScope - description: Gets a deployments operation. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2021-04-01' - parameters: - - *ref_314 - - !Parameter &ref_466 - schema: *ref_414 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group. The name is case insensitive. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_467 - schema: *ref_315 - implementation: Method - required: true - language: !Languages - default: - name: deploymentName - description: The name of the deployment. - serializedName: deploymentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_468 - schema: *ref_339 - implementation: Method - language: !Languages - default: - name: top - description: The number of results to return. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_316 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations - method: get - uri: '{$host}' - signatureParameters: - - *ref_466 - - *ref_467 - - *ref_468 - responses: - - !SchemaResponse - schema: *ref_448 - language: !Languages - default: - name: '' - description: OK - Return an array of deployment operations. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: List - description: Gets all deployments operations for a deployment. - paging: - nextLinkName: nextLink - protocol: !Protocols {} - language: !Languages - default: - name: DeploymentOperations - description: '' - protocol: !Protocols {} - - !OperationGroup - $key: PolicyAssignments - operations: - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_471 - schema: *ref_469 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: >- - The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource - group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_472 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyAssignmentName - description: The name of the policy assignment to delete. - serializedName: policyAssignmentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_471 - - *ref_472 - responses: - - !SchemaResponse - schema: *ref_154 - language: !Languages - default: - name: '' - description: OK - Returns information about the deleted assignment. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: No Content - the policy assignment doesn't exist. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Delete a policy assignment: - parameters: - api-version: '2020-09-01' - policyAssignmentName: EnforceNaming - scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - body: - name: EnforceNaming - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming - properties: - description: Force resource names to begin with given DeptA and end with -LC - displayName: Enforce resource naming rules - metadata: - assignedBy: Special Someone - notScopes: [] - parameters: - prefix: - value: DeptA - suffix: - value: '-LC' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - headers: {} - '204': - headers: {} - language: !Languages - default: - name: Delete - description: >- - This operation deletes a policy assignment, given its name and the scope it was created in. The scope of a policy assignment is the part of its ID preceding - '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. - summary: Deletes a policy assignment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_474 - schema: *ref_469 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: >- - The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource - group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_475 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyAssignmentName - description: The name of the policy assignment. - serializedName: policyAssignmentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_473 - schema: *ref_154 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters for the policy assignment. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_473 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_474 - - *ref_475 - responses: - - !SchemaResponse - schema: *ref_154 - language: !Languages - default: - name: '' - description: Created - Returns information about the new policy assignment. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Create or update a policy assignment: - parameters: - api-version: '2020-09-01' - parameters: - properties: - description: Force resource names to begin with given DeptA and end with -LC - displayName: Enforce resource naming rules - metadata: - assignedBy: Special Someone - nonComplianceMessages: - - message: Resource names must start with 'DeptA' and end with '-LC'. - parameters: - prefix: - value: DeptA - suffix: - value: '-LC' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - policyAssignmentName: EnforceNaming - scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '201': - body: - name: EnforceNaming - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming - properties: - description: Force resource names to begin with given DeptA and end with -LC - displayName: Enforce resource naming rules - enforcementMode: Default - metadata: - assignedBy: Special Someone - nonComplianceMessages: - - message: Resource names must start with 'DeptA' and end with '-LC'. - notScopes: [] - parameters: - prefix: - value: DeptA - suffix: - value: '-LC' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - headers: {} - Create or update a policy assignment with a managed identity: - parameters: - api-version: '2020-09-01' - parameters: - identity: - type: SystemAssigned - location: eastus - properties: - description: Force resource names to begin with given DeptA and end with -LC - displayName: Enforce resource naming rules - enforcementMode: Default - metadata: - assignedBy: Foo Bar - parameters: - prefix: - value: DeptA - suffix: - value: '-LC' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - policyAssignmentName: EnforceNaming - scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '201': - body: - name: EnforceNaming - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming - identity: - type: SystemAssigned - principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a - tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 - location: eastus - properties: - description: Force resource names to begin with given DeptA and end with -LC - displayName: Enforce resource naming rules - enforcementMode: Default - metadata: - assignedBy: Special Someone - notScopes: [] - parameters: - prefix: - value: DeptA - suffix: - value: '-LC' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - headers: {} - Create or update a policy assignment with multiple non-compliance messages: - parameters: - api-version: '2020-09-01' - parameters: - properties: - displayName: Enforce security policies - nonComplianceMessages: - - message: Resources must comply with all internal security policies. See for more info. - - message: Resource names must start with 'DeptA' and end with '-LC'. - policyDefinitionReferenceId: '10420126870854049575' - - message: Storage accounts must have firewall rules configured. - policyDefinitionReferenceId: '8572513655450389710' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/securityInitiative - policyAssignmentName: securityInitAssignment - scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '201': - body: - name: securityInitAssignment - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/securityInitAssignment - properties: - displayName: Enforce security policies - enforcementMode: Default - metadata: - assignedBy: User 1 - nonComplianceMessages: - - message: Resources must comply with all internal security policies. See for more info. - - message: Resource names must start with 'DeptA' and end with '-LC'. - policyDefinitionReferenceId: '10420126870854049575' - - message: Storage accounts must have firewall rules configured. - policyDefinitionReferenceId: '8572513655450389710' - notScopes: [] - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/securityInitiative - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - headers: {} - Create or update a policy assignment without enforcing policy effect during resource creation or update.: - parameters: - api-version: '2020-09-01' - parameters: - properties: - description: Force resource names to begin with given DeptA and end with -LC - displayName: Enforce resource naming rules - enforcementMode: DoNotEnforce - metadata: - assignedBy: Special Someone - parameters: - prefix: - value: DeptA - suffix: - value: '-LC' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - policyAssignmentName: EnforceNaming - scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '201': - body: - name: EnforceNaming - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming - properties: - description: Force resource names to begin with given DeptA and end with -LC - displayName: Enforce resource naming rules - enforcementMode: DoNotEnforce - metadata: - assignedBy: Special Someone - notScopes: [] - parameters: - prefix: - value: DeptA - suffix: - value: '-LC' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - headers: {} - language: !Languages - default: - name: Create - description: ' This operation creates or updates a policy assignment with the given scope and name. Policy assignments apply to all resources contained within their scope. For example, when you assign a policy at resource group scope, that policy applies to all resources in the group.' - summary: Creates or updates a policy assignment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_476 - schema: *ref_469 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: scope - description: >- - The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource - group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' - serializedName: scope - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_477 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyAssignmentName - description: The name of the policy assignment to get. - serializedName: policyAssignmentName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_476 - - *ref_477 - responses: - - !SchemaResponse - schema: *ref_154 - language: !Languages - default: - name: '' - description: OK - Returns information about the policy assignment. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Retrieve a policy assignment: - parameters: - api-version: '2020-09-01' - policyAssignmentName: EnforceNaming - scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - body: - name: EnforceNaming - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming - properties: - description: Force resource names to begin with given DeptA and end with -LC - displayName: Enforce resource naming rules - enforcementMode: Default - metadata: - assignedBy: Special Someone - notScopes: [] - parameters: - prefix: - value: DeptA - suffix: - value: '-LC' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - headers: {} - Retrieve a policy assignment with a managed identity: - parameters: - api-version: '2020-09-01' - policyAssignmentName: EnforceNaming - scope: subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - body: - name: EnforceNaming - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming - identity: - type: SystemAssigned - principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a - tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 - location: westus - properties: - description: Force resource names to begin with given DeptA and end with -LC - displayName: Enforce resource naming rules - enforcementMode: Default - metadata: - assignedBy: Special Someone - notScopes: [] - parameters: - prefix: - value: DeptA - suffix: - value: '-LC' - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - headers: {} - language: !Languages - default: - name: Get - description: This operation retrieves a single policy assignment, given its name and the scope it was created at. - summary: Retrieves a policy assignment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_480 - schema: *ref_478 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group that contains policy assignments. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_481 - schema: *ref_469 - implementation: Method - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: filter - description: >- - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atScope() is - provided, the returned list only includes all policy assignments that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If - $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the given scope. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments - of the policy definition whose id is {value}. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_482 - schema: *ref_479 - implementation: Method - language: !Languages - default: - name: top - description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments - method: get - uri: '{$host}' - signatureParameters: - - *ref_480 - - *ref_481 - - *ref_482 - responses: - - !SchemaResponse - schema: *ref_483 - language: !Languages - default: - name: '' - description: OK - Returns an array of policy assignments. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - List policy assignments that apply to a resource group: - parameters: - $filter: atScope() - api-version: '2020-09-01' - resourceGroupName: TestResourceGroup - subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - body: - value: - - name: TestCostManagement - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestCostManagement - identity: - type: SystemAssigned - principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a - tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 - location: eastus - properties: - description: Minimize the risk of accidental cost overruns - displayName: Storage Cost Management - metadata: - category: Cost Management - notScopes: [] - parameters: - allowedSkus: - value: Standard_A1 - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/storageSkus - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup - - name: TestTagEnforcement - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestTagEnforcement - properties: - description: Ensure a given tag key and value are present on all resources - displayName: Enforces a tag key and value - notScopes: [] - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup - headers: {} - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListForResourceGroup - description: >- - This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' - or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as - well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered - list except those applied to resources contained within the resource group. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource group. If - $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource group. - paging: - nextLinkName: nextLink - summary: Retrieves all policy assignments that apply to a resource group. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_484 - schema: *ref_478 - implementation: Method - required: true - language: !Languages - default: - name: resourceGroupName - description: The name of the resource group containing the resource. - serializedName: resourceGroupName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_485 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: resourceProviderNamespace - description: The namespace of the resource provider. For example, the namespace of a virtual machine is Microsoft.Compute (from Microsoft.Compute/virtualMachines) - serializedName: resourceProviderNamespace - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_486 - schema: *ref_469 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: parentResourcePath - description: The parent resource path. Use empty string if there is none. - serializedName: parentResourcePath - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_487 - schema: *ref_469 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: resourceType - description: The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites). - serializedName: resourceType - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_488 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: resourceName - description: The name of the resource. - serializedName: resourceName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_489 - schema: *ref_469 - implementation: Method - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: filter - description: >- - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atScope() is - provided, the returned list only includes all policy assignments that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If - $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the given scope. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments - of the policy definition whose id is {value}. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_490 - schema: *ref_479 - implementation: Method - language: !Languages - default: - name: top - description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments - method: get - uri: '{$host}' - signatureParameters: - - *ref_484 - - *ref_485 - - *ref_486 - - *ref_487 - - *ref_488 - - *ref_489 - - *ref_490 - responses: - - !SchemaResponse - schema: *ref_483 - language: !Languages - default: - name: '' - description: OK - Returns an array of policy assignments. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - List all policy assignments that apply to a resource: - parameters: - api-version: '2020-09-01' - parentResourcePath: virtualMachines/MyTestVm - resourceGroupName: TestResourceGroup - resourceName: MyTestComputer.cloudapp.net - resourceProviderNamespace: Microsoft.Compute - resourceType: domainNames - subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - body: - value: - - name: TestCostManagement - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestCostManagement - identity: - type: SystemAssigned - principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a - tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 - location: eastus - properties: - description: Minimize the risk of accidental cost overruns - displayName: VM Cost Management - metadata: - category: Cost Management - notScopes: [] - parameters: - allowedSkus: - value: Standard_A1 - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/vmSkus - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup - - name: TestTagEnforcement - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestTagEnforcement - properties: - description: Ensure a given tag key and value are present on all resources - displayName: Enforces a tag key and value - notScopes: [] - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup - headers: {} - x-ms-odata: '#/components/schemas/PolicyAssignment' - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListForResource - description: >- - This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', - 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing - scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered - list except those applied to resources contained within the resource. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource level. If $filter=policyDefinitionId eq - '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource. Three parameters plus the resource name are used to identify a specific - resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} - == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS - name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient - alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == - 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). - paging: - nextLinkName: nextLink - summary: Retrieves all policy assignments that apply to a resource. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_491 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: managementGroupId - description: The ID of the management group. - serializedName: managementGroupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_492 - schema: *ref_469 - implementation: Method - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: filter - description: >- - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atScope() is - provided, the returned list only includes all policy assignments that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If - $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the given scope. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments - of the policy definition whose id is {value}. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_493 - schema: *ref_479 - implementation: Method - language: !Languages - default: - name: top - description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyAssignments - method: get - uri: '{$host}' - signatureParameters: - - *ref_491 - - *ref_492 - - *ref_493 - responses: - - !SchemaResponse - schema: *ref_483 - language: !Languages - default: - name: '' - description: OK - Returns an array of policy assignments. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - List policy assignments that apply to a management group: - parameters: - $filter: atScope() - api-version: '2020-09-01' - managementGroupId: TestManagementGroup - responses: - '200': - body: - value: - - name: TestCostManagement - type: Microsoft.Authorization/policyAssignments - id: /providers/Microsoft.Management/managementGroups/TestManagementGroup/providers/Microsoft.Authorization/policyAssignments/TestCostManagement - identity: - type: SystemAssigned - principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a - tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 - location: eastus - properties: - description: Minimize the risk of accidental cost overruns - displayName: Storage Cost Management - metadata: - category: Cost Management - notScopes: [] - parameters: - allowedSkus: - value: Standard_A1 - policyDefinitionId: /providers/Microsoft.Management/managementGroups/TestManagementGroup/providers/Microsoft.Authorization/policyDefinitions/storageSkus - scope: /providers/Microsoft.Management/managementGroups/TestManagementGroup - - name: TestTagEnforcement - type: Microsoft.Authorization/policyAssignments - id: /providers/Microsoft.Management/managementGroups/TestManagementGroup/providers/Microsoft.Authorization/policyAssignments/TestTagEnforcement - properties: - description: Ensure a given tag key and value are present on all resources - displayName: Enforces a tag key and value - notScopes: [] - policyDefinitionId: /providers/Microsoft.Management/managementGroups/TestManagementGroup/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue - scope: /providers/Microsoft.Management/managementGroups/TestManagementGroup - headers: {} - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListForManagementGroup - description: >- - This operation retrieves the list of all policy assignments applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If - $filter=atScope() is provided, the returned list includes all policy assignments that are assigned to the management group or the management group's ancestors. If $filter=atExactScope() is provided, the returned list only - includes all policy assignments that at the management group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to - the management group. - paging: - nextLinkName: nextLink - summary: Retrieves all policy assignments that apply to a management group. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_494 - schema: *ref_469 - implementation: Method - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: filter - description: >- - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atScope() is - provided, the returned list only includes all policy assignments that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If - $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the given scope. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments - of the policy definition whose id is {value}. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_495 - schema: *ref_479 - implementation: Method - language: !Languages - default: - name: top - description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments - method: get - uri: '{$host}' - signatureParameters: - - *ref_494 - - *ref_495 - responses: - - !SchemaResponse - schema: *ref_483 - language: !Languages - default: - name: '' - description: OK - Returns an array of policy assignments. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - List policy assignments that apply to a subscription: - parameters: - $filter: atScope() - api-version: '2020-09-01' - subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - body: - value: - - name: CostManagement - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/CostManagement - identity: - type: SystemAssigned - principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a - tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 - location: eastus - properties: - description: Minimize the risk of accidental cost overruns - displayName: Storage Cost Management - metadata: - category: Cost Management - notScopes: [] - parameters: - allowedSkus: - value: Standard_A1 - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/storageSkus - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - - name: TagEnforcement - type: Microsoft.Authorization/policyAssignments - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/TagEnforcement - properties: - description: Ensure a given tag key and value are present on all resources - displayName: Enforces a tag key and value - notScopes: [] - policyDefinitionId: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue - scope: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - headers: {} - x-ms-odata: '#/components/schemas/PolicyAssignment' - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: List - description: >- - This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq - '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, - as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered - list except those applied to objects contained within the subscription. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the subscription. If $filter=policyDefinitionId eq - '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}. - paging: - nextLinkName: nextLink - summary: Retrieves all policy assignments that apply to a subscription. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_496 - schema: *ref_469 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: policyAssignmentId - description: The ID of the policy assignment to delete. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. - serializedName: policyAssignmentId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{policyAssignmentId} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_496 - responses: - - !SchemaResponse - schema: *ref_154 - language: !Languages - default: - name: '' - description: OK - Returns information about the policy assignment. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: No Content - the policy assignment doesn't exist. - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Delete a policy assignment by ID: - parameters: - api-version: '2020-09-01' - policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - responses: - '200': - body: - name: LowCostStorage - type: Microsoft.Authorization/policyAssignments - id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - properties: - description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created - displayName: Enforce storage account SKU - metadata: - assignedBy: Cheapskate Boss - notScopes: [] - parameters: - listOfAllowedSKUs: - value: - - Standard_GRS - - Standard_LRS - policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - headers: {} - '204': - headers: {} - language: !Languages - default: - name: DeleteById - description: >- - This operation deletes the policy with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid formats for {scope} are: - '/providers/Microsoft.Management/managementGroups/{managementGroup}' (management group), '/subscriptions/{subscriptionId}' (subscription), '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' (resource group), - or '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' (resource). - summary: Deletes a policy assignment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_498 - schema: *ref_469 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: policyAssignmentId - description: The ID of the policy assignment to create. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. - serializedName: policyAssignmentId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_497 - schema: *ref_154 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: Parameters for policy assignment. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_497 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /{policyAssignmentId} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_498 - responses: - - !SchemaResponse - schema: *ref_154 - language: !Languages - default: - name: '' - description: Created - Returns information about the policy assignment. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Create or update policy assignment by ID: - parameters: - api-version: '2020-09-01' - parameters: - properties: - description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created - displayName: Enforce storage account SKU - enforcementMode: Default - metadata: - assignedBy: Cheapskate Boss - parameters: - listOfAllowedSKUs: - value: - - Standard_GRS - - Standard_LRS - policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - responses: - '201': - body: - name: LowCostStorage - type: Microsoft.Authorization/policyAssignments - id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - properties: - description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created - displayName: Enforce storage account SKU - enforcementMode: Default - metadata: - assignedBy: Cheapskate Boss - notScopes: [] - parameters: - listOfAllowedSKUs: - value: - - Standard_GRS - - Standard_LRS - policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - headers: {} - Create or update policy assignment with a managed identity by ID: - parameters: - api-version: '2020-09-01' - parameters: - identity: - type: SystemAssigned - location: eastus - properties: - description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created - displayName: Enforce storage account SKU - enforcementMode: Default - metadata: - assignedBy: Cheapskate Boss - parameters: - listOfAllowedSKUs: - value: - - Standard_GRS - - Standard_LRS - policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - responses: - '201': - body: - name: LowCostStorage - type: Microsoft.Authorization/policyAssignments - id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - identity: - type: SystemAssigned - principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a - tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 - location: eastus - properties: - description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created - displayName: Enforce storage account SKU - enforcementMode: Default - metadata: - assignedBy: Cheapskate Boss - notScopes: [] - parameters: - listOfAllowedSKUs: - value: - - Standard_GRS - - Standard_LRS - policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - headers: {} - language: !Languages - default: - name: CreateById - description: >- - This operation creates or updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For example, when you assign a policy to a resource group that - policy applies to all resources in the group. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: - '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or - resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. - summary: Creates or updates a policy assignment. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_499 - schema: *ref_469 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: policyAssignmentId - description: The ID of the policy assignment to get. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. - serializedName: policyAssignmentId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /{policyAssignmentId} - method: get - uri: '{$host}' - signatureParameters: - - *ref_499 - responses: - - !SchemaResponse - schema: *ref_154 - language: !Languages - default: - name: '' - description: OK - Returns information about the policy assignment. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Retrieve a policy assignment by ID: - parameters: - api-version: '2020-09-01' - policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - responses: - '200': - body: - name: LowCostStorage - type: Microsoft.Authorization/policyAssignments - id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - properties: - description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created - displayName: Enforce storage account SKU - enforcementMode: Default - metadata: - assignedBy: Cheapskate Boss - notScopes: [] - parameters: - listOfAllowedSKUs: - value: - - Standard_GRS - - Standard_LRS - policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - headers: {} - Retrieve a policy assignment with a managed identity by ID: - parameters: - api-version: '2020-09-01' - policyAssignmentId: providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - responses: - '200': - body: - name: LowCostStorage - type: Microsoft.Authorization/policyAssignments - id: /providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage - identity: - type: SystemAssigned - principalId: e6d23f8d-af97-4fbc-bda6-00604e4e3d0a - tenantId: 4bee2b8a-1bee-47c2-90e9-404241551135 - location: westus - properties: - description: Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created - displayName: Enforce storage account SKU - enforcementMode: Default - metadata: - assignedBy: Cheapskate Boss - notScopes: [] - parameters: - listOfAllowedSKUs: - value: - - Standard_GRS - - Standard_LRS - policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - headers: {} - language: !Languages - default: - name: GetById - description: >- - The operation retrieves the policy assignment with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group - (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. - summary: Retrieves the policy assignment with the given ID. - protocol: !Protocols {} - language: !Languages - default: - name: PolicyAssignments - description: '' - protocol: !Protocols {} - - !OperationGroup - $key: PolicyDefinitions - operations: - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_501 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyDefinitionName - description: The name of the policy definition to create. - serializedName: policyDefinitionName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_500 - schema: *ref_166 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: The policy definition properties. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_500 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_501 - responses: - - !SchemaResponse - schema: *ref_166 - language: !Languages - default: - name: '' - description: Created - Returns information about the policy definition. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Create or update a policy definition: - parameters: - api-version: '2020-09-01' - parameters: - properties: - description: Force resource names to begin with given 'prefix' and/or end with given 'suffix' - displayName: Enforce resource naming convention - metadata: - category: Naming - mode: All - parameters: - prefix: - type: String - metadata: - description: Resource name prefix - displayName: Prefix - suffix: - type: String - metadata: - description: Resource name suffix - displayName: Suffix - policyRule: - if: - not: - field: name - like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' - then: - effect: deny - policyDefinitionName: ResourceNaming - subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '201': - body: - name: ResourceNaming - type: Microsoft.Authorization/policyDefinitions - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - properties: - description: Force resource names to begin with 'prefix' and end with 'suffix' - displayName: Naming Convention - metadata: - category: Naming - mode: All - parameters: - prefix: - type: String - metadata: - description: Resource name prefix - displayName: Prefix - suffix: - type: String - metadata: - description: Resource name suffix - displayName: Suffix - policyRule: - if: - not: - field: name - like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' - then: - effect: deny - policyType: Custom - headers: {} - Create or update a policy definition with advanced parameters: - parameters: - api-version: '2020-09-01' - parameters: - properties: - description: Audit enabling of logs and retain them up to a year. This enables recreation of activity trails for investigation purposes when a security incident occurs or your network is compromised - displayName: Event Hubs should have diagnostic logging enabled - metadata: - category: Event Hub - mode: Indexed - parameters: - requiredRetentionDays: - type: Integer - allowedValues: - - 0 - - 30 - - 90 - - 180 - - 365 - defaultValue: 365 - metadata: - description: The required diagnostic logs retention in days - displayName: Required retention (days) - policyRule: - if: - equals: Microsoft.EventHub/namespaces - field: type - then: - effect: AuditIfNotExists - details: - type: Microsoft.Insights/diagnosticSettings - existenceCondition: - allOf: - - equals: 'true' - field: Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled - - equals: '[parameters(''requiredRetentionDays'')]' - field: Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days - policyDefinitionName: EventHubDiagnosticLogs - subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '201': - body: - name: ResourceNaming - type: Microsoft.Authorization/policyDefinitions - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - properties: - description: Audit enabling of logs and retain them up to a year. This enables recreation of activity trails for investigation purposes when a security incident occurs or your network is compromised - displayName: Event Hubs should have diagnostic logging enabled - metadata: - category: Event Hub - mode: Indexed - parameters: - requiredRetentionDays: - type: Integer - allowedValues: - - 0 - - 30 - - 90 - - 180 - - 365 - defaultValue: 365 - metadata: - description: The required diagnostic logs retention in days - displayName: Required retention (days) - policyRule: - if: - equals: Microsoft.EventHub/namespaces - field: type - then: - effect: AuditIfNotExists - details: - type: Microsoft.Insights/diagnosticSettings - existenceCondition: - allOf: - - equals: 'true' - field: Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled - - equals: '[parameters(''requiredRetentionDays'')]' - field: Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days - headers: {} - language: !Languages - default: - name: CreateOrUpdate - description: This operation creates or updates a policy definition in the given subscription with the given name. - summary: Creates or updates a policy definition in a subscription. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_502 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyDefinitionName - description: The name of the policy definition to delete. - serializedName: policyDefinitionName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_502 - responses: - - !Response - language: !Languages - default: - name: '' - description: OK - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Delete a policy definition: - parameters: - api-version: '2020-09-01' - policyDefinitionName: ResourceNaming - subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - headers: {} - '204': - headers: {} - language: !Languages - default: - name: Delete - description: This operation deletes the policy definition in the given subscription with the given name. - summary: Deletes a policy definition in a subscription. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_503 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyDefinitionName - description: The name of the policy definition to get. - serializedName: policyDefinitionName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_503 - responses: - - !SchemaResponse - schema: *ref_166 - language: !Languages - default: - name: '' - description: OK - Returns information about the policy definition. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Retrieve a policy definition: - parameters: - api-version: '2020-09-01' - policyDefinitionName: ResourceNaming - subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - body: - name: ResourceNaming - type: Microsoft.Authorization/policyDefinitions - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - properties: - description: Force resource names to begin with 'prefix' and end with 'suffix' - displayName: Naming Convention - metadata: - category: Naming - mode: All - parameters: - prefix: - type: String - metadata: - description: Resource name prefix - displayName: Prefix - suffix: - type: String - metadata: - description: Resource name suffix - displayName: Suffix - policyRule: - if: - not: - field: name - like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' - then: - effect: deny - policyType: Custom - headers: {} - language: !Languages - default: - name: Get - description: This operation retrieves the policy definition in the given subscription with the given name. - summary: Retrieves a policy definition in a subscription. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_504 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyDefinitionName - description: The name of the built-in policy definition to get. - serializedName: policyDefinitionName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_504 - responses: - - !SchemaResponse - schema: *ref_166 - language: !Languages - default: - name: '' - description: OK - Returns information about the built-in policy definition. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Retrieve a built-in policy definition: - parameters: - api-version: '2020-09-01' - policyDefinitionName: 7433c107-6db4-4ad1-b57a-a76dce0154a1 - subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - body: - name: 7433c107-6db4-4ad1-b57a-a76dce0154a1 - type: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - properties: - description: This policy enables you to specify a set of storage account SKUs that your organization can deploy. - displayName: Allowed storage account SKUs - mode: All - parameters: - listOfAllowedSKUs: - type: Array - metadata: - description: The list of SKUs that can be specified for storage accounts. - displayName: Allowed SKUs - strongType: StorageSKUs - policyRule: - if: - allOf: - - equals: Microsoft.Storage/storageAccounts - field: type - - not: - field: Microsoft.Storage/storageAccounts/sku.name - in: '[parameters(''listOfAllowedSKUs'')]' - then: - effect: Deny - policyType: BuiltIn - headers: {} - language: !Languages - default: - name: GetBuiltIn - description: This operation retrieves the built-in policy definition with the given name. - summary: Retrieves a built-in policy definition. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_506 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyDefinitionName - description: The name of the policy definition to create. - serializedName: policyDefinitionName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_507 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: managementGroupId - description: The ID of the management group. - serializedName: managementGroupId - protocol: !Protocols - http: !HttpParameter - in: path - requests: - - !Request - parameters: - - !Parameter - schema: *ref_323 - implementation: Method - origin: modelerfour:synthesized/content-type - required: true - language: !Languages - default: - name: contentType - description: Body Parameter content-type - serializedName: Content-Type - protocol: !Protocols - http: !HttpParameter - in: header - - !Parameter &ref_505 - schema: *ref_166 - implementation: Method - required: true - language: !Languages - default: - name: parameters - description: The policy definition properties. - protocol: !Protocols - http: !HttpParameter - in: body - style: json - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: - - *ref_505 - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpWithBodyRequest - path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_506 - - *ref_507 - responses: - - !SchemaResponse - schema: *ref_166 - language: !Languages - default: - name: '' - description: Created - Returns information about the policy definition. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Create or update a policy definition at management group level: - parameters: - api-version: '2020-09-01' - managementGroupId: MyManagementGroup - parameters: - properties: - description: Force resource names to begin with given 'prefix' and/or end with given 'suffix' - displayName: Enforce resource naming convention - metadata: - category: Naming - mode: All - parameters: - prefix: - type: String - metadata: - description: Resource name prefix - displayName: Prefix - suffix: - type: String - metadata: - description: Resource name suffix - displayName: Suffix - policyRule: - if: - not: - field: name - like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' - then: - effect: deny - policyDefinitionName: ResourceNaming - responses: - '201': - body: - name: ResourceNaming - type: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - properties: - description: Force resource names to begin with 'prefix' and end with 'suffix' - displayName: Naming Convention - metadata: - category: Naming - mode: All - parameters: - prefix: - type: String - metadata: - description: Resource name prefix - displayName: Prefix - suffix: - type: String - metadata: - description: Resource name suffix - displayName: Suffix - policyRule: - if: - not: - field: name - like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' - then: - effect: deny - policyType: Custom - headers: {} - language: !Languages - default: - name: CreateOrUpdateAtManagementGroup - description: This operation creates or updates a policy definition in the given management group with the given name. - summary: Creates or updates a policy definition in a management group. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_508 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyDefinitionName - description: The name of the policy definition to delete. - serializedName: policyDefinitionName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_509 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: managementGroupId - description: The ID of the management group. - serializedName: managementGroupId - protocol: !Protocols - http: !HttpParameter - in: path - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} - method: delete - uri: '{$host}' - signatureParameters: - - *ref_508 - - *ref_509 - responses: - - !Response - language: !Languages - default: - name: '' - description: OK - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '200' - - !Response - language: !Languages - default: - name: '' - description: No Content - protocol: !Protocols - http: !HttpResponse - statusCodes: - - '204' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Delete a policy definition at management group level: - parameters: - api-version: '2020-09-01' - managementGroupId: MyManagementGroup - policyDefinitionName: ResourceNaming - responses: - '200': - headers: {} - '204': - headers: {} - language: !Languages - default: - name: DeleteAtManagementGroup - description: This operation deletes the policy definition in the given management group with the given name. - summary: Deletes a policy definition in a management group. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter &ref_510 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: policyDefinitionName - description: The name of the policy definition to get. - serializedName: policyDefinitionName - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_511 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: managementGroupId - description: The ID of the management group. - serializedName: managementGroupId - protocol: !Protocols - http: !HttpParameter - in: path - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName} - method: get - uri: '{$host}' - signatureParameters: - - *ref_510 - - *ref_511 - responses: - - !SchemaResponse - schema: *ref_166 - language: !Languages - default: - name: '' - description: OK - Returns information about the policy definition. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - Retrieve a policy definition at management group level: - parameters: - api-version: '2020-09-01' - managementGroupId: MyManagementGroup - policyDefinitionName: ResourceNaming - responses: - '200': - body: - name: ResourceNaming - type: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - properties: - description: Force resource names to begin with 'prefix' and end with 'suffix' - displayName: Naming Convention - metadata: - category: Naming - mode: All - parameters: - prefix: - type: String - metadata: - description: Resource name prefix - displayName: Prefix - suffix: - type: String - metadata: - description: Resource name suffix - displayName: Suffix - policyRule: - if: - not: - field: name - like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' - then: - effect: deny - policyType: Custom - headers: {} - language: !Languages - default: - name: GetAtManagementGroup - description: This operation retrieves the policy definition in the given management group with the given name. - summary: Retrieve a policy definition in a management group. - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - *ref_393 - - !Parameter &ref_512 - schema: *ref_469 - implementation: Method - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: filter - description: >- - The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is - provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the - {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_513 - schema: *ref_479 - implementation: Method - language: !Languages - default: - name: top - description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions - method: get - uri: '{$host}' - signatureParameters: - - *ref_512 - - *ref_513 - responses: - - !SchemaResponse - schema: *ref_514 - language: !Languages - default: - name: '' - description: OK - Returns an array of policy definitions. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - List policy definitions by subscription: - parameters: - api-version: '2020-09-01' - subscriptionId: ae640e6b-ba3e-4256-9d62-2993eecfa6f2 - responses: - '200': - body: - value: - - name: 7433c107-6db4-4ad1-b57a-a76dce0154a1 - type: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - properties: - description: This policy enables you to specify a set of storage account SKUs that your organization can deploy. - displayName: Allowed storage account SKUs - mode: All - parameters: - listOfAllowedSKUs: - type: Array - metadata: - description: The list of SKUs that can be specified for storage accounts. - displayName: Allowed SKUs - strongType: StorageSKUs - policyRule: - if: - allOf: - - equals: Microsoft.Storage/storageAccounts - field: type - - not: - field: Microsoft.Storage/storageAccounts/sku.name - in: '[parameters(''listOfAllowedSKUs'')]' - then: - effect: Deny - policyType: BuiltIn - - name: ResourceNaming - type: Microsoft.Authorization/policyDefinitions - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - properties: - description: Force resource names to begin with 'prefix' and end with 'suffix' - displayName: Naming Convention - metadata: - category: Naming - mode: All - parameters: - prefix: - type: String - metadata: - description: Resource name prefix - displayName: Prefix - suffix: - type: String - metadata: - description: Resource name suffix - displayName: Suffix - policyRule: - if: - not: - field: name - like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' - then: - effect: deny - policyType: Custom - - name: AuditSoonToExpireCerts - type: Microsoft.Authorization/policyDefinitions - id: /subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/AuditSoonToExpireCerts - properties: - description: Audit certificates that are stored in Azure Key Vault, that expire within 'X' number of days. - displayName: Audit KeyVault certificates that expire within specified number of days - metadata: - category: KeyVault DataPlane - mode: Microsoft.KeyVault.Data - parameters: - daysToExpire: - type: Integer - metadata: - description: The number of days for a certificate to expire. - displayName: Days to expire - policyRule: - if: - field: Microsoft.KeyVault.Data/vaults/certificates/attributes/expiresOn - lessOrEquals: '[addDays(utcNow(), parameters(''daysToExpire''))]' - then: - effect: audit - policyType: Custom - headers: {} - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: List - description: >- - This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. - If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If - $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions - whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match - the {value}. - paging: - nextLinkName: nextLink - summary: Retrieves policy definitions in a subscription - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_515 - schema: *ref_469 - implementation: Method - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: filter - description: >- - The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is - provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the - {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_516 - schema: *ref_479 - implementation: Method - language: !Languages - default: - name: top - description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Authorization/policyDefinitions - method: get - uri: '{$host}' - signatureParameters: - - *ref_515 - - *ref_516 - responses: - - !SchemaResponse - schema: *ref_514 - language: !Languages - default: - name: '' - description: OK - Returns an array of built-in policy definitions. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - List built-in policy definitions: - parameters: - api-version: '2020-09-01' - responses: - '200': - body: - value: - - name: 06a78e20-9358-41c9-923c-fb736d382a12 - type: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a12 - properties: - description: Audit DB level audit setting for SQL databases - displayName: Audit SQL DB Level Audit Setting - mode: All - parameters: - setting: - type: String - allowedValues: - - enabled - - disabled - metadata: - displayName: Audit Setting - policyRule: - if: - equals: Microsoft.Sql/servers/databases - field: type - then: - effect: AuditIfNotExists - details: - name: default - type: Microsoft.Sql/servers/databases/auditingSettings - existenceCondition: - allOf: - - equals: '[parameters(''setting'')]' - field: Microsoft.Sql/auditingSettings.state - policyType: BuiltIn - - name: 7433c107-6db4-4ad1-b57a-a76dce0154a1 - type: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - properties: - description: This policy enables you to specify a set of storage account SKUs that your organization can deploy. - displayName: Allowed storage account SKUs - mode: All - parameters: - listOfAllowedSKUs: - type: Array - metadata: - description: The list of SKUs that can be specified for storage accounts. - displayName: Allowed SKUs - strongType: StorageSKUs - policyRule: - if: - allOf: - - equals: Microsoft.Storage/storageAccounts - field: type - - not: - field: Microsoft.Storage/storageAccounts/sku.name - in: '[parameters(''listOfAllowedSKUs'')]' - then: - effect: Deny - policyType: Static - - name: abeed54a-73c5-441d-8a8c-6b5e7a0c299e - type: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Authorization/policyDefinitions/abeed54a-73c5-441d-8a8c-6b5e7a0c299e - properties: - description: Audit certificates that are stored in Azure Key Vault, that expire within 'X' number of days. - displayName: Audit KeyVault certificates that expire within specified number of days - metadata: - category: KeyVault DataPlane - mode: Microsoft.KeyVault.Data - parameters: - daysToExpire: - type: Integer - metadata: - description: The number of days for a certificate to expire. - displayName: Days to expire - policyRule: - if: - field: Microsoft.KeyVault.Data/vaults/certificates/attributes/expiresOn - lessOrEquals: '[addDays(utcNow(), parameters(''daysToExpire''))]' - then: - effect: audit - policyType: BuiltIn - headers: {} - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListBuiltIn - description: >- - This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions - whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose - category match the {value}. - paging: - nextLinkName: nextLink - summary: Retrieve built-in policy definitions - protocol: !Protocols {} - - !Operation - apiVersions: - - !ApiVersion - version: '2020-09-01' - parameters: - - *ref_314 - - !Parameter - schema: *ref_470 - implementation: Method - origin: modelerfour:synthesized/api-version - required: true - language: !Languages - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_517 - schema: *ref_469 - implementation: Method - required: true - language: !Languages - default: - name: managementGroupId - description: The ID of the management group. - serializedName: managementGroupId - protocol: !Protocols - http: !HttpParameter - in: path - - !Parameter &ref_518 - schema: *ref_469 - implementation: Method - extensions: - x-ms-skip-url-encoding: true - language: !Languages - default: - name: filter - description: >- - The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is - provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the - {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. - serializedName: $filter - protocol: !Protocols - http: !HttpParameter - in: query - - !Parameter &ref_519 - schema: *ref_479 - implementation: Method - language: !Languages - default: - name: top - description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records. - serializedName: $top - protocol: !Protocols - http: !HttpParameter - in: query - requests: - - !Request - parameters: - - !Parameter - schema: *ref_317 - implementation: Method - origin: modelerfour:synthesized/accept - required: true - language: !Languages - default: - name: accept - description: Accept header - serializedName: Accept - protocol: !Protocols - http: !HttpParameter - in: header - signatureParameters: [] - language: !Languages - default: - name: '' - description: '' - protocol: !Protocols - http: !HttpRequest - path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions - method: get - uri: '{$host}' - signatureParameters: - - *ref_517 - - *ref_518 - - *ref_519 - responses: - - !SchemaResponse - schema: *ref_514 - language: !Languages - default: - name: '' - description: OK - Returns an array of policy definitions. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - !SchemaResponse - schema: *ref_320 - language: !Languages - default: - name: '' - description: Error response describing why the operation failed. - protocol: !Protocols - http: !HttpResponse - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - List policy definitions by management group: - parameters: - api-version: '2020-09-01' - managementGroupId: MyManagementGroup - responses: - '200': - body: - value: - - name: 7433c107-6db4-4ad1-b57a-a76dce0154a1 - type: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1 - properties: - description: This policy enables you to specify a set of storage account SKUs that your organization can deploy. - displayName: Allowed storage account SKUs - mode: All - parameters: - listOfAllowedSKUs: - type: Array - metadata: - description: The list of SKUs that can be specified for storage accounts. - displayName: Allowed SKUs - strongType: StorageSKUs - policyRule: - if: - allOf: - - equals: Microsoft.Storage/storageAccounts - field: type - - not: - field: Microsoft.Storage/storageAccounts/sku.name - in: '[parameters(''listOfAllowedSKUs'')]' - then: - effect: Deny - policyType: BuiltIn - - name: ResourceNaming - type: Microsoft.Authorization/policyDefinitions - id: /providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming - properties: - description: Force resource names to begin with 'prefix' and end with 'suffix' - displayName: Naming Convention - metadata: - category: Naming - mode: All - parameters: - prefix: - type: String - metadata: - description: Resource name prefix - displayName: Prefix - suffix: - type: String - metadata: - description: Resource name suffix - displayName: Suffix - policyRule: - if: - not: - field: name - like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]' - then: - effect: deny - policyType: Custom - headers: {} - x-ms-pageable: - nextLinkName: nextLink - language: !Languages - default: - name: ListByManagementGroup - description: >- - This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq - '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management - group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all - policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions - whose category match the {value}. - paging: - nextLinkName: nextLink - summary: Retrieve policy definitions in a management group - protocol: !Protocols {} - language: !Languages - default: - name: PolicyDefinitions - description: '' - protocol: !Protocols {} -security: !Security - authenticationRequired: true - schemes: - - !AADTokenSecurityScheme - type: AADToken - scopes: - - https://management.azure.com/.default -language: !Languages - default: - name: ResourceManagementClient - description: '' -protocol: !Protocols - http: !HttpModel {} diff --git a/samples/Azure.Resources.Sample/Generated/Configuration.json b/samples/Azure.Resources.Sample/Generated/Configuration.json deleted file mode 100644 index 08c9d079242..00000000000 --- a/samples/Azure.Resources.Sample/Generated/Configuration.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "OutputFolder": ".", - "Namespace": "Azure.Resources.Sample", - "LibraryName": null, - "SharedSourceFolders": [ - "..\\..\\..\\artifacts\\bin\\AutoRest.CSharp\\Debug\\netcoreapp3.1\\Generator.Shared", - "..\\..\\..\\artifacts\\bin\\AutoRest.CSharp\\Debug\\netcoreapp3.1\\Azure.Core.Shared" - ], - "azure-arm": true, - "public-clients": true, - "model-namespace": false, - "skip-csproj-packagereference": true, - "OperationGroupToResourceType": { - "DeploymentOperations": "Microsoft.Resources/deployments/operations", - "ResourceLinks": "Microsoft.Resources/links", - "Deployments": "Microsoft.Resources/deployments", - "DataPolicyManifests": "Microsoft.Authorization/dataPolicyManifests" - }, - "OperationGroupToResource": { - "DeploymentOperations": "DeploymentOperation", - "ResourceLinks": "ResourceLink", - "Deployments": "DeploymentExtended", - "DeploymentScripts": "DeploymentScript", - "ApplicationDefinitions": "ApplicationDefinition", - "DataPolicyManifests": "DataPolicyManifest" - }, - "OperationGroupToParent": { - "Deployments": "tenant", - "PolicyAssignments": "tenant", - "PolicyDefinitions": "tenant", - "PolicySetDefinitions": "tenant", - "PolicyExemptions": "tenant", - "DeploymentScripts": "resourceGroups", - "ManagementLocks": "resourceGroups", - "ResourceLinks": "tenant" - } -} \ No newline at end of file diff --git a/samples/Azure.Resources.Sample/readme.md b/samples/Azure.Resources.Sample/readme.md deleted file mode 100644 index a73ce621e2c..00000000000 --- a/samples/Azure.Resources.Sample/readme.md +++ /dev/null @@ -1,144 +0,0 @@ -# Azure.Resources.Sample -### AutoRest Configuration -> see https://aka.ms/autorest - -``` yaml -azure-arm: true -require: $(this-folder)/../../readme.md -title: ResourceManagementClient -# library-name: Resources -input-file: - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/resources.json - # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json - # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/policyAssignments.json - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/policyDefinitions.json - # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/policySetDefinitions.json - # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/policyExemptions.json - # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json - # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/features.json - # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json - # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Resources/stable/2016-09-01/links.json - # - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/91ac14531f0d05b3d6fcf4a817ea0defde59fe63/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json -namespace: Azure.ResourceManager.Resources -model-namespace: false -public-clients: false -head-as-boolean: false -# clear-output-folder: true -modelerfour: - lenient-model-deduplication: true -skip-csproj: true -payload-flattening-threshold: 2 -operation-group-to-resource-type: - DeploymentOperations: Microsoft.Resources/deployments/operations - ResourceLinks: Microsoft.Resources/links - Deployments: Microsoft.Resources/deployments - DataPolicyManifests: Microsoft.Authorization/dataPolicyManifests -operation-group-to-resource: - DeploymentOperations: DeploymentOperation - ResourceLinks: ResourceLink - Deployments: DeploymentExtended - DeploymentScripts: DeploymentScript - ApplicationDefinitions: ApplicationDefinition - DataPolicyManifests: DataPolicyManifest -operation-group-to-parent: - Deployments: tenant - PolicyAssignments: tenant - PolicyDefinitions: tenant - PolicySetDefinitions: tenant - PolicyExemptions: tenant - DeploymentScripts: resourceGroups - ManagementLocks: resourceGroups - ResourceLinks: tenant -directive: - - from: swagger-document - where: $.paths - transform: delete $["/providers/Microsoft.Resources/operations"] - - from: swagger-document - where: $.paths - transform: delete $["/providers/Microsoft.Authorization/operations"] - - from: swagger-document - where: $.paths - transform: delete $["/providers/Microsoft.Solutions/operations"] - - from: features.json - where: $.paths - transform: delete $["/providers/Microsoft.Features/operations"] - # - from: resources.json - # where: $.definitions - # transform: delete $["Provider"] - # - from: resources.json - # where: $.definitions - # transform: delete $["ProviderResourceType"] - # - from: resources.json - # where: $.definitions - # transform: delete $["ProviderExtendedLocation"] - # Below operations are already in the Core SDK. - - remove-operation: Providers_Unregister - - remove-operation: Providers_Register - - remove-operation: Providers_List - - remove-operation: Providers_ListAtTenantScope - - remove-operation: Providers_Get - - remove-operation: Providers_GetAtTenantScope - - remove-operation: Providers_RegisterAtManagementGroupScope - - remove-operation: Providers_ProviderPermissions - - remove-operation: ProviderResourceTypes_List - - remove-operation: Resources_MoveResources - - remove-operation: Resources_ValidateMoveResources - - remove-operation: Resources_List - - remove-operation: Resources_CheckExistence - - remove-operation: Resources_Delete - - remove-operation: Resources_CreateOrUpdate - - remove-operation: Resources_Update - - remove-operation: Resources_Get - - remove-operation: Resources_CheckExistenceById - - remove-operation: Resources_CreateOrUpdateById - - remove-operation: Resources_UpdateById - - remove-operation: Resources_GetById - - remove-operation: Resources_DeleteById - - remove-operation: Resources_ListByResourceGroup - - remove-operation: ResourceGroups_CheckExistence - - remove-operation: ResourceGroups_CreateOrUpdate - - remove-operation: ResourceGroups_Delete - - remove-operation: ResourceGroups_Get - - remove-operation: ResourceGroups_Update - - remove-operation: ResourceGroups_List - - remove-operation: ResourceGroups_ExportTemplate - - remove-operation: Tags_DeleteValue - - remove-operation: Tags_CreateOrUpdateValue - - remove-operation: Tags_CreateOrUpdate - - remove-operation: Tags_Delete - - remove-operation: Tags_List - - remove-operation: Tags_CreateOrUpdateAtScope - - remove-operation: Tags_UpdateAtScope - - remove-operation: Tags_GetAtScope - - remove-operation: Tags_DeleteAtScope - - remove-operation: Subscriptions_ListLocations - - remove-operation: Subscriptions_Get - - remove-operation: Subscriptions_List - - remove-operation: Tenants_List - - remove-operation: checkResourceName - - remove-operation: Features_ListAll - - remove-operation: Features_List - - remove-operation: Features_Get - - remove-operation: Features_Register - - remove-operation: Features_Unregister - - - rename-operation: - from: Deployments_Get - to: Deployments_GetAtResourceGroupScope - - rename-operation: - from: DeploymentOperations_Get - to: DeploymentOperations_GetAtResourceGroupScope -``` - -## Swagger workarounds - -### Add nullable annotations - -``` yaml -directive: - from: swagger-document - where: $.definitions.DeploymentOperationProperties - transform: > - $.properties.statusMessage["x-nullable"] = true; -```` \ No newline at end of file diff --git a/src/AutoRest.CSharp/Properties/launchSettings.json b/src/AutoRest.CSharp/Properties/launchSettings.json index 859bc086e98..f42477b1ab7 100644 --- a/src/AutoRest.CSharp/Properties/launchSettings.json +++ b/src/AutoRest.CSharp/Properties/launchSettings.json @@ -56,10 +56,6 @@ "commandName": "Project", "commandLineArgs": "--standalone $(SolutionDir)\\samples\\Azure.ResourceManager.Sample\\Generated" }, - "Azure.Resources.Sample": { - "commandName": "Project", - "commandLineArgs": "--standalone $(SolutionDir)\\samples\\Azure.Resources.Sample\\Generated" - }, "Azure.Storage.Tables": { "commandName": "Project", "commandLineArgs": "--standalone $(SolutionDir)\\samples\\Azure.Storage.Tables\\Generated" From df1d3112622cfcc2aa6c55ff1ee7c9982c7ba848 Mon Sep 17 00:00:00 2001 From: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com> Date: Mon, 12 Jul 2021 16:12:33 +0800 Subject: [PATCH 5/5] Update src/AutoRest.CSharp/Mgmt/Output/Resource.cs Co-authored-by: Arcturus --- src/AutoRest.CSharp/Mgmt/Output/Resource.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/AutoRest.CSharp/Mgmt/Output/Resource.cs b/src/AutoRest.CSharp/Mgmt/Output/Resource.cs index 1444effc12f..4596d7e005e 100644 --- a/src/AutoRest.CSharp/Mgmt/Output/Resource.cs +++ b/src/AutoRest.CSharp/Mgmt/Output/Resource.cs @@ -23,10 +23,7 @@ public Resource(OperationGroup operationGroup, BuildContext context) if (isExtension) { var parentOperationGroup = operationGroup.ParentOperationGroup(context); - if (parentOperationGroup != null) - { - parentValue = parentOperationGroup.Key.ToSingular(false); - } + parentValue = parentOperationGroup?.Key.ToSingular(false) ?? string.Empty; } DefaultName = operationGroup.Resource(context.Configuration.MgmtConfiguration) + parentValue; Description = BuilderHelpers.EscapeXmlDescription(