From 4c22d20e2dbc17475e7fe5b343a33c05ed216934 Mon Sep 17 00:00:00 2001 From: Jiahui Peng <46921893+Alancere@users.noreply.github.com> Date: Thu, 14 Apr 2022 17:08:53 +0800 Subject: [PATCH] Release refresh all package R19 (#17587) * [Release] sdk/resourcemanager/eventhub/armeventhub/0.4.0 generation from spec commit: ba65174ad2569e80fdb5838a1dddc26b8c0d6f3d * [Release] sdk/resourcemanager/servicebus/armservicebus/0.4.0 generation from spec commit: ba65174ad2569e80fdb5838a1dddc26b8c0d6f3d * Update README.md * add resources/armresources live test --- .../eventhub/armeventhub/CHANGELOG.md | 371 + .../eventhub/armeventhub/README.md | 12 +- .../eventhub/armeventhub/autorest.md | 6 +- .../eventhub/armeventhub/go.mod | 19 +- .../eventhub/armeventhub/go.sum | 20 +- ..._generated_example_clusters_client_test.go | 170 +- ...rated_example_configuration_client_test.go | 38 +- ...ated_example_consumergroups_client_test.go | 72 +- ...ple_disasterrecoveryconfigs_client_test.go | 167 +- ...generated_example_eventhubs_client_test.go | 194 +- ...enerated_example_namespaces_client_test.go | 335 +- ...enerated_example_operations_client_test.go | 28 +- ..._privateendpointconnections_client_test.go | 83 +- ...xample_privatelinkresources_client_test.go | 19 +- ...ated_example_schemaregistry_client_test.go | 75 +- .../zz_generated_clusters_client.go | 173 +- .../zz_generated_configuration_client.go | 31 +- .../armeventhub/zz_generated_constants.go | 101 +- .../zz_generated_consumergroups_client.go | 67 +- ...enerated_disasterrecoveryconfigs_client.go | 111 +- .../zz_generated_eventhubs_client.go | 111 +- .../armeventhub/zz_generated_models.go | 519 +- .../armeventhub/zz_generated_models_serde.go | 501 + .../zz_generated_namespaces_client.go | 199 +- .../zz_generated_operations_client.go | 61 +- .../armeventhub/zz_generated_pagers.go | 719 - .../armeventhub/zz_generated_pollers.go | 273 - ...rated_privateendpointconnections_client.go | 89 +- ...z_generated_privatelinkresources_client.go | 29 +- .../zz_generated_response_types.go | 627 +- .../zz_generated_schemaregistry_client.go | 67 +- .../armeventhub/zz_generated_time_rfc3339.go | 4 +- .../resources/armresources/go.mod | 8 + .../resources/armresources/go.sum | 7 + .../recordings/TestDeploymentsClient.json | 23254 +--------------- .../recordings/TestResourceGroupsClient.json | 318 +- .../recordings/TestResourcesClient.json | 1459 +- .../testdata/recordings/TestTagsClient.json | 277 +- .../zt_deployments_client_live_test.go | 491 + .../zt_resourcegroups_client_live_test.go | 105 + .../zt_resources_client_live_test.go | 221 + .../armresources/zt_tags_client_live_test.go | 129 + .../servicebus/armservicebus/CHANGELOG.md | 371 + .../servicebus/armservicebus/README.md | 12 +- .../servicebus/armservicebus/autorest.md | 6 +- .../servicebus/armservicebus/go.mod | 19 +- .../servicebus/armservicebus/go.sum | 20 +- ...ple_disasterrecoveryconfigs_client_test.go | 169 +- ...ed_example_migrationconfigs_client_test.go | 113 +- ...enerated_example_namespaces_client_test.go | 342 +- ...enerated_example_operations_client_test.go | 28 +- ..._privateendpointconnections_client_test.go | 83 +- ...xample_privatelinkresources_client_test.go | 19 +- ...ze_generated_example_queues_client_test.go | 174 +- .../ze_generated_example_rules_client_test.go | 74 +- ...rated_example_subscriptions_client_test.go | 72 +- ...ze_generated_example_topics_client_test.go | 174 +- .../armservicebus/zz_generated_constants.go | 91 +- ...enerated_disasterrecoveryconfigs_client.go | 111 +- .../zz_generated_migrationconfigs_client.go | 93 +- .../armservicebus/zz_generated_models.go | 742 +- .../zz_generated_models_serde.go | 730 + .../zz_generated_namespaces_client.go | 231 +- .../zz_generated_operations_client.go | 61 +- .../armservicebus/zz_generated_pagers.go | 827 - .../armservicebus/zz_generated_pollers.go | 187 - ...rated_privateendpointconnections_client.go | 89 +- ...z_generated_privatelinkresources_client.go | 29 +- .../zz_generated_queues_client.go | 111 +- .../zz_generated_response_types.go | 573 +- .../zz_generated_rules_client.go | 67 +- .../zz_generated_subscriptions_client.go | 67 +- .../zz_generated_time_rfc3339.go | 4 +- .../zz_generated_topics_client.go | 111 +- 74 files changed, 6538 insertions(+), 30822 deletions(-) create mode 100644 sdk/resourcemanager/eventhub/armeventhub/zz_generated_models_serde.go delete mode 100644 sdk/resourcemanager/eventhub/armeventhub/zz_generated_pagers.go delete mode 100644 sdk/resourcemanager/eventhub/armeventhub/zz_generated_pollers.go create mode 100644 sdk/resourcemanager/resources/armresources/zt_deployments_client_live_test.go create mode 100644 sdk/resourcemanager/resources/armresources/zt_resourcegroups_client_live_test.go create mode 100644 sdk/resourcemanager/resources/armresources/zt_resources_client_live_test.go create mode 100644 sdk/resourcemanager/resources/armresources/zt_tags_client_live_test.go create mode 100644 sdk/resourcemanager/servicebus/armservicebus/zz_generated_models_serde.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/zz_generated_pagers.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/zz_generated_pollers.go diff --git a/sdk/resourcemanager/eventhub/armeventhub/CHANGELOG.md b/sdk/resourcemanager/eventhub/armeventhub/CHANGELOG.md index c833f49ab413..a645ae367aa4 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/CHANGELOG.md +++ b/sdk/resourcemanager/eventhub/armeventhub/CHANGELOG.md @@ -1,5 +1,376 @@ # Release History +## 0.4.0 (2022-04-14) +### Breaking Changes + +- Function `*EventHubsClient.ListByNamespace` return value(s) have been changed from `(*EventHubsClientListByNamespacePager)` to `(*runtime.Pager[EventHubsClientListByNamespaceResponse])` +- Function `*ClustersClient.ListBySubscription` return value(s) have been changed from `(*ClustersClientListBySubscriptionPager)` to `(*runtime.Pager[ClustersClientListBySubscriptionResponse])` +- Function `*SchemaRegistryClient.ListByNamespace` return value(s) have been changed from `(*SchemaRegistryClientListByNamespacePager)` to `(*runtime.Pager[SchemaRegistryClientListByNamespaceResponse])` +- Function `*NamespacesClient.ListByResourceGroup` return value(s) have been changed from `(*NamespacesClientListByResourceGroupPager)` to `(*runtime.Pager[NamespacesClientListByResourceGroupResponse])` +- Function `NewConsumerGroupsClient` return value(s) have been changed from `(*ConsumerGroupsClient)` to `(*ConsumerGroupsClient, error)` +- Function `NewClustersClient` return value(s) have been changed from `(*ClustersClient)` to `(*ClustersClient, error)` +- Function `*ConsumerGroupsClient.ListByEventHub` return value(s) have been changed from `(*ConsumerGroupsClientListByEventHubPager)` to `(*runtime.Pager[ConsumerGroupsClientListByEventHubResponse])` +- Function `*ClustersClient.BeginDelete` return value(s) have been changed from `(ClustersClientDeletePollerResponse, error)` to `(*armruntime.Poller[ClustersClientDeleteResponse], error)` +- Function `NewDisasterRecoveryConfigsClient` return value(s) have been changed from `(*DisasterRecoveryConfigsClient)` to `(*DisasterRecoveryConfigsClient, error)` +- Function `NewPrivateLinkResourcesClient` return value(s) have been changed from `(*PrivateLinkResourcesClient)` to `(*PrivateLinkResourcesClient, error)` +- Function `*NamespacesClient.List` return value(s) have been changed from `(*NamespacesClientListPager)` to `(*runtime.Pager[NamespacesClientListResponse])` +- Function `*NamespacesClient.BeginCreateOrUpdate` return value(s) have been changed from `(NamespacesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[NamespacesClientCreateOrUpdateResponse], error)` +- Function `*ClustersClient.BeginCreateOrUpdate` return value(s) have been changed from `(ClustersClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[ClustersClientCreateOrUpdateResponse], error)` +- Function `*PrivateEndpointConnectionsClient.BeginDelete` return value(s) have been changed from `(PrivateEndpointConnectionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)` +- Function `*OperationsClient.List` return value(s) have been changed from `(*OperationsClientListPager)` to `(*runtime.Pager[OperationsClientListResponse])` +- Function `NewConfigurationClient` return value(s) have been changed from `(*ConfigurationClient)` to `(*ConfigurationClient, error)` +- Function `*DisasterRecoveryConfigsClient.ListAuthorizationRules` return value(s) have been changed from `(*DisasterRecoveryConfigsClientListAuthorizationRulesPager)` to `(*runtime.Pager[DisasterRecoveryConfigsClientListAuthorizationRulesResponse])` +- Function `*EventHubsClient.ListAuthorizationRules` return value(s) have been changed from `(*EventHubsClientListAuthorizationRulesPager)` to `(*runtime.Pager[EventHubsClientListAuthorizationRulesResponse])` +- Function `NewNamespacesClient` return value(s) have been changed from `(*NamespacesClient)` to `(*NamespacesClient, error)` +- Function `NewPrivateEndpointConnectionsClient` return value(s) have been changed from `(*PrivateEndpointConnectionsClient)` to `(*PrivateEndpointConnectionsClient, error)` +- Function `*PrivateEndpointConnectionsClient.List` return value(s) have been changed from `(*PrivateEndpointConnectionsClientListPager)` to `(*runtime.Pager[PrivateEndpointConnectionsClientListResponse])` +- Function `*NamespacesClient.ListAuthorizationRules` return value(s) have been changed from `(*NamespacesClientListAuthorizationRulesPager)` to `(*runtime.Pager[NamespacesClientListAuthorizationRulesResponse])` +- Function `*ClustersClient.BeginUpdate` return value(s) have been changed from `(ClustersClientUpdatePollerResponse, error)` to `(*armruntime.Poller[ClustersClientUpdateResponse], error)` +- Function `NewOperationsClient` return value(s) have been changed from `(*OperationsClient)` to `(*OperationsClient, error)` +- Function `NewEventHubsClient` return value(s) have been changed from `(*EventHubsClient)` to `(*EventHubsClient, error)` +- Function `*NamespacesClient.BeginDelete` return value(s) have been changed from `(NamespacesClientDeletePollerResponse, error)` to `(*armruntime.Poller[NamespacesClientDeleteResponse], error)` +- Function `NewSchemaRegistryClient` return value(s) have been changed from `(*SchemaRegistryClient)` to `(*SchemaRegistryClient, error)` +- Function `*DisasterRecoveryConfigsClient.List` return value(s) have been changed from `(*DisasterRecoveryConfigsClientListPager)` to `(*runtime.Pager[DisasterRecoveryConfigsClientListResponse])` +- Function `*ClustersClient.ListByResourceGroup` return value(s) have been changed from `(*ClustersClientListByResourceGroupPager)` to `(*runtime.Pager[ClustersClientListByResourceGroupResponse])` +- Type of `Operation.Properties` has been changed from `map[string]interface{}` to `interface{}` +- Type of `ErrorAdditionalInfo.Info` has been changed from `map[string]interface{}` to `interface{}` +- Function `*EventHubsClientListAuthorizationRulesPager.PageResponse` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.Poll` has been removed +- Function `*ClustersClientCreateOrUpdatePoller.FinalResponse` has been removed +- Function `*ClustersClientListBySubscriptionPager.NextPage` has been removed +- Function `*PrivateEndpointConnectionsClientListPager.PageResponse` has been removed +- Function `ManagedServiceIdentityType.ToPtr` has been removed +- Function `*ConsumerGroupsClientListByEventHubPager.Err` has been removed +- Function `SchemaCompatibility.ToPtr` has been removed +- Function `*ClustersClientUpdatePoller.Poll` has been removed +- Function `*DisasterRecoveryConfigsClientListPager.Err` has been removed +- Function `*NamespacesClientDeletePollerResponse.Resume` has been removed +- Function `*NamespacesClientListPager.PageResponse` has been removed +- Function `*OperationsClientListPager.PageResponse` has been removed +- Function `*ClustersClientUpdatePollerResponse.Resume` has been removed +- Function `NamespacesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed +- Function `NamespacesClientDeletePollerResponse.PollUntilDone` has been removed +- Function `KeyType.ToPtr` has been removed +- Function `*SchemaRegistryClientListByNamespacePager.Err` has been removed +- Function `ClustersClientUpdatePollerResponse.PollUntilDone` has been removed +- Function `*PrivateEndpointConnectionsClientListPager.Err` has been removed +- Function `SKUTier.ToPtr` has been removed +- Function `*NamespacesClientCreateOrUpdatePoller.Poll` has been removed +- Function `*EventHubsClientListByNamespacePager.NextPage` has been removed +- Function `SKUName.ToPtr` has been removed +- Function `*NamespacesClientListPager.NextPage` has been removed +- Function `*NamespacesClientListByResourceGroupPager.NextPage` has been removed +- Function `*DisasterRecoveryConfigsClientListAuthorizationRulesPager.PageResponse` has been removed +- Function `*ConsumerGroupsClientListByEventHubPager.NextPage` has been removed +- Function `EntityStatus.ToPtr` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.ResumeToken` has been removed +- Function `*DisasterRecoveryConfigsClientListAuthorizationRulesPager.NextPage` has been removed +- Function `*NamespacesClientListAuthorizationRulesPager.PageResponse` has been removed +- Function `*ClustersClientListByResourceGroupPager.PageResponse` has been removed +- Function `*DisasterRecoveryConfigsClientListPager.PageResponse` has been removed +- Function `ClustersClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed +- Function `AccessRights.ToPtr` has been removed +- Function `*ClustersClientCreateOrUpdatePoller.ResumeToken` has been removed +- Function `ProvisioningStateDR.ToPtr` has been removed +- Function `*NamespacesClientDeletePoller.Done` has been removed +- Function `RoleDisasterRecovery.ToPtr` has been removed +- Function `EncodingCaptureDescription.ToPtr` has been removed +- Function `*ClustersClientDeletePoller.Done` has been removed +- Function `*SchemaRegistryClientListByNamespacePager.PageResponse` has been removed +- Function `*EventHubsClientListByNamespacePager.PageResponse` has been removed +- Function `*NamespacesClientDeletePoller.Poll` has been removed +- Function `*NamespacesClientCreateOrUpdatePollerResponse.Resume` has been removed +- Function `SchemaType.ToPtr` has been removed +- Function `*NamespacesClientDeletePoller.ResumeToken` has been removed +- Function `*NamespacesClientCreateOrUpdatePoller.FinalResponse` has been removed +- Function `*ClustersClientListBySubscriptionPager.PageResponse` has been removed +- Function `ClusterSKUName.ToPtr` has been removed +- Function `*ClustersClientCreateOrUpdatePollerResponse.Resume` has been removed +- Function `*ClustersClientUpdatePoller.ResumeToken` has been removed +- Function `*ConsumerGroupsClientListByEventHubPager.PageResponse` has been removed +- Function `*ClustersClientDeletePoller.ResumeToken` has been removed +- Function `*NamespacesClientListByResourceGroupPager.PageResponse` has been removed +- Function `*NamespacesClientDeletePoller.FinalResponse` has been removed +- Function `*NamespacesClientListAuthorizationRulesPager.Err` has been removed +- Function `*ClustersClientCreateOrUpdatePoller.Poll` has been removed +- Function `UnavailableReason.ToPtr` has been removed +- Function `*EventHubsClientListByNamespacePager.Err` has been removed +- Function `*ClustersClientCreateOrUpdatePoller.Done` has been removed +- Function `*ClustersClientListByResourceGroupPager.Err` has been removed +- Function `*OperationsClientListPager.Err` has been removed +- Function `*OperationsClientListPager.NextPage` has been removed +- Function `ClustersClientDeletePollerResponse.PollUntilDone` has been removed +- Function `*EventHubsClientListAuthorizationRulesPager.Err` has been removed +- Function `DefaultAction.ToPtr` has been removed +- Function `*NamespacesClientCreateOrUpdatePoller.ResumeToken` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.FinalResponse` has been removed +- Function `EndPointProvisioningState.ToPtr` has been removed +- Function `NetworkRuleIPAction.ToPtr` has been removed +- Function `*ClustersClientUpdatePoller.FinalResponse` has been removed +- Function `*NamespacesClientListAuthorizationRulesPager.NextPage` has been removed +- Function `*ClustersClientUpdatePoller.Done` has been removed +- Function `*ClustersClientListByResourceGroupPager.NextPage` has been removed +- Function `PrivateLinkConnectionStatus.ToPtr` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.Done` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePollerResponse.Resume` has been removed +- Function `*ClustersClientListBySubscriptionPager.Err` has been removed +- Function `*DisasterRecoveryConfigsClientListAuthorizationRulesPager.Err` has been removed +- Function `*SchemaRegistryClientListByNamespacePager.NextPage` has been removed +- Function `PublicNetworkAccessFlag.ToPtr` has been removed +- Function `*DisasterRecoveryConfigsClientListPager.NextPage` has been removed +- Function `*ClustersClientDeletePoller.Poll` has been removed +- Function `*EventHubsClientListAuthorizationRulesPager.NextPage` has been removed +- Function `*ClustersClientDeletePoller.FinalResponse` has been removed +- Function `*NamespacesClientListByResourceGroupPager.Err` has been removed +- Function `*ClustersClientDeletePollerResponse.Resume` has been removed +- Function `*PrivateEndpointConnectionsClientListPager.NextPage` has been removed +- Function `*NamespacesClientListPager.Err` has been removed +- Function `PrivateEndpointConnectionsClientDeletePollerResponse.PollUntilDone` has been removed +- Function `*NamespacesClientCreateOrUpdatePoller.Done` has been removed +- Function `CreatedByType.ToPtr` has been removed +- Struct `ClustersClientCreateOrUpdatePoller` has been removed +- Struct `ClustersClientCreateOrUpdatePollerResponse` has been removed +- Struct `ClustersClientCreateOrUpdateResult` has been removed +- Struct `ClustersClientDeletePoller` has been removed +- Struct `ClustersClientDeletePollerResponse` has been removed +- Struct `ClustersClientGetResult` has been removed +- Struct `ClustersClientListAvailableClusterRegionResult` has been removed +- Struct `ClustersClientListByResourceGroupPager` has been removed +- Struct `ClustersClientListByResourceGroupResult` has been removed +- Struct `ClustersClientListBySubscriptionPager` has been removed +- Struct `ClustersClientListBySubscriptionResult` has been removed +- Struct `ClustersClientListNamespacesResult` has been removed +- Struct `ClustersClientUpdatePoller` has been removed +- Struct `ClustersClientUpdatePollerResponse` has been removed +- Struct `ClustersClientUpdateResult` has been removed +- Struct `ConfigurationClientGetResult` has been removed +- Struct `ConfigurationClientPatchResult` has been removed +- Struct `ConsumerGroupsClientCreateOrUpdateResult` has been removed +- Struct `ConsumerGroupsClientGetResult` has been removed +- Struct `ConsumerGroupsClientListByEventHubPager` has been removed +- Struct `ConsumerGroupsClientListByEventHubResult` has been removed +- Struct `DisasterRecoveryConfigsClientCheckNameAvailabilityResult` has been removed +- Struct `DisasterRecoveryConfigsClientCreateOrUpdateResult` has been removed +- Struct `DisasterRecoveryConfigsClientGetAuthorizationRuleResult` has been removed +- Struct `DisasterRecoveryConfigsClientGetResult` has been removed +- Struct `DisasterRecoveryConfigsClientListAuthorizationRulesPager` has been removed +- Struct `DisasterRecoveryConfigsClientListAuthorizationRulesResult` has been removed +- Struct `DisasterRecoveryConfigsClientListKeysResult` has been removed +- Struct `DisasterRecoveryConfigsClientListPager` has been removed +- Struct `DisasterRecoveryConfigsClientListResult` has been removed +- Struct `EventHubsClientCreateOrUpdateAuthorizationRuleResult` has been removed +- Struct `EventHubsClientCreateOrUpdateResult` has been removed +- Struct `EventHubsClientGetAuthorizationRuleResult` has been removed +- Struct `EventHubsClientGetResult` has been removed +- Struct `EventHubsClientListAuthorizationRulesPager` has been removed +- Struct `EventHubsClientListAuthorizationRulesResult` has been removed +- Struct `EventHubsClientListByNamespacePager` has been removed +- Struct `EventHubsClientListByNamespaceResult` has been removed +- Struct `EventHubsClientListKeysResult` has been removed +- Struct `EventHubsClientRegenerateKeysResult` has been removed +- Struct `NamespacesClientCheckNameAvailabilityResult` has been removed +- Struct `NamespacesClientCreateOrUpdateAuthorizationRuleResult` has been removed +- Struct `NamespacesClientCreateOrUpdateNetworkRuleSetResult` has been removed +- Struct `NamespacesClientCreateOrUpdatePoller` has been removed +- Struct `NamespacesClientCreateOrUpdatePollerResponse` has been removed +- Struct `NamespacesClientCreateOrUpdateResult` has been removed +- Struct `NamespacesClientDeletePoller` has been removed +- Struct `NamespacesClientDeletePollerResponse` has been removed +- Struct `NamespacesClientGetAuthorizationRuleResult` has been removed +- Struct `NamespacesClientGetNetworkRuleSetResult` has been removed +- Struct `NamespacesClientGetResult` has been removed +- Struct `NamespacesClientListAuthorizationRulesPager` has been removed +- Struct `NamespacesClientListAuthorizationRulesResult` has been removed +- Struct `NamespacesClientListByResourceGroupPager` has been removed +- Struct `NamespacesClientListByResourceGroupResult` has been removed +- Struct `NamespacesClientListKeysResult` has been removed +- Struct `NamespacesClientListNetworkRuleSetResult` has been removed +- Struct `NamespacesClientListPager` has been removed +- Struct `NamespacesClientListResult` has been removed +- Struct `NamespacesClientRegenerateKeysResult` has been removed +- Struct `NamespacesClientUpdateResult` has been removed +- Struct `OperationsClientListPager` has been removed +- Struct `OperationsClientListResult` has been removed +- Struct `PrivateEndpointConnectionsClientCreateOrUpdateResult` has been removed +- Struct `PrivateEndpointConnectionsClientDeletePoller` has been removed +- Struct `PrivateEndpointConnectionsClientDeletePollerResponse` has been removed +- Struct `PrivateEndpointConnectionsClientGetResult` has been removed +- Struct `PrivateEndpointConnectionsClientListPager` has been removed +- Struct `PrivateEndpointConnectionsClientListResult` has been removed +- Struct `PrivateLinkResourcesClientGetResult` has been removed +- Struct `SchemaRegistryClientCreateOrUpdateResult` has been removed +- Struct `SchemaRegistryClientGetResult` has been removed +- Struct `SchemaRegistryClientListByNamespacePager` has been removed +- Struct `SchemaRegistryClientListByNamespaceResult` has been removed +- Field `ClustersClientGetResult` of struct `ClustersClientGetResponse` has been removed +- Field `RawResponse` of struct `ClustersClientGetResponse` has been removed +- Field `DisasterRecoveryConfigsClientListKeysResult` of struct `DisasterRecoveryConfigsClientListKeysResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientListKeysResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientDeleteResponse` has been removed +- Field `NamespacesClientListResult` of struct `NamespacesClientListResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListResponse` has been removed +- Field `ClustersClientListByResourceGroupResult` of struct `ClustersClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `ClustersClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientDeleteResponse` has been removed +- Field `NamespacesClientGetResult` of struct `NamespacesClientGetResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientGetResponse` has been removed +- Field `ClustersClientUpdateResult` of struct `ClustersClientUpdateResponse` has been removed +- Field `RawResponse` of struct `ClustersClientUpdateResponse` has been removed +- Field `PrivateEndpointConnectionsClientListResult` of struct `PrivateEndpointConnectionsClientListResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientListResponse` has been removed +- Field `PrivateEndpointConnectionsClientCreateOrUpdateResult` of struct `PrivateEndpointConnectionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientCreateOrUpdateResponse` has been removed +- Field `NamespacesClientCreateOrUpdateAuthorizationRuleResult` of struct `NamespacesClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `EventHubsClientCreateOrUpdateResult` of struct `EventHubsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientCreateOrUpdateResponse` has been removed +- Field `ClustersClientListAvailableClusterRegionResult` of struct `ClustersClientListAvailableClusterRegionResponse` has been removed +- Field `RawResponse` of struct `ClustersClientListAvailableClusterRegionResponse` has been removed +- Field `NamespacesClientListKeysResult` of struct `NamespacesClientListKeysResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListKeysResponse` has been removed +- Field `EventHubsClientListByNamespaceResult` of struct `EventHubsClientListByNamespaceResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientListByNamespaceResponse` has been removed +- Field `EventHubsClientRegenerateKeysResult` of struct `EventHubsClientRegenerateKeysResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientRegenerateKeysResponse` has been removed +- Field `RawResponse` of struct `ClustersClientDeleteResponse` has been removed +- Field `NamespacesClientCheckNameAvailabilityResult` of struct `NamespacesClientCheckNameAvailabilityResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientCheckNameAvailabilityResponse` has been removed +- Field `ClustersClientListNamespacesResult` of struct `ClustersClientListNamespacesResponse` has been removed +- Field `RawResponse` of struct `ClustersClientListNamespacesResponse` has been removed +- Field `DisasterRecoveryConfigsClientGetAuthorizationRuleResult` of struct `DisasterRecoveryConfigsClientGetAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientGetAuthorizationRuleResponse` has been removed +- Field `NamespacesClientListNetworkRuleSetResult` of struct `NamespacesClientListNetworkRuleSetResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListNetworkRuleSetResponse` has been removed +- Field `DisasterRecoveryConfigsClientListResult` of struct `DisasterRecoveryConfigsClientListResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientListResponse` has been removed +- Field `NamespacesClientCreateOrUpdateNetworkRuleSetResult` of struct `NamespacesClientCreateOrUpdateNetworkRuleSetResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientCreateOrUpdateNetworkRuleSetResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientDeleteAuthorizationRuleResponse` has been removed +- Field `NamespacesClientListAuthorizationRulesResult` of struct `NamespacesClientListAuthorizationRulesResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListAuthorizationRulesResponse` has been removed +- Field `SchemaRegistryClientListByNamespaceResult` of struct `SchemaRegistryClientListByNamespaceResponse` has been removed +- Field `RawResponse` of struct `SchemaRegistryClientListByNamespaceResponse` has been removed +- Field `EventHubsClientGetAuthorizationRuleResult` of struct `EventHubsClientGetAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientGetAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientBreakPairingResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientFailOverResponse` has been removed +- Field `NamespacesClientListByResourceGroupResult` of struct `NamespacesClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListByResourceGroupResponse` has been removed +- Field `ConsumerGroupsClientGetResult` of struct `ConsumerGroupsClientGetResponse` has been removed +- Field `RawResponse` of struct `ConsumerGroupsClientGetResponse` has been removed +- Field `NamespacesClientGetAuthorizationRuleResult` of struct `NamespacesClientGetAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientGetAuthorizationRuleResponse` has been removed +- Field `ClustersClientListBySubscriptionResult` of struct `ClustersClientListBySubscriptionResponse` has been removed +- Field `RawResponse` of struct `ClustersClientListBySubscriptionResponse` has been removed +- Field `NamespacesClientGetNetworkRuleSetResult` of struct `NamespacesClientGetNetworkRuleSetResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientGetNetworkRuleSetResponse` has been removed +- Field `ConfigurationClientPatchResult` of struct `ConfigurationClientPatchResponse` has been removed +- Field `RawResponse` of struct `ConfigurationClientPatchResponse` has been removed +- Field `EventHubsClientGetResult` of struct `EventHubsClientGetResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientGetResponse` has been removed +- Field `ClustersClientCreateOrUpdateResult` of struct `ClustersClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ClustersClientCreateOrUpdateResponse` has been removed +- Field `DisasterRecoveryConfigsClientListAuthorizationRulesResult` of struct `DisasterRecoveryConfigsClientListAuthorizationRulesResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientListAuthorizationRulesResponse` has been removed +- Field `RawResponse` of struct `SchemaRegistryClientDeleteResponse` has been removed +- Field `SchemaRegistryClientCreateOrUpdateResult` of struct `SchemaRegistryClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `SchemaRegistryClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientDeleteAuthorizationRuleResponse` has been removed +- Field `SchemaRegistryClientGetResult` of struct `SchemaRegistryClientGetResponse` has been removed +- Field `RawResponse` of struct `SchemaRegistryClientGetResponse` has been removed +- Field `RawResponse` of struct `ConsumerGroupsClientDeleteResponse` has been removed +- Field `ConfigurationClientGetResult` of struct `ConfigurationClientGetResponse` has been removed +- Field `RawResponse` of struct `ConfigurationClientGetResponse` has been removed +- Field `PrivateEndpointConnectionsClientGetResult` of struct `PrivateEndpointConnectionsClientGetResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientGetResponse` has been removed +- Field `DisasterRecoveryConfigsClientCreateOrUpdateResult` of struct `DisasterRecoveryConfigsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientCreateOrUpdateResponse` has been removed +- Field `OperationsClientListResult` of struct `OperationsClientListResponse` has been removed +- Field `RawResponse` of struct `OperationsClientListResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientDeleteResponse` has been removed +- Field `ConsumerGroupsClientListByEventHubResult` of struct `ConsumerGroupsClientListByEventHubResponse` has been removed +- Field `RawResponse` of struct `ConsumerGroupsClientListByEventHubResponse` has been removed +- Field `ConsumerGroupsClientCreateOrUpdateResult` of struct `ConsumerGroupsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ConsumerGroupsClientCreateOrUpdateResponse` has been removed +- Field `NamespacesClientCreateOrUpdateResult` of struct `NamespacesClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientCreateOrUpdateResponse` has been removed +- Field `EventHubsClientCreateOrUpdateAuthorizationRuleResult` of struct `EventHubsClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `NamespacesClientRegenerateKeysResult` of struct `NamespacesClientRegenerateKeysResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientRegenerateKeysResponse` has been removed +- Field `DisasterRecoveryConfigsClientCheckNameAvailabilityResult` of struct `DisasterRecoveryConfigsClientCheckNameAvailabilityResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientCheckNameAvailabilityResponse` has been removed +- Field `EventHubsClientListKeysResult` of struct `EventHubsClientListKeysResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientListKeysResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientDeleteResponse` has been removed +- Field `EventHubsClientListAuthorizationRulesResult` of struct `EventHubsClientListAuthorizationRulesResponse` has been removed +- Field `RawResponse` of struct `EventHubsClientListAuthorizationRulesResponse` has been removed +- Field `PrivateLinkResourcesClientGetResult` of struct `PrivateLinkResourcesClientGetResponse` has been removed +- Field `RawResponse` of struct `PrivateLinkResourcesClientGetResponse` has been removed +- Field `DisasterRecoveryConfigsClientGetResult` of struct `DisasterRecoveryConfigsClientGetResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientGetResponse` has been removed +- Field `NamespacesClientUpdateResult` of struct `NamespacesClientUpdateResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientUpdateResponse` has been removed + +### Features Added + +- New anonymous field `NetworkRuleSet` in struct `NamespacesClientCreateOrUpdateNetworkRuleSetResponse` +- New anonymous field `AccessKeys` in struct `NamespacesClientListKeysResponse` +- New anonymous field `ArmDisasterRecoveryListResult` in struct `DisasterRecoveryConfigsClientListResponse` +- New anonymous field `AuthorizationRule` in struct `NamespacesClientGetAuthorizationRuleResponse` +- New anonymous field `EHNamespace` in struct `NamespacesClientGetResponse` +- New anonymous field `AuthorizationRule` in struct `DisasterRecoveryConfigsClientGetAuthorizationRuleResponse` +- New anonymous field `OperationListResult` in struct `OperationsClientListResponse` +- New anonymous field `EHNamespaceIDListResult` in struct `ClustersClientListNamespacesResponse` +- New anonymous field `AuthorizationRuleListResult` in struct `EventHubsClientListAuthorizationRulesResponse` +- New anonymous field `ClusterListResult` in struct `ClustersClientListByResourceGroupResponse` +- New anonymous field `EHNamespace` in struct `NamespacesClientUpdateResponse` +- New anonymous field `ArmDisasterRecovery` in struct `DisasterRecoveryConfigsClientCreateOrUpdateResponse` +- New anonymous field `ClusterQuotaConfigurationProperties` in struct `ConfigurationClientPatchResponse` +- New anonymous field `AuthorizationRuleListResult` in struct `DisasterRecoveryConfigsClientListAuthorizationRulesResponse` +- New anonymous field `EHNamespaceListResult` in struct `NamespacesClientListResponse` +- New anonymous field `CheckNameAvailabilityResult` in struct `NamespacesClientCheckNameAvailabilityResponse` +- New anonymous field `AuthorizationRule` in struct `EventHubsClientCreateOrUpdateAuthorizationRuleResponse` +- New anonymous field `Eventhub` in struct `EventHubsClientGetResponse` +- New anonymous field `EHNamespaceListResult` in struct `NamespacesClientListByResourceGroupResponse` +- New anonymous field `AccessKeys` in struct `NamespacesClientRegenerateKeysResponse` +- New anonymous field `Eventhub` in struct `EventHubsClientCreateOrUpdateResponse` +- New field `ResumeToken` in struct `ClustersClientBeginUpdateOptions` +- New anonymous field `AvailableClustersList` in struct `ClustersClientListAvailableClusterRegionResponse` +- New anonymous field `SchemaGroup` in struct `SchemaRegistryClientCreateOrUpdateResponse` +- New anonymous field `Cluster` in struct `ClustersClientCreateOrUpdateResponse` +- New anonymous field `Cluster` in struct `ClustersClientUpdateResponse` +- New anonymous field `AuthorizationRule` in struct `NamespacesClientCreateOrUpdateAuthorizationRuleResponse` +- New anonymous field `NetworkRuleSet` in struct `NamespacesClientGetNetworkRuleSetResponse` +- New anonymous field `ClusterListResult` in struct `ClustersClientListBySubscriptionResponse` +- New anonymous field `ConsumerGroup` in struct `ConsumerGroupsClientCreateOrUpdateResponse` +- New anonymous field `PrivateEndpointConnection` in struct `PrivateEndpointConnectionsClientCreateOrUpdateResponse` +- New field `ResumeToken` in struct `ClustersClientBeginCreateOrUpdateOptions` +- New anonymous field `NetworkRuleSetListResult` in struct `NamespacesClientListNetworkRuleSetResponse` +- New anonymous field `PrivateEndpointConnectionListResult` in struct `PrivateEndpointConnectionsClientListResponse` +- New anonymous field `Cluster` in struct `ClustersClientGetResponse` +- New field `ResumeToken` in struct `NamespacesClientBeginDeleteOptions` +- New field `ResumeToken` in struct `NamespacesClientBeginCreateOrUpdateOptions` +- New anonymous field `AccessKeys` in struct `EventHubsClientListKeysResponse` +- New anonymous field `ConsumerGroup` in struct `ConsumerGroupsClientGetResponse` +- New anonymous field `PrivateEndpointConnection` in struct `PrivateEndpointConnectionsClientGetResponse` +- New field `ResumeToken` in struct `ClustersClientBeginDeleteOptions` +- New anonymous field `ClusterQuotaConfigurationProperties` in struct `ConfigurationClientGetResponse` +- New anonymous field `ConsumerGroupListResult` in struct `ConsumerGroupsClientListByEventHubResponse` +- New anonymous field `AccessKeys` in struct `DisasterRecoveryConfigsClientListKeysResponse` +- New anonymous field `AuthorizationRule` in struct `EventHubsClientGetAuthorizationRuleResponse` +- New field `ResumeToken` in struct `PrivateEndpointConnectionsClientBeginDeleteOptions` +- New anonymous field `ArmDisasterRecovery` in struct `DisasterRecoveryConfigsClientGetResponse` +- New anonymous field `SchemaGroupListResult` in struct `SchemaRegistryClientListByNamespaceResponse` +- New anonymous field `PrivateLinkResourcesListResult` in struct `PrivateLinkResourcesClientGetResponse` +- New anonymous field `EHNamespace` in struct `NamespacesClientCreateOrUpdateResponse` +- New anonymous field `ListResult` in struct `EventHubsClientListByNamespaceResponse` +- New anonymous field `AuthorizationRuleListResult` in struct `NamespacesClientListAuthorizationRulesResponse` +- New anonymous field `AccessKeys` in struct `EventHubsClientRegenerateKeysResponse` +- New anonymous field `CheckNameAvailabilityResult` in struct `DisasterRecoveryConfigsClientCheckNameAvailabilityResponse` +- New anonymous field `SchemaGroup` in struct `SchemaRegistryClientGetResponse` + + ## 0.3.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/eventhub/armeventhub/README.md b/sdk/resourcemanager/eventhub/armeventhub/README.md index c7ec027e7284..0c424c8c8e73 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/README.md +++ b/sdk/resourcemanager/eventhub/armeventhub/README.md @@ -11,7 +11,7 @@ The `armeventhub` module provides operations for working with Azure Event Hubs. ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Event Hubs modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armeventhub.NewPrivateEndpointConnectionsClient(, cred, nil) +client, err := armeventhub.NewPrivateEndpointConnectionsClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armeventhub.NewPrivateEndpointConnectionsClient(, cred, &options) +client, err := armeventhub.NewPrivateEndpointConnectionsClient(, cred, &options) ``` ## More sample code diff --git a/sdk/resourcemanager/eventhub/armeventhub/autorest.md b/sdk/resourcemanager/eventhub/armeventhub/autorest.md index 83190439efbc..e1597dc9ce6a 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/autorest.md +++ b/sdk/resourcemanager/eventhub/armeventhub/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/eventhub/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/eventhub/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/ba65174ad2569e80fdb5838a1dddc26b8c0d6f3d/specification/eventhub/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/ba65174ad2569e80fdb5838a1dddc26b8c0d6f3d/specification/eventhub/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.1 +module-version: 0.4.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/eventhub/armeventhub/go.mod b/sdk/resourcemanager/eventhub/armeventhub/go.mod index 8d8de1d9e384..bb5af11622c3 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/go.mod +++ b/sdk/resourcemanager/eventhub/armeventhub/go.mod @@ -1,8 +1,21 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect ) diff --git a/sdk/resourcemanager/eventhub/armeventhub/go.sum b/sdk/resourcemanager/eventhub/armeventhub/go.sum index 2ce51d3b8174..56d1c32628ae 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/go.sum +++ b/sdk/resourcemanager/eventhub/armeventhub/go.sum @@ -1,18 +1,18 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 h1:8wVJL0HUP5yDFXvotdewORTw7Yu88JbreWN/mobSvsQ= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0 h1:bLRntPH25SkY1uZ/YZW+dmxNky9r1fAHvDFrzluo+4Q= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -32,21 +32,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -56,4 +51,3 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_clusters_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_clusters_client_test.go index 458c13742a03..ed095ffe8332 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_clusters_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_clusters_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,184 +19,236 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ListAvailableClustersGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ListAvailableClustersGet.json func ExampleClustersClient_ListAvailableClusterRegion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewClustersClient("", cred, nil) + client, err := armeventhub.NewClustersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListAvailableClusterRegion(ctx, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClustersClientListAvailableClusterRegionResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClustersListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClustersListBySubscription.json func ExampleClustersClient_ListBySubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewClustersClient("", cred, nil) + client, err := armeventhub.NewClustersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListBySubscription(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClustersListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClustersListByResourceGroup.json func ExampleClustersClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewClustersClient("", cred, nil) + client, err := armeventhub.NewClustersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterGet.json func ExampleClustersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewClustersClient("", cred, nil) + client, err := armeventhub.NewClustersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClustersClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterPut.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterPut.json func ExampleClustersClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewClustersClient("", cred, nil) + client, err := armeventhub.NewClustersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreateOrUpdate(ctx, "", "", armeventhub.Cluster{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Tags: map[string]*string{ - "tag1": to.StringPtr("value1"), - "tag2": to.StringPtr("value2"), + "tag1": to.Ptr("value1"), + "tag2": to.Ptr("value2"), }, SKU: &armeventhub.ClusterSKU{ - Name: armeventhub.ClusterSKUName("Dedicated").ToPtr(), - Capacity: to.Int32Ptr(1), + Name: to.Ptr(armeventhub.ClusterSKUNameDedicated), + Capacity: to.Ptr[int32](1), }, }, - nil) + &armeventhub.ClustersClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClustersClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterPatch.json func ExampleClustersClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewClustersClient("", cred, nil) + client, err := armeventhub.NewClustersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginUpdate(ctx, "", "", armeventhub.Cluster{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Tags: map[string]*string{ - "tag3": to.StringPtr("value3"), - "tag4": to.StringPtr("value4"), + "tag3": to.Ptr("value3"), + "tag4": to.Ptr("value4"), }, }, - nil) + &armeventhub.ClustersClientBeginUpdateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClustersClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterDelete.json func ExampleClustersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewClustersClient("", cred, nil) + client, err := armeventhub.NewClustersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", - nil) + &armeventhub.ClustersClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ListNamespacesInClusterGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ListNamespacesInClusterGet.json func ExampleClustersClient_ListNamespaces() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewClustersClient("", cred, nil) + client, err := armeventhub.NewClustersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListNamespaces(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClustersClientListNamespacesResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_configuration_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_configuration_client_test.go index 47aecad2ed9f..01a7de470c72 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_configuration_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_configuration_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,44 +17,58 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterQuotaConfigurationPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterQuotaConfigurationPatch.json func ExampleConfigurationClient_Patch() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewConfigurationClient("", cred, nil) + client, err := armeventhub.NewConfigurationClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Patch(ctx, "", "", armeventhub.ClusterQuotaConfigurationProperties{ Settings: map[string]*string{ - "eventhub-per-namespace-quota": to.StringPtr("20"), - "namespaces-per-cluster-quota": to.StringPtr("200"), + "eventhub-per-namespace-quota": to.Ptr("20"), + "namespaces-per-cluster-quota": to.Ptr("200"), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ConfigurationClientPatchResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterQuotaConfigurationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/Clusters/ClusterQuotaConfigurationGet.json func ExampleConfigurationClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewConfigurationClient("", cred, nil) + client, err := armeventhub.NewConfigurationClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ConfigurationClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_consumergroups_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_consumergroups_client_test.go index d760b58ecfc0..0d34a8491a20 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_consumergroups_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_consumergroups_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,14 +17,19 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/ConsumerGroup/EHConsumerGroupCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/ConsumerGroup/EHConsumerGroupCreate.json func ExampleConsumerGroupsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewConsumerGroupsClient("", cred, nil) + client, err := armeventhub.NewConsumerGroupsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", @@ -32,24 +37,31 @@ func ExampleConsumerGroupsClient_CreateOrUpdate() { "", armeventhub.ConsumerGroup{ Properties: &armeventhub.ConsumerGroupProperties{ - UserMetadata: to.StringPtr(""), + UserMetadata: to.Ptr(""), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ConsumerGroupsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/ConsumerGroup/EHConsumerGroupDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/ConsumerGroup/EHConsumerGroupDelete.json func ExampleConsumerGroupsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewConsumerGroupsClient("", cred, nil) + client, err := armeventhub.NewConsumerGroupsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", @@ -57,18 +69,24 @@ func ExampleConsumerGroupsClient_Delete() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/ConsumerGroup/EHConsumerGroupGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/ConsumerGroup/EHConsumerGroupGet.json func ExampleConsumerGroupsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewConsumerGroupsClient("", cred, nil) + client, err := armeventhub.NewConsumerGroupsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", @@ -76,35 +94,41 @@ func ExampleConsumerGroupsClient_Get() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ConsumerGroupsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/ConsumerGroup/EHConsumerGroupListByEventHub.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/ConsumerGroup/EHConsumerGroupListByEventHub.json func ExampleConsumerGroupsClient_ListByEventHub() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewConsumerGroupsClient("", cred, nil) + client, err := armeventhub.NewConsumerGroupsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByEventHub("", "", "", &armeventhub.ConsumerGroupsClientListByEventHubOptions{Skip: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_disasterrecoveryconfigs_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_disasterrecoveryconfigs_client_test.go index 04d954f54dd9..a33a804d40b0 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_disasterrecoveryconfigs_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_disasterrecoveryconfigs_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,183 +17,235 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasCheckNameAvailability.json func ExampleDisasterRecoveryConfigsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CheckNameAvailability(ctx, "", "", armeventhub.CheckNameAvailabilityParameter{ - Name: to.StringPtr(""), + Name: to.Ptr(""), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientCheckNameAvailabilityResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasList.json func ExampleDisasterRecoveryConfigsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasCreate.json func ExampleDisasterRecoveryConfigsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", "", armeventhub.ArmDisasterRecovery{ Properties: &armeventhub.ArmDisasterRecoveryProperties{ - PartnerNamespace: to.StringPtr(""), + PartnerNamespace: to.Ptr(""), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasDelete.json func ExampleDisasterRecoveryConfigsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasGet.json func ExampleDisasterRecoveryConfigsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasBreakPairing.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasBreakPairing.json func ExampleDisasterRecoveryConfigsClient_BreakPairing() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.BreakPairing(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasFailOver.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasFailOver.json func ExampleDisasterRecoveryConfigsClient_FailOver() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.FailOver(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListAll.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListAll.json func ExampleDisasterRecoveryConfigsClient_ListAuthorizationRules() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAuthorizationRules("", "", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json func ExampleDisasterRecoveryConfigsClient_GetAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAuthorizationRule(ctx, "", "", @@ -201,19 +253,26 @@ func ExampleDisasterRecoveryConfigsClient_GetAuthorizationRule() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientGetAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListKey.json func ExampleDisasterRecoveryConfigsClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armeventhub.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListKeys(ctx, "", "", @@ -221,7 +280,9 @@ func ExampleDisasterRecoveryConfigsClient_ListKeys() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientListKeysResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_eventhubs_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_eventhubs_client_test.go index 13f5a89fbecb..37ee423a73b3 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_eventhubs_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_eventhubs_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,41 +17,50 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubListByNameSpace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubListByNameSpace.json func ExampleEventHubsClient_ListByNamespace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByNamespace("", "", &armeventhub.EventHubsClientListByNamespaceOptions{Skip: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubCreate.json func ExampleEventHubsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", @@ -60,101 +69,125 @@ func ExampleEventHubsClient_CreateOrUpdate() { Properties: &armeventhub.Properties{ CaptureDescription: &armeventhub.CaptureDescription{ Destination: &armeventhub.Destination{ - Name: to.StringPtr(""), + Name: to.Ptr(""), Properties: &armeventhub.DestinationProperties{ - ArchiveNameFormat: to.StringPtr(""), - BlobContainer: to.StringPtr(""), - StorageAccountResourceID: to.StringPtr(""), + ArchiveNameFormat: to.Ptr(""), + BlobContainer: to.Ptr(""), + StorageAccountResourceID: to.Ptr(""), }, }, - Enabled: to.BoolPtr(true), - Encoding: armeventhub.EncodingCaptureDescriptionAvro.ToPtr(), - IntervalInSeconds: to.Int32Ptr(120), - SizeLimitInBytes: to.Int32Ptr(10485763), + Enabled: to.Ptr(true), + Encoding: to.Ptr(armeventhub.EncodingCaptureDescriptionAvro), + IntervalInSeconds: to.Ptr[int32](120), + SizeLimitInBytes: to.Ptr[int32](10485763), }, - MessageRetentionInDays: to.Int64Ptr(4), - PartitionCount: to.Int64Ptr(4), - Status: armeventhub.EntityStatusActive.ToPtr(), + MessageRetentionInDays: to.Ptr[int64](4), + PartitionCount: to.Ptr[int64](4), + Status: to.Ptr(armeventhub.EntityStatusActive), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.EventHubsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubDelete.json func ExampleEventHubsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubGet.json func ExampleEventHubsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.EventHubsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleListAll.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleListAll.json func ExampleEventHubsClient_ListAuthorizationRules() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAuthorizationRules("", "", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleCreate.json func ExampleEventHubsClient_CreateOrUpdateAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateAuthorizationRule(ctx, "", "", @@ -163,25 +196,32 @@ func ExampleEventHubsClient_CreateOrUpdateAuthorizationRule() { armeventhub.AuthorizationRule{ Properties: &armeventhub.AuthorizationRuleProperties{ Rights: []*armeventhub.AccessRights{ - armeventhub.AccessRights("Listen").ToPtr(), - armeventhub.AccessRights("Send").ToPtr()}, + to.Ptr(armeventhub.AccessRightsListen), + to.Ptr(armeventhub.AccessRightsSend)}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.EventHubsClientCreateOrUpdateAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleGet.json func ExampleEventHubsClient_GetAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAuthorizationRule(ctx, "", "", @@ -189,19 +229,26 @@ func ExampleEventHubsClient_GetAuthorizationRule() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.EventHubsClientGetAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleDelete.json func ExampleEventHubsClient_DeleteAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAuthorizationRule(ctx, "", "", @@ -209,18 +256,24 @@ func ExampleEventHubsClient_DeleteAuthorizationRule() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleListKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleListKey.json func ExampleEventHubsClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListKeys(ctx, "", "", @@ -228,30 +281,39 @@ func ExampleEventHubsClient_ListKeys() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.EventHubsClientListKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleRegenerateKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EventHubs/EHEventHubAuthorizationRuleRegenerateKey.json func ExampleEventHubsClient_RegenerateKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewEventHubsClient("", cred, nil) + client, err := armeventhub.NewEventHubsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.RegenerateKeys(ctx, "", "", "", "", armeventhub.RegenerateAccessKeyParameters{ - KeyType: armeventhub.KeyType("PrimaryKey").ToPtr(), + KeyType: to.Ptr(armeventhub.KeyTypePrimaryKey), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.EventHubsClientRegenerateKeysResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_namespaces_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_namespaces_client_test.go index 36b13dc63ee6..4e014e0f8083 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_namespaces_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_namespaces_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,153 +19,188 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceList.json func ExampleNamespacesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceListByResourceGroup.json func ExampleNamespacesClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceCreate.json func ExampleNamespacesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreateOrUpdate(ctx, "", "", armeventhub.EHNamespace{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Identity: &armeventhub.Identity{ - Type: armeventhub.ManagedServiceIdentityTypeSystemAssignedUserAssigned.ToPtr(), + Type: to.Ptr(armeventhub.ManagedServiceIdentityTypeSystemAssignedUserAssigned), UserAssignedIdentities: map[string]*armeventhub.UserAssignedIdentity{ "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud1": {}, "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud2": {}, }, }, Properties: &armeventhub.EHNamespaceProperties{ - ClusterArmID: to.StringPtr(""), + ClusterArmID: to.Ptr(""), Encryption: &armeventhub.Encryption{ - KeySource: to.StringPtr(""), + KeySource: to.Ptr(""), KeyVaultProperties: []*armeventhub.KeyVaultProperties{ { Identity: &armeventhub.UserAssignedIdentityProperties{ - UserAssignedIdentity: to.StringPtr(""), + UserAssignedIdentity: to.Ptr(""), }, - KeyName: to.StringPtr(""), - KeyVaultURI: to.StringPtr(""), + KeyName: to.Ptr(""), + KeyVaultURI: to.Ptr(""), }}, }, }, }, - nil) + &armeventhub.NamespacesClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceDelete.json func ExampleNamespacesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", - nil) + &armeventhub.NamespacesClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceGet.json func ExampleNamespacesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceUpdate.json func ExampleNamespacesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", armeventhub.EHNamespace{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Identity: &armeventhub.Identity{ - Type: armeventhub.ManagedServiceIdentityTypeSystemAssignedUserAssigned.ToPtr(), + Type: to.Ptr(armeventhub.ManagedServiceIdentityTypeSystemAssignedUserAssigned), UserAssignedIdentities: map[string]*armeventhub.UserAssignedIdentity{ "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud2": nil, }, @@ -173,143 +208,175 @@ func ExampleNamespacesClient_Update() { }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetCreate.json func ExampleNamespacesClient_CreateOrUpdateNetworkRuleSet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateNetworkRuleSet(ctx, "", "", armeventhub.NetworkRuleSet{ Properties: &armeventhub.NetworkRuleSetProperties{ - DefaultAction: armeventhub.DefaultAction("Deny").ToPtr(), + DefaultAction: to.Ptr(armeventhub.DefaultActionDeny), IPRules: []*armeventhub.NWRuleSetIPRules{ { - Action: armeventhub.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armeventhub.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }, { - Action: armeventhub.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armeventhub.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }, { - Action: armeventhub.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armeventhub.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }, { - Action: armeventhub.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armeventhub.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }, { - Action: armeventhub.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armeventhub.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }}, VirtualNetworkRules: []*armeventhub.NWRuleSetVirtualNetworkRules{ { - IgnoreMissingVnetServiceEndpoint: to.BoolPtr(true), + IgnoreMissingVnetServiceEndpoint: to.Ptr(true), Subnet: &armeventhub.Subnet{ - ID: to.StringPtr(""), + ID: to.Ptr(""), }, }, { - IgnoreMissingVnetServiceEndpoint: to.BoolPtr(false), + IgnoreMissingVnetServiceEndpoint: to.Ptr(false), Subnet: &armeventhub.Subnet{ - ID: to.StringPtr(""), + ID: to.Ptr(""), }, }, { - IgnoreMissingVnetServiceEndpoint: to.BoolPtr(false), + IgnoreMissingVnetServiceEndpoint: to.Ptr(false), Subnet: &armeventhub.Subnet{ - ID: to.StringPtr(""), + ID: to.Ptr(""), }, }}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientCreateOrUpdateNetworkRuleSetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetGet.json func ExampleNamespacesClient_GetNetworkRuleSet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetNetworkRuleSet(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientGetNetworkRuleSetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetList.json func ExampleNamespacesClient_ListNetworkRuleSet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListNetworkRuleSet(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientListNetworkRuleSetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleListAll.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleListAll.json func ExampleNamespacesClient_ListAuthorizationRules() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAuthorizationRules("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleCreate.json func ExampleNamespacesClient_CreateOrUpdateAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateAuthorizationRule(ctx, "", "", @@ -317,110 +384,146 @@ func ExampleNamespacesClient_CreateOrUpdateAuthorizationRule() { armeventhub.AuthorizationRule{ Properties: &armeventhub.AuthorizationRuleProperties{ Rights: []*armeventhub.AccessRights{ - armeventhub.AccessRights("Listen").ToPtr(), - armeventhub.AccessRights("Send").ToPtr()}, + to.Ptr(armeventhub.AccessRightsListen), + to.Ptr(armeventhub.AccessRightsSend)}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientCreateOrUpdateAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleDelete.json func ExampleNamespacesClient_DeleteAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAuthorizationRule(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json func ExampleNamespacesClient_GetAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAuthorizationRule(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientGetAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleListKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleListKey.json func ExampleNamespacesClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListKeys(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientListKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleRegenerateKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleRegenerateKey.json func ExampleNamespacesClient_RegenerateKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.RegenerateKeys(ctx, "", "", "", armeventhub.RegenerateAccessKeyParameters{ - KeyType: armeventhub.KeyType("PrimaryKey").ToPtr(), + KeyType: to.Ptr(armeventhub.KeyTypePrimaryKey), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientRegenerateKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/EHNameSpaceCheckNameAvailability.json func ExampleNamespacesClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewNamespacesClient("", cred, nil) + client, err := armeventhub.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CheckNameAvailability(ctx, armeventhub.CheckNameAvailabilityParameter{ - Name: to.StringPtr(""), + Name: to.Ptr(""), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientCheckNameAvailabilityResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_operations_client_test.go index d9ed89ab5ee0..ab632555978c 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_operations_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,25 +16,29 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EHOperations_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/EHOperations_List.json func ExampleOperationsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewOperationsClient(cred, nil) + client, err := armeventhub.NewOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_privateendpointconnections_client_test.go index c0c187cde1c5..437fd917459e 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_privateendpointconnections_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_privateendpointconnections_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,39 +19,48 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionList.json func ExamplePrivateEndpointConnectionsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armeventhub.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionCreate.json func ExamplePrivateEndpointConnectionsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armeventhub.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", @@ -59,59 +68,75 @@ func ExamplePrivateEndpointConnectionsClient_CreateOrUpdate() { armeventhub.PrivateEndpointConnection{ Properties: &armeventhub.PrivateEndpointConnectionProperties{ PrivateEndpoint: &armeventhub.PrivateEndpoint{ - ID: to.StringPtr(""), + ID: to.Ptr(""), }, PrivateLinkServiceConnectionState: &armeventhub.ConnectionState{ - Description: to.StringPtr(""), - Status: armeventhub.PrivateLinkConnectionStatus("Rejected").ToPtr(), + Description: to.Ptr(""), + Status: to.Ptr(armeventhub.PrivateLinkConnectionStatusRejected), }, - ProvisioningState: armeventhub.EndPointProvisioningState("Succeeded").ToPtr(), + ProvisioningState: to.Ptr(armeventhub.EndPointProvisioningStateSucceeded), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionDelete.json func ExamplePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armeventhub.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", "", - nil) + &armeventhub.PrivateEndpointConnectionsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionGet.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armeventhub.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_privatelinkresources_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_privatelinkresources_client_test.go index 822e090dbc5e..8ab11357edff 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_privatelinkresources_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_privatelinkresources_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,20 +16,27 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateLinkResourcesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/NameSpaces/PrivateLinkResourcesGet.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewPrivateLinkResourcesClient("", cred, nil) + client, err := armeventhub.NewPrivateLinkResourcesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateLinkResourcesClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_schemaregistry_client_test.go b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_schemaregistry_client_test.go index 62a44c85f027..3632ec1c699f 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_schemaregistry_client_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/ze_generated_example_schemaregistry_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -12,45 +12,55 @@ import ( "context" "log" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" ) -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/SchemaRegistry/SchemaRegistryListByNamespace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/SchemaRegistry/SchemaRegistryListByNamespace.json func ExampleSchemaRegistryClient_ListByNamespace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewSchemaRegistryClient("", cred, nil) + client, err := armeventhub.NewSchemaRegistryClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByNamespace("", "", &armeventhub.SchemaRegistryClientListByNamespaceOptions{Skip: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/SchemaRegistry/SchemaRegistryCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/SchemaRegistry/SchemaRegistryCreate.json func ExampleSchemaRegistryClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewSchemaRegistryClient("", cred, nil) + client, err := armeventhub.NewSchemaRegistryClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", @@ -58,50 +68,65 @@ func ExampleSchemaRegistryClient_CreateOrUpdate() { armeventhub.SchemaGroup{ Properties: &armeventhub.SchemaGroupProperties{ GroupProperties: map[string]*string{}, - SchemaCompatibility: armeventhub.SchemaCompatibility("Forward").ToPtr(), - SchemaType: armeventhub.SchemaType("Avro").ToPtr(), + SchemaCompatibility: to.Ptr(armeventhub.SchemaCompatibilityForward), + SchemaType: to.Ptr(armeventhub.SchemaTypeAvro), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SchemaRegistryClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/SchemaRegistry/SchemaRegistryDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/SchemaRegistry/SchemaRegistryDelete.json func ExampleSchemaRegistryClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewSchemaRegistryClient("", cred, nil) + client, err := armeventhub.NewSchemaRegistryClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/SchemaRegistry/SchemaRegistryGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2021-11-01/examples/SchemaRegistry/SchemaRegistryGet.json func ExampleSchemaRegistryClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armeventhub.NewSchemaRegistryClient("", cred, nil) + client, err := armeventhub.NewSchemaRegistryClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SchemaRegistryClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_clusters_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_clusters_client.go index 58ddffcbdfb5..ab22a00ff289 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_clusters_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_clusters_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type ClustersClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewClustersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ClustersClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewClustersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClustersClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ClustersClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // BeginCreateOrUpdate - Creates or updates an instance of an Event Hubs Cluster. @@ -57,22 +62,16 @@ func NewClustersClient(subscriptionID string, credential azcore.TokenCredential, // parameters - Parameters for creating a eventhub cluster resource. // options - ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate // method. -func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster, options *ClustersClientBeginCreateOrUpdateOptions) (ClustersClientCreateOrUpdatePollerResponse, error) { - resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, parameters, options) - if err != nil { - return ClustersClientCreateOrUpdatePollerResponse{}, err - } - result := ClustersClientCreateOrUpdatePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ClustersClient.CreateOrUpdate", "", resp, client.pl) - if err != nil { - return ClustersClientCreateOrUpdatePollerResponse{}, err - } - result.Poller = &ClustersClientCreateOrUpdatePoller{ - pt: pt, +func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster, options *ClustersClientBeginCreateOrUpdateOptions) (*armruntime.Poller[ClustersClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ClustersClientCreateOrUpdateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ClustersClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) } - return result, nil } // CreateOrUpdate - Creates or updates an instance of an Event Hubs Cluster. @@ -123,22 +122,16 @@ func (client *ClustersClient) createOrUpdateCreateRequest(ctx context.Context, r // resourceGroupName - Name of the resource group within the azure subscription. // clusterName - The name of the Event Hubs Cluster. // options - ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method. -func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeleteOptions) (ClustersClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, options) - if err != nil { - return ClustersClientDeletePollerResponse{}, err - } - result := ClustersClientDeletePollerResponse{ - RawResponse: resp, +func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeleteOptions) (*armruntime.Poller[ClustersClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ClustersClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ClustersClientDeleteResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("ClustersClient.Delete", "", resp, client.pl) - if err != nil { - return ClustersClientDeletePollerResponse{}, err - } - result.Poller = &ClustersClientDeletePoller{ - pt: pt, - } - return result, nil } // Delete - Deletes an existing Event Hubs Cluster. This operation is idempotent. @@ -232,7 +225,7 @@ func (client *ClustersClient) getCreateRequest(ctx context.Context, resourceGrou // getHandleResponse handles the Get response. func (client *ClustersClient) getHandleResponse(resp *http.Response) (ClustersClientGetResponse, error) { - result := ClustersClientGetResponse{RawResponse: resp} + result := ClustersClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Cluster); err != nil { return ClustersClientGetResponse{}, err } @@ -278,7 +271,7 @@ func (client *ClustersClient) listAvailableClusterRegionCreateRequest(ctx contex // listAvailableClusterRegionHandleResponse handles the ListAvailableClusterRegion response. func (client *ClustersClient) listAvailableClusterRegionHandleResponse(resp *http.Response) (ClustersClientListAvailableClusterRegionResponse, error) { - result := ClustersClientListAvailableClusterRegionResponse{RawResponse: resp} + result := ClustersClientListAvailableClusterRegionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AvailableClustersList); err != nil { return ClustersClientListAvailableClusterRegionResponse{}, err } @@ -290,16 +283,32 @@ func (client *ClustersClient) listAvailableClusterRegionHandleResponse(resp *htt // resourceGroupName - Name of the resource group within the azure subscription. // options - ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.ListByResourceGroup // method. -func (client *ClustersClient) ListByResourceGroup(resourceGroupName string, options *ClustersClientListByResourceGroupOptions) *ClustersClientListByResourceGroupPager { - return &ClustersClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *ClustersClient) ListByResourceGroup(resourceGroupName string, options *ClustersClientListByResourceGroupOptions) *runtime.Pager[ClustersClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[ClustersClientListByResourceGroupResponse]{ + More: func(page ClustersClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ClustersClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ClusterListResult.NextLink) + Fetcher: func(ctx context.Context, page *ClustersClientListByResourceGroupResponse) (ClustersClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ClustersClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClustersClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClustersClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -326,7 +335,7 @@ func (client *ClustersClient) listByResourceGroupCreateRequest(ctx context.Conte // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *ClustersClient) listByResourceGroupHandleResponse(resp *http.Response) (ClustersClientListByResourceGroupResponse, error) { - result := ClustersClientListByResourceGroupResponse{RawResponse: resp} + result := ClustersClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ClusterListResult); err != nil { return ClustersClientListByResourceGroupResponse{}, err } @@ -337,16 +346,32 @@ func (client *ClustersClient) listByResourceGroupHandleResponse(resp *http.Respo // If the operation fails it returns an *azcore.ResponseError type. // options - ClustersClientListBySubscriptionOptions contains the optional parameters for the ClustersClient.ListBySubscription // method. -func (client *ClustersClient) ListBySubscription(options *ClustersClientListBySubscriptionOptions) *ClustersClientListBySubscriptionPager { - return &ClustersClientListBySubscriptionPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBySubscriptionCreateRequest(ctx, options) +func (client *ClustersClient) ListBySubscription(options *ClustersClientListBySubscriptionOptions) *runtime.Pager[ClustersClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PageProcessor[ClustersClientListBySubscriptionResponse]{ + More: func(page ClustersClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ClustersClientListBySubscriptionResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ClusterListResult.NextLink) + Fetcher: func(ctx context.Context, page *ClustersClientListBySubscriptionResponse) (ClustersClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ClustersClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClustersClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClustersClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) }, - } + }) } // listBySubscriptionCreateRequest creates the ListBySubscription request. @@ -369,7 +394,7 @@ func (client *ClustersClient) listBySubscriptionCreateRequest(ctx context.Contex // listBySubscriptionHandleResponse handles the ListBySubscription response. func (client *ClustersClient) listBySubscriptionHandleResponse(resp *http.Response) (ClustersClientListBySubscriptionResponse, error) { - result := ClustersClientListBySubscriptionResponse{RawResponse: resp} + result := ClustersClientListBySubscriptionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ClusterListResult); err != nil { return ClustersClientListBySubscriptionResponse{}, err } @@ -424,7 +449,7 @@ func (client *ClustersClient) listNamespacesCreateRequest(ctx context.Context, r // listNamespacesHandleResponse handles the ListNamespaces response. func (client *ClustersClient) listNamespacesHandleResponse(resp *http.Response) (ClustersClientListNamespacesResponse, error) { - result := ClustersClientListNamespacesResponse{RawResponse: resp} + result := ClustersClientListNamespacesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.EHNamespaceIDListResult); err != nil { return ClustersClientListNamespacesResponse{}, err } @@ -437,22 +462,16 @@ func (client *ClustersClient) listNamespacesHandleResponse(resp *http.Response) // clusterName - The name of the Event Hubs Cluster. // parameters - The properties of the Event Hubs Cluster which should be updated. // options - ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method. -func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster, options *ClustersClientBeginUpdateOptions) (ClustersClientUpdatePollerResponse, error) { - resp, err := client.update(ctx, resourceGroupName, clusterName, parameters, options) - if err != nil { - return ClustersClientUpdatePollerResponse{}, err +func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster, options *ClustersClientBeginUpdateOptions) (*armruntime.Poller[ClustersClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, clusterName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ClustersClientUpdateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ClustersClientUpdateResponse](options.ResumeToken, client.pl, nil) } - result := ClustersClientUpdatePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ClustersClient.Update", "", resp, client.pl) - if err != nil { - return ClustersClientUpdatePollerResponse{}, err - } - result.Poller = &ClustersClientUpdatePoller{ - pt: pt, - } - return result, nil } // Update - Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent. diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_configuration_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_configuration_client.go index 373e9f95cde6..3f3b68c9573c 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_configuration_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_configuration_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type ConfigurationClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ConfigurationClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConfigurationClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ConfigurationClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // Get - Get all Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings imposed @@ -99,7 +104,7 @@ func (client *ConfigurationClient) getCreateRequest(ctx context.Context, resourc // getHandleResponse handles the Get response. func (client *ConfigurationClient) getHandleResponse(resp *http.Response) (ConfigurationClientGetResponse, error) { - result := ConfigurationClientGetResponse{RawResponse: resp} + result := ConfigurationClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ClusterQuotaConfigurationProperties); err != nil { return ConfigurationClientGetResponse{}, err } @@ -156,7 +161,7 @@ func (client *ConfigurationClient) patchCreateRequest(ctx context.Context, resou // patchHandleResponse handles the Patch response. func (client *ConfigurationClient) patchHandleResponse(resp *http.Response) (ConfigurationClientPatchResponse, error) { - result := ConfigurationClientPatchResponse{RawResponse: resp} + result := ConfigurationClientPatchResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ClusterQuotaConfigurationProperties); err != nil { return ConfigurationClientPatchResponse{}, err } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_constants.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_constants.go index 5c2919488aa4..cfcd9320fdbd 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_constants.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armeventhub const ( moduleName = "armeventhub" - moduleVersion = "v0.3.1" + moduleVersion = "v0.4.0" ) type AccessRights string @@ -30,11 +30,6 @@ func PossibleAccessRightsValues() []AccessRights { } } -// ToPtr returns a *AccessRights pointing to the current value. -func (c AccessRights) ToPtr() *AccessRights { - return &c -} - // ClusterSKUName - Name of this SKU. type ClusterSKUName string @@ -49,11 +44,6 @@ func PossibleClusterSKUNameValues() []ClusterSKUName { } } -// ToPtr returns a *ClusterSKUName pointing to the current value. -func (c ClusterSKUName) ToPtr() *ClusterSKUName { - return &c -} - // CreatedByType - The type of identity that created the resource. type CreatedByType string @@ -74,11 +64,6 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// ToPtr returns a *CreatedByType pointing to the current value. -func (c CreatedByType) ToPtr() *CreatedByType { - return &c -} - // DefaultAction - Default Action for Network Rule Set type DefaultAction string @@ -95,11 +80,6 @@ func PossibleDefaultActionValues() []DefaultAction { } } -// ToPtr returns a *DefaultAction pointing to the current value. -func (c DefaultAction) ToPtr() *DefaultAction { - return &c -} - // EncodingCaptureDescription - Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' // will be deprecated in New API Version type EncodingCaptureDescription string @@ -117,11 +97,6 @@ func PossibleEncodingCaptureDescriptionValues() []EncodingCaptureDescription { } } -// ToPtr returns a *EncodingCaptureDescription pointing to the current value. -func (c EncodingCaptureDescription) ToPtr() *EncodingCaptureDescription { - return &c -} - // EndPointProvisioningState - Provisioning state of the Private Endpoint Connection. type EndPointProvisioningState string @@ -146,11 +121,6 @@ func PossibleEndPointProvisioningStateValues() []EndPointProvisioningState { } } -// ToPtr returns a *EndPointProvisioningState pointing to the current value. -func (c EndPointProvisioningState) ToPtr() *EndPointProvisioningState { - return &c -} - // EntityStatus - Enumerates the possible values for the status of the Event Hub. type EntityStatus string @@ -181,11 +151,6 @@ func PossibleEntityStatusValues() []EntityStatus { } } -// ToPtr returns a *EntityStatus pointing to the current value. -func (c EntityStatus) ToPtr() *EntityStatus { - return &c -} - // KeyType - The access key to regenerate. type KeyType string @@ -202,11 +167,6 @@ func PossibleKeyTypeValues() []KeyType { } } -// ToPtr returns a *KeyType pointing to the current value. -func (c KeyType) ToPtr() *KeyType { - return &c -} - // ManagedServiceIdentityType - Type of managed service identity. type ManagedServiceIdentityType string @@ -227,11 +187,6 @@ func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { } } -// ToPtr returns a *ManagedServiceIdentityType pointing to the current value. -func (c ManagedServiceIdentityType) ToPtr() *ManagedServiceIdentityType { - return &c -} - // NetworkRuleIPAction - The IP Filter Action type NetworkRuleIPAction string @@ -246,11 +201,6 @@ func PossibleNetworkRuleIPActionValues() []NetworkRuleIPAction { } } -// ToPtr returns a *NetworkRuleIPAction pointing to the current value. -func (c NetworkRuleIPAction) ToPtr() *NetworkRuleIPAction { - return &c -} - // PrivateLinkConnectionStatus - Status of the connection. type PrivateLinkConnectionStatus string @@ -271,11 +221,6 @@ func PossiblePrivateLinkConnectionStatusValues() []PrivateLinkConnectionStatus { } } -// ToPtr returns a *PrivateLinkConnectionStatus pointing to the current value. -func (c PrivateLinkConnectionStatus) ToPtr() *PrivateLinkConnectionStatus { - return &c -} - // ProvisioningStateDR - Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or // 'Succeeded' or 'Failed' type ProvisioningStateDR string @@ -295,11 +240,6 @@ func PossibleProvisioningStateDRValues() []ProvisioningStateDR { } } -// ToPtr returns a *ProvisioningStateDR pointing to the current value. -func (c ProvisioningStateDR) ToPtr() *ProvisioningStateDR { - return &c -} - // PublicNetworkAccessFlag - This determines if traffic is allowed over public network. By default it is enabled. type PublicNetworkAccessFlag string @@ -316,11 +256,6 @@ func PossiblePublicNetworkAccessFlagValues() []PublicNetworkAccessFlag { } } -// ToPtr returns a *PublicNetworkAccessFlag pointing to the current value. -func (c PublicNetworkAccessFlag) ToPtr() *PublicNetworkAccessFlag { - return &c -} - // RoleDisasterRecovery - role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary' type RoleDisasterRecovery string @@ -339,11 +274,6 @@ func PossibleRoleDisasterRecoveryValues() []RoleDisasterRecovery { } } -// ToPtr returns a *RoleDisasterRecovery pointing to the current value. -func (c RoleDisasterRecovery) ToPtr() *RoleDisasterRecovery { - return &c -} - // SKUName - Name of this SKU. type SKUName string @@ -362,11 +292,6 @@ func PossibleSKUNameValues() []SKUName { } } -// ToPtr returns a *SKUName pointing to the current value. -func (c SKUName) ToPtr() *SKUName { - return &c -} - // SKUTier - The billing tier of this particular SKU. type SKUTier string @@ -385,11 +310,6 @@ func PossibleSKUTierValues() []SKUTier { } } -// ToPtr returns a *SKUTier pointing to the current value. -func (c SKUTier) ToPtr() *SKUTier { - return &c -} - type SchemaCompatibility string const ( @@ -407,11 +327,6 @@ func PossibleSchemaCompatibilityValues() []SchemaCompatibility { } } -// ToPtr returns a *SchemaCompatibility pointing to the current value. -func (c SchemaCompatibility) ToPtr() *SchemaCompatibility { - return &c -} - type SchemaType string const ( @@ -427,11 +342,6 @@ func PossibleSchemaTypeValues() []SchemaType { } } -// ToPtr returns a *SchemaType pointing to the current value. -func (c SchemaType) ToPtr() *SchemaType { - return &c -} - // UnavailableReason - Specifies the reason for the unavailability of the service. type UnavailableReason string @@ -455,8 +365,3 @@ func PossibleUnavailableReasonValues() []UnavailableReason { UnavailableReasonTooManyNamespaceInCurrentSubscription, } } - -// ToPtr returns a *UnavailableReason pointing to the current value. -func (c UnavailableReason) ToPtr() *UnavailableReason { - return &c -} diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_consumergroups_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_consumergroups_client.go index 8e7f2f0abe06..9b60a9d84c7e 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_consumergroups_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_consumergroups_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type ConsumerGroupsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewConsumerGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ConsumerGroupsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewConsumerGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConsumerGroupsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ConsumerGroupsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates or updates an Event Hubs consumer group as a nested resource within a Namespace. @@ -111,7 +116,7 @@ func (client *ConsumerGroupsClient) createOrUpdateCreateRequest(ctx context.Cont // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *ConsumerGroupsClient) createOrUpdateHandleResponse(resp *http.Response) (ConsumerGroupsClientCreateOrUpdateResponse, error) { - result := ConsumerGroupsClientCreateOrUpdateResponse{RawResponse: resp} + result := ConsumerGroupsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ConsumerGroup); err != nil { return ConsumerGroupsClientCreateOrUpdateResponse{}, err } @@ -137,7 +142,7 @@ func (client *ConsumerGroupsClient) Delete(ctx context.Context, resourceGroupNam if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ConsumerGroupsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return ConsumerGroupsClientDeleteResponse{RawResponse: resp}, nil + return ConsumerGroupsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -232,7 +237,7 @@ func (client *ConsumerGroupsClient) getCreateRequest(ctx context.Context, resour // getHandleResponse handles the Get response. func (client *ConsumerGroupsClient) getHandleResponse(resp *http.Response) (ConsumerGroupsClientGetResponse, error) { - result := ConsumerGroupsClientGetResponse{RawResponse: resp} + result := ConsumerGroupsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ConsumerGroup); err != nil { return ConsumerGroupsClientGetResponse{}, err } @@ -247,16 +252,32 @@ func (client *ConsumerGroupsClient) getHandleResponse(resp *http.Response) (Cons // eventHubName - The Event Hub name // options - ConsumerGroupsClientListByEventHubOptions contains the optional parameters for the ConsumerGroupsClient.ListByEventHub // method. -func (client *ConsumerGroupsClient) ListByEventHub(resourceGroupName string, namespaceName string, eventHubName string, options *ConsumerGroupsClientListByEventHubOptions) *ConsumerGroupsClientListByEventHubPager { - return &ConsumerGroupsClientListByEventHubPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByEventHubCreateRequest(ctx, resourceGroupName, namespaceName, eventHubName, options) +func (client *ConsumerGroupsClient) ListByEventHub(resourceGroupName string, namespaceName string, eventHubName string, options *ConsumerGroupsClientListByEventHubOptions) *runtime.Pager[ConsumerGroupsClientListByEventHubResponse] { + return runtime.NewPager(runtime.PageProcessor[ConsumerGroupsClientListByEventHubResponse]{ + More: func(page ConsumerGroupsClientListByEventHubResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ConsumerGroupsClientListByEventHubResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ConsumerGroupListResult.NextLink) + Fetcher: func(ctx context.Context, page *ConsumerGroupsClientListByEventHubResponse) (ConsumerGroupsClientListByEventHubResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByEventHubCreateRequest(ctx, resourceGroupName, namespaceName, eventHubName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ConsumerGroupsClientListByEventHubResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ConsumerGroupsClientListByEventHubResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ConsumerGroupsClientListByEventHubResponse{}, runtime.NewResponseError(resp) + } + return client.listByEventHubHandleResponse(resp) }, - } + }) } // listByEventHubCreateRequest creates the ListByEventHub request. @@ -297,7 +318,7 @@ func (client *ConsumerGroupsClient) listByEventHubCreateRequest(ctx context.Cont // listByEventHubHandleResponse handles the ListByEventHub response. func (client *ConsumerGroupsClient) listByEventHubHandleResponse(resp *http.Response) (ConsumerGroupsClientListByEventHubResponse, error) { - result := ConsumerGroupsClientListByEventHubResponse{RawResponse: resp} + result := ConsumerGroupsClientListByEventHubResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ConsumerGroupListResult); err != nil { return ConsumerGroupsClientListByEventHubResponse{}, err } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_disasterrecoveryconfigs_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_disasterrecoveryconfigs_client.go index 8530ef745792..6dbcafdcd894 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_disasterrecoveryconfigs_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_disasterrecoveryconfigs_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type DisasterRecoveryConfigsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewDisasterRecoveryConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *DisasterRecoveryConfigsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewDisasterRecoveryConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DisasterRecoveryConfigsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &DisasterRecoveryConfigsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // BreakPairing - This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces @@ -69,7 +74,7 @@ func (client *DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, r if !runtime.HasStatusCode(resp, http.StatusOK) { return DisasterRecoveryConfigsClientBreakPairingResponse{}, runtime.NewResponseError(resp) } - return DisasterRecoveryConfigsClientBreakPairingResponse{RawResponse: resp}, nil + return DisasterRecoveryConfigsClientBreakPairingResponse{}, nil } // breakPairingCreateRequest creates the BreakPairing request. @@ -152,7 +157,7 @@ func (client *DisasterRecoveryConfigsClient) checkNameAvailabilityCreateRequest( // checkNameAvailabilityHandleResponse handles the CheckNameAvailability response. func (client *DisasterRecoveryConfigsClient) checkNameAvailabilityHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientCheckNameAvailabilityResponse, error) { - result := DisasterRecoveryConfigsClientCheckNameAvailabilityResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientCheckNameAvailabilityResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.CheckNameAvailabilityResult); err != nil { return DisasterRecoveryConfigsClientCheckNameAvailabilityResponse{}, err } @@ -214,7 +219,7 @@ func (client *DisasterRecoveryConfigsClient) createOrUpdateCreateRequest(ctx con // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *DisasterRecoveryConfigsClient) createOrUpdateHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientCreateOrUpdateResponse, error) { - result := DisasterRecoveryConfigsClientCreateOrUpdateResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ArmDisasterRecovery); err != nil { return DisasterRecoveryConfigsClientCreateOrUpdateResponse{}, err } @@ -240,7 +245,7 @@ func (client *DisasterRecoveryConfigsClient) Delete(ctx context.Context, resourc if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return DisasterRecoveryConfigsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return DisasterRecoveryConfigsClientDeleteResponse{RawResponse: resp}, nil + return DisasterRecoveryConfigsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -292,7 +297,7 @@ func (client *DisasterRecoveryConfigsClient) FailOver(ctx context.Context, resou if !runtime.HasStatusCode(resp, http.StatusOK) { return DisasterRecoveryConfigsClientFailOverResponse{}, runtime.NewResponseError(resp) } - return DisasterRecoveryConfigsClientFailOverResponse{RawResponse: resp}, nil + return DisasterRecoveryConfigsClientFailOverResponse{}, nil } // failOverCreateRequest creates the FailOver request. @@ -379,7 +384,7 @@ func (client *DisasterRecoveryConfigsClient) getCreateRequest(ctx context.Contex // getHandleResponse handles the Get response. func (client *DisasterRecoveryConfigsClient) getHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientGetResponse, error) { - result := DisasterRecoveryConfigsClientGetResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ArmDisasterRecovery); err != nil { return DisasterRecoveryConfigsClientGetResponse{}, err } @@ -445,7 +450,7 @@ func (client *DisasterRecoveryConfigsClient) getAuthorizationRuleCreateRequest(c // getAuthorizationRuleHandleResponse handles the GetAuthorizationRule response. func (client *DisasterRecoveryConfigsClient) getAuthorizationRuleHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientGetAuthorizationRuleResponse, error) { - result := DisasterRecoveryConfigsClientGetAuthorizationRuleResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientGetAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AuthorizationRule); err != nil { return DisasterRecoveryConfigsClientGetAuthorizationRuleResponse{}, err } @@ -458,16 +463,32 @@ func (client *DisasterRecoveryConfigsClient) getAuthorizationRuleHandleResponse( // namespaceName - The Namespace name // options - DisasterRecoveryConfigsClientListOptions contains the optional parameters for the DisasterRecoveryConfigsClient.List // method. -func (client *DisasterRecoveryConfigsClient) List(resourceGroupName string, namespaceName string, options *DisasterRecoveryConfigsClientListOptions) *DisasterRecoveryConfigsClientListPager { - return &DisasterRecoveryConfigsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *DisasterRecoveryConfigsClient) List(resourceGroupName string, namespaceName string, options *DisasterRecoveryConfigsClientListOptions) *runtime.Pager[DisasterRecoveryConfigsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[DisasterRecoveryConfigsClientListResponse]{ + More: func(page DisasterRecoveryConfigsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp DisasterRecoveryConfigsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ArmDisasterRecoveryListResult.NextLink) + Fetcher: func(ctx context.Context, page *DisasterRecoveryConfigsClientListResponse) (DisasterRecoveryConfigsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return DisasterRecoveryConfigsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return DisasterRecoveryConfigsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DisasterRecoveryConfigsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -498,7 +519,7 @@ func (client *DisasterRecoveryConfigsClient) listCreateRequest(ctx context.Conte // listHandleResponse handles the List response. func (client *DisasterRecoveryConfigsClient) listHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientListResponse, error) { - result := DisasterRecoveryConfigsClientListResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ArmDisasterRecoveryListResult); err != nil { return DisasterRecoveryConfigsClientListResponse{}, err } @@ -512,16 +533,32 @@ func (client *DisasterRecoveryConfigsClient) listHandleResponse(resp *http.Respo // alias - The Disaster Recovery configuration name // options - DisasterRecoveryConfigsClientListAuthorizationRulesOptions contains the optional parameters for the DisasterRecoveryConfigsClient.ListAuthorizationRules // method. -func (client *DisasterRecoveryConfigsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientListAuthorizationRulesOptions) *DisasterRecoveryConfigsClientListAuthorizationRulesPager { - return &DisasterRecoveryConfigsClientListAuthorizationRulesPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, alias, options) +func (client *DisasterRecoveryConfigsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientListAuthorizationRulesOptions) *runtime.Pager[DisasterRecoveryConfigsClientListAuthorizationRulesResponse] { + return runtime.NewPager(runtime.PageProcessor[DisasterRecoveryConfigsClientListAuthorizationRulesResponse]{ + More: func(page DisasterRecoveryConfigsClientListAuthorizationRulesResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp DisasterRecoveryConfigsClientListAuthorizationRulesResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.AuthorizationRuleListResult.NextLink) + Fetcher: func(ctx context.Context, page *DisasterRecoveryConfigsClientListAuthorizationRulesResponse) (DisasterRecoveryConfigsClientListAuthorizationRulesResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, alias, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return DisasterRecoveryConfigsClientListAuthorizationRulesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return DisasterRecoveryConfigsClientListAuthorizationRulesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DisasterRecoveryConfigsClientListAuthorizationRulesResponse{}, runtime.NewResponseError(resp) + } + return client.listAuthorizationRulesHandleResponse(resp) }, - } + }) } // listAuthorizationRulesCreateRequest creates the ListAuthorizationRules request. @@ -556,7 +593,7 @@ func (client *DisasterRecoveryConfigsClient) listAuthorizationRulesCreateRequest // listAuthorizationRulesHandleResponse handles the ListAuthorizationRules response. func (client *DisasterRecoveryConfigsClient) listAuthorizationRulesHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientListAuthorizationRulesResponse, error) { - result := DisasterRecoveryConfigsClientListAuthorizationRulesResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientListAuthorizationRulesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AuthorizationRuleListResult); err != nil { return DisasterRecoveryConfigsClientListAuthorizationRulesResponse{}, err } @@ -622,7 +659,7 @@ func (client *DisasterRecoveryConfigsClient) listKeysCreateRequest(ctx context.C // listKeysHandleResponse handles the ListKeys response. func (client *DisasterRecoveryConfigsClient) listKeysHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientListKeysResponse, error) { - result := DisasterRecoveryConfigsClientListKeysResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientListKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return DisasterRecoveryConfigsClientListKeysResponse{}, err } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_eventhubs_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_eventhubs_client.go index 625adbbf5e68..274064e056d8 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_eventhubs_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_eventhubs_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type EventHubsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewEventHubsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *EventHubsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewEventHubsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EventHubsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &EventHubsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates or updates a new Event Hub as a nested resource within a Namespace. @@ -106,7 +111,7 @@ func (client *EventHubsClient) createOrUpdateCreateRequest(ctx context.Context, // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *EventHubsClient) createOrUpdateHandleResponse(resp *http.Response) (EventHubsClientCreateOrUpdateResponse, error) { - result := EventHubsClientCreateOrUpdateResponse{RawResponse: resp} + result := EventHubsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Eventhub); err != nil { return EventHubsClientCreateOrUpdateResponse{}, err } @@ -174,7 +179,7 @@ func (client *EventHubsClient) createOrUpdateAuthorizationRuleCreateRequest(ctx // createOrUpdateAuthorizationRuleHandleResponse handles the CreateOrUpdateAuthorizationRule response. func (client *EventHubsClient) createOrUpdateAuthorizationRuleHandleResponse(resp *http.Response) (EventHubsClientCreateOrUpdateAuthorizationRuleResponse, error) { - result := EventHubsClientCreateOrUpdateAuthorizationRuleResponse{RawResponse: resp} + result := EventHubsClientCreateOrUpdateAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AuthorizationRule); err != nil { return EventHubsClientCreateOrUpdateAuthorizationRuleResponse{}, err } @@ -199,7 +204,7 @@ func (client *EventHubsClient) Delete(ctx context.Context, resourceGroupName str if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return EventHubsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return EventHubsClientDeleteResponse{RawResponse: resp}, nil + return EventHubsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -252,7 +257,7 @@ func (client *EventHubsClient) DeleteAuthorizationRule(ctx context.Context, reso if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return EventHubsClientDeleteAuthorizationRuleResponse{}, runtime.NewResponseError(resp) } - return EventHubsClientDeleteAuthorizationRuleResponse{RawResponse: resp}, nil + return EventHubsClientDeleteAuthorizationRuleResponse{}, nil } // deleteAuthorizationRuleCreateRequest creates the DeleteAuthorizationRule request. @@ -342,7 +347,7 @@ func (client *EventHubsClient) getCreateRequest(ctx context.Context, resourceGro // getHandleResponse handles the Get response. func (client *EventHubsClient) getHandleResponse(resp *http.Response) (EventHubsClientGetResponse, error) { - result := EventHubsClientGetResponse{RawResponse: resp} + result := EventHubsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Eventhub); err != nil { return EventHubsClientGetResponse{}, err } @@ -408,7 +413,7 @@ func (client *EventHubsClient) getAuthorizationRuleCreateRequest(ctx context.Con // getAuthorizationRuleHandleResponse handles the GetAuthorizationRule response. func (client *EventHubsClient) getAuthorizationRuleHandleResponse(resp *http.Response) (EventHubsClientGetAuthorizationRuleResponse, error) { - result := EventHubsClientGetAuthorizationRuleResponse{RawResponse: resp} + result := EventHubsClientGetAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AuthorizationRule); err != nil { return EventHubsClientGetAuthorizationRuleResponse{}, err } @@ -422,16 +427,32 @@ func (client *EventHubsClient) getAuthorizationRuleHandleResponse(resp *http.Res // eventHubName - The Event Hub name // options - EventHubsClientListAuthorizationRulesOptions contains the optional parameters for the EventHubsClient.ListAuthorizationRules // method. -func (client *EventHubsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, eventHubName string, options *EventHubsClientListAuthorizationRulesOptions) *EventHubsClientListAuthorizationRulesPager { - return &EventHubsClientListAuthorizationRulesPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, eventHubName, options) +func (client *EventHubsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, eventHubName string, options *EventHubsClientListAuthorizationRulesOptions) *runtime.Pager[EventHubsClientListAuthorizationRulesResponse] { + return runtime.NewPager(runtime.PageProcessor[EventHubsClientListAuthorizationRulesResponse]{ + More: func(page EventHubsClientListAuthorizationRulesResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp EventHubsClientListAuthorizationRulesResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.AuthorizationRuleListResult.NextLink) + Fetcher: func(ctx context.Context, page *EventHubsClientListAuthorizationRulesResponse) (EventHubsClientListAuthorizationRulesResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, eventHubName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return EventHubsClientListAuthorizationRulesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return EventHubsClientListAuthorizationRulesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return EventHubsClientListAuthorizationRulesResponse{}, runtime.NewResponseError(resp) + } + return client.listAuthorizationRulesHandleResponse(resp) }, - } + }) } // listAuthorizationRulesCreateRequest creates the ListAuthorizationRules request. @@ -466,7 +487,7 @@ func (client *EventHubsClient) listAuthorizationRulesCreateRequest(ctx context.C // listAuthorizationRulesHandleResponse handles the ListAuthorizationRules response. func (client *EventHubsClient) listAuthorizationRulesHandleResponse(resp *http.Response) (EventHubsClientListAuthorizationRulesResponse, error) { - result := EventHubsClientListAuthorizationRulesResponse{RawResponse: resp} + result := EventHubsClientListAuthorizationRulesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AuthorizationRuleListResult); err != nil { return EventHubsClientListAuthorizationRulesResponse{}, err } @@ -479,16 +500,32 @@ func (client *EventHubsClient) listAuthorizationRulesHandleResponse(resp *http.R // namespaceName - The Namespace name // options - EventHubsClientListByNamespaceOptions contains the optional parameters for the EventHubsClient.ListByNamespace // method. -func (client *EventHubsClient) ListByNamespace(resourceGroupName string, namespaceName string, options *EventHubsClientListByNamespaceOptions) *EventHubsClientListByNamespacePager { - return &EventHubsClientListByNamespacePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByNamespaceCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *EventHubsClient) ListByNamespace(resourceGroupName string, namespaceName string, options *EventHubsClientListByNamespaceOptions) *runtime.Pager[EventHubsClientListByNamespaceResponse] { + return runtime.NewPager(runtime.PageProcessor[EventHubsClientListByNamespaceResponse]{ + More: func(page EventHubsClientListByNamespaceResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp EventHubsClientListByNamespaceResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ListResult.NextLink) + Fetcher: func(ctx context.Context, page *EventHubsClientListByNamespaceResponse) (EventHubsClientListByNamespaceResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByNamespaceCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return EventHubsClientListByNamespaceResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return EventHubsClientListByNamespaceResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return EventHubsClientListByNamespaceResponse{}, runtime.NewResponseError(resp) + } + return client.listByNamespaceHandleResponse(resp) }, - } + }) } // listByNamespaceCreateRequest creates the ListByNamespace request. @@ -525,7 +562,7 @@ func (client *EventHubsClient) listByNamespaceCreateRequest(ctx context.Context, // listByNamespaceHandleResponse handles the ListByNamespace response. func (client *EventHubsClient) listByNamespaceHandleResponse(resp *http.Response) (EventHubsClientListByNamespaceResponse, error) { - result := EventHubsClientListByNamespaceResponse{RawResponse: resp} + result := EventHubsClientListByNamespaceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListResult); err != nil { return EventHubsClientListByNamespaceResponse{}, err } @@ -590,7 +627,7 @@ func (client *EventHubsClient) listKeysCreateRequest(ctx context.Context, resour // listKeysHandleResponse handles the ListKeys response. func (client *EventHubsClient) listKeysHandleResponse(resp *http.Response) (EventHubsClientListKeysResponse, error) { - result := EventHubsClientListKeysResponse{RawResponse: resp} + result := EventHubsClientListKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return EventHubsClientListKeysResponse{}, err } @@ -657,7 +694,7 @@ func (client *EventHubsClient) regenerateKeysCreateRequest(ctx context.Context, // regenerateKeysHandleResponse handles the RegenerateKeys response. func (client *EventHubsClient) regenerateKeysHandleResponse(resp *http.Response) (EventHubsClientRegenerateKeysResponse, error) { - result := EventHubsClientRegenerateKeysResponse{RawResponse: resp} + result := EventHubsClientRegenerateKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return EventHubsClientRegenerateKeysResponse{}, err } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_models.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_models.go index de059c8db5dd..254ed286e997 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_models.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,7 @@ package armeventhub -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) +import "time" // AccessKeys - Namespace/EventHub Connection String type AccessKeys struct { @@ -69,14 +64,6 @@ type ArmDisasterRecoveryListResult struct { NextLink *string `json:"nextLink,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ArmDisasterRecoveryListResult. -func (a ArmDisasterRecoveryListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", a.NextLink) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - // ArmDisasterRecoveryProperties - Properties required to the Create Or Update Alias(Disaster Recovery configurations) type ArmDisasterRecoveryProperties struct { // Alternate name specified when alias and namespace names are same. @@ -126,27 +113,12 @@ type AuthorizationRuleListResult struct { Value []*AuthorizationRule `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type AuthorizationRuleListResult. -func (a AuthorizationRuleListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", a.NextLink) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - // AuthorizationRuleProperties - Properties supplied to create or update AuthorizationRule type AuthorizationRuleProperties struct { // REQUIRED; The rights associated with the rule. Rights []*AccessRights `json:"rights,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type AuthorizationRuleProperties. -func (a AuthorizationRuleProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "rights", a.Rights) - return json.Marshal(objectMap) -} - // AvailableCluster - Pre-provisioned and readily available Event Hubs Cluster count per region. type AvailableCluster struct { // Location fo the Available Cluster @@ -159,13 +131,6 @@ type AvailableClustersList struct { Value []*AvailableCluster `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type AvailableClustersList. -func (a AvailableClustersList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - // CaptureDescription - Properties to configure capture description for eventhub type CaptureDescription struct { // Properties of Destination where capture will be stored. (Storage Account, Blob Names) @@ -235,20 +200,6 @@ type Cluster struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Cluster. -func (c Cluster) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", c.ID) - populate(objectMap, "location", c.Location) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "sku", c.SKU) - populate(objectMap, "systemData", c.SystemData) - populate(objectMap, "tags", c.Tags) - populate(objectMap, "type", c.Type) - return json.Marshal(objectMap) -} - // ClusterListResult - The response of the List Event Hubs Clusters operation. type ClusterListResult struct { // Link to the next set of results. Empty unless the value parameter contains an incomplete list of Event Hubs Clusters. @@ -258,14 +209,6 @@ type ClusterListResult struct { Value []*Cluster `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ClusterListResult. -func (c ClusterListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", c.NextLink) - populate(objectMap, "value", c.Value) - return json.Marshal(objectMap) -} - // ClusterProperties - Event Hubs Cluster properties supplied in responses in List or Get operations. type ClusterProperties struct { // READ-ONLY; The UTC time when the Event Hubs Cluster was created. @@ -288,13 +231,6 @@ type ClusterQuotaConfigurationProperties struct { Settings map[string]*string `json:"settings,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ClusterQuotaConfigurationProperties. -func (c ClusterQuotaConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "settings", c.Settings) - return json.Marshal(objectMap) -} - // ClusterSKU - SKU parameters particular to a cluster instance. type ClusterSKU struct { // REQUIRED; Name of this SKU. @@ -306,17 +242,20 @@ type ClusterSKU struct { // ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate method. type ClustersClientBeginCreateOrUpdateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method. type ClustersClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method. type ClustersClientBeginUpdateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method. @@ -394,14 +333,6 @@ type ConsumerGroupListResult struct { Value []*ConsumerGroup `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ConsumerGroupListResult. -func (c ConsumerGroupListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", c.NextLink) - populate(objectMap, "value", c.Value) - return json.Marshal(objectMap) -} - // ConsumerGroupProperties - Single item in List or Get Consumer group operation type ConsumerGroupProperties struct { // User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store @@ -416,41 +347,6 @@ type ConsumerGroupProperties struct { UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ConsumerGroupProperties. -func (c ConsumerGroupProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", c.CreatedAt) - populateTimeRFC3339(objectMap, "updatedAt", c.UpdatedAt) - populate(objectMap, "userMetadata", c.UserMetadata) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ConsumerGroupProperties. -func (c *ConsumerGroupProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, &c.CreatedAt) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, &c.UpdatedAt) - delete(rawMsg, key) - case "userMetadata": - err = unpopulate(val, &c.UserMetadata) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ConsumerGroupsClientCreateOrUpdateOptions contains the optional parameters for the ConsumerGroupsClient.CreateOrUpdate // method. type ConsumerGroupsClientCreateOrUpdateOptions struct { @@ -598,21 +494,6 @@ type EHNamespace struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type EHNamespace. -func (e EHNamespace) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", e.ID) - populate(objectMap, "identity", e.Identity) - populate(objectMap, "location", e.Location) - populate(objectMap, "name", e.Name) - populate(objectMap, "properties", e.Properties) - populate(objectMap, "sku", e.SKU) - populate(objectMap, "systemData", e.SystemData) - populate(objectMap, "tags", e.Tags) - populate(objectMap, "type", e.Type) - return json.Marshal(objectMap) -} - // EHNamespaceIDContainer - The full ARM ID of an Event Hubs Namespace type EHNamespaceIDContainer struct { // id parameter @@ -625,13 +506,6 @@ type EHNamespaceIDListResult struct { Value []*EHNamespaceIDContainer `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type EHNamespaceIDListResult. -func (e EHNamespaceIDListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", e.Value) - return json.Marshal(objectMap) -} - // EHNamespaceListResult - The response of the List Namespace operation type EHNamespaceListResult struct { // Link to the next set of results. Not empty if Value contains incomplete list of namespaces. @@ -641,14 +515,6 @@ type EHNamespaceListResult struct { Value []*EHNamespace `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type EHNamespaceListResult. -func (e EHNamespaceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", e.NextLink) - populate(objectMap, "value", e.Value) - return json.Marshal(objectMap) -} - // EHNamespaceProperties - Namespace properties supplied for create namespace operation. type EHNamespaceProperties struct { // Alternate name specified when alias and namespace names are same. @@ -698,89 +564,6 @@ type EHNamespaceProperties struct { UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type EHNamespaceProperties. -func (e EHNamespaceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "alternateName", e.AlternateName) - populate(objectMap, "clusterArmId", e.ClusterArmID) - populateTimeRFC3339(objectMap, "createdAt", e.CreatedAt) - populate(objectMap, "disableLocalAuth", e.DisableLocalAuth) - populate(objectMap, "encryption", e.Encryption) - populate(objectMap, "isAutoInflateEnabled", e.IsAutoInflateEnabled) - populate(objectMap, "kafkaEnabled", e.KafkaEnabled) - populate(objectMap, "maximumThroughputUnits", e.MaximumThroughputUnits) - populate(objectMap, "metricId", e.MetricID) - populate(objectMap, "privateEndpointConnections", e.PrivateEndpointConnections) - populate(objectMap, "provisioningState", e.ProvisioningState) - populate(objectMap, "serviceBusEndpoint", e.ServiceBusEndpoint) - populate(objectMap, "status", e.Status) - populateTimeRFC3339(objectMap, "updatedAt", e.UpdatedAt) - populate(objectMap, "zoneRedundant", e.ZoneRedundant) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EHNamespaceProperties. -func (e *EHNamespaceProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "alternateName": - err = unpopulate(val, &e.AlternateName) - delete(rawMsg, key) - case "clusterArmId": - err = unpopulate(val, &e.ClusterArmID) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, &e.CreatedAt) - delete(rawMsg, key) - case "disableLocalAuth": - err = unpopulate(val, &e.DisableLocalAuth) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, &e.Encryption) - delete(rawMsg, key) - case "isAutoInflateEnabled": - err = unpopulate(val, &e.IsAutoInflateEnabled) - delete(rawMsg, key) - case "kafkaEnabled": - err = unpopulate(val, &e.KafkaEnabled) - delete(rawMsg, key) - case "maximumThroughputUnits": - err = unpopulate(val, &e.MaximumThroughputUnits) - delete(rawMsg, key) - case "metricId": - err = unpopulate(val, &e.MetricID) - delete(rawMsg, key) - case "privateEndpointConnections": - err = unpopulate(val, &e.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, &e.ProvisioningState) - delete(rawMsg, key) - case "serviceBusEndpoint": - err = unpopulate(val, &e.ServiceBusEndpoint) - delete(rawMsg, key) - case "status": - err = unpopulate(val, &e.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, &e.UpdatedAt) - delete(rawMsg, key) - case "zoneRedundant": - err = unpopulate(val, &e.ZoneRedundant) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // Encryption - Properties to configure Encryption type Encryption struct { // Enumerates the possible value of keySource for Encryption @@ -793,19 +576,10 @@ type Encryption struct { RequireInfrastructureEncryption *bool `json:"requireInfrastructureEncryption,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type Encryption. -func (e Encryption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "keySource", e.KeySource) - populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) - populate(objectMap, "requireInfrastructureEncryption", e.RequireInfrastructureEncryption) - return json.Marshal(objectMap) -} - // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info map[string]interface{} `json:"info,omitempty" azure:"ro"` + Info interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -829,17 +603,6 @@ type ErrorDetail struct { Target *string `json:"target,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ErrorDetail. -func (e ErrorDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalInfo", e.AdditionalInfo) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "message", e.Message) - populate(objectMap, "target", e.Target) - return json.Marshal(objectMap) -} - // ErrorResponse - Error response indicates Event Hub service is not able to process the incoming request. The reason is provided // in the error message. type ErrorResponse struct { @@ -942,16 +705,6 @@ type Identity struct { TenantID *string `json:"tenantId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Identity. -func (i Identity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", i.PrincipalID) - populate(objectMap, "tenantId", i.TenantID) - populate(objectMap, "type", i.Type) - populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) - return json.Marshal(objectMap) -} - // KeyVaultProperties - Properties to configure keyVault Properties type KeyVaultProperties struct { Identity *UserAssignedIdentityProperties `json:"identity,omitempty"` @@ -975,14 +728,6 @@ type ListResult struct { Value []*Eventhub `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ListResult. -func (l ListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", l.NextLink) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - // NWRuleSetIPRules - The response from the List namespace operation. type NWRuleSetIPRules struct { // The IP Filter Action @@ -1004,12 +749,14 @@ type NWRuleSetVirtualNetworkRules struct { // NamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespacesClient.BeginCreateOrUpdate // method. type NamespacesClientBeginCreateOrUpdateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // NamespacesClientBeginDeleteOptions contains the optional parameters for the NamespacesClient.BeginDelete method. type NamespacesClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // NamespacesClientCheckNameAvailabilityOptions contains the optional parameters for the NamespacesClient.CheckNameAvailability @@ -1120,14 +867,6 @@ type NetworkRuleSetListResult struct { Value []*NetworkRuleSet `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetListResult. -func (n NetworkRuleSetListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", n.NextLink) - populate(objectMap, "value", n.Value) - return json.Marshal(objectMap) -} - // NetworkRuleSetProperties - NetworkRuleSet properties type NetworkRuleSetProperties struct { // Default Action for Network Rule Set @@ -1146,17 +885,6 @@ type NetworkRuleSetProperties struct { VirtualNetworkRules []*NWRuleSetVirtualNetworkRules `json:"virtualNetworkRules,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetProperties. -func (n NetworkRuleSetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "defaultAction", n.DefaultAction) - populate(objectMap, "ipRules", n.IPRules) - populate(objectMap, "publicNetworkAccess", n.PublicNetworkAccess) - populate(objectMap, "trustedServiceAccessEnabled", n.TrustedServiceAccessEnabled) - populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) - return json.Marshal(objectMap) -} - // Operation - A Event Hub REST API operation type Operation struct { // Display of the operation @@ -1169,7 +897,7 @@ type Operation struct { Origin *string `json:"origin,omitempty"` // Properties of the operation - Properties map[string]interface{} `json:"properties,omitempty"` + Properties interface{} `json:"properties,omitempty"` // READ-ONLY; Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty" azure:"ro"` @@ -1200,14 +928,6 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. type OperationsClientListOptions struct { // placeholder for future optional parameters @@ -1249,14 +969,6 @@ type PrivateEndpointConnectionListResult struct { Value []*PrivateEndpointConnection `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. -func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - // PrivateEndpointConnectionProperties - Properties of the private endpoint connection resource. type PrivateEndpointConnectionProperties struct { // The Private Endpoint resource for this Connection. @@ -1272,7 +984,8 @@ type PrivateEndpointConnectionProperties struct { // PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete // method. type PrivateEndpointConnectionsClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // PrivateEndpointConnectionsClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.CreateOrUpdate @@ -1320,15 +1033,6 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. -func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "groupId", p.GroupID) - populate(objectMap, "requiredMembers", p.RequiredMembers) - populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) - return json.Marshal(objectMap) -} - // PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method. type PrivateLinkResourcesClientGetOptions struct { // placeholder for future optional parameters @@ -1343,14 +1047,6 @@ type PrivateLinkResourcesListResult struct { Value []*PrivateLinkResource `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesListResult. -func (p PrivateLinkResourcesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - // Properties supplied to the Create Or Update Event Hub operation. type Properties struct { // Properties of capture description @@ -1375,57 +1071,6 @@ type Properties struct { UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Properties. -func (p Properties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "captureDescription", p.CaptureDescription) - populateTimeRFC3339(objectMap, "createdAt", p.CreatedAt) - populate(objectMap, "messageRetentionInDays", p.MessageRetentionInDays) - populate(objectMap, "partitionCount", p.PartitionCount) - populate(objectMap, "partitionIds", p.PartitionIDs) - populate(objectMap, "status", p.Status) - populateTimeRFC3339(objectMap, "updatedAt", p.UpdatedAt) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Properties. -func (p *Properties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "captureDescription": - err = unpopulate(val, &p.CaptureDescription) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, &p.CreatedAt) - delete(rawMsg, key) - case "messageRetentionInDays": - err = unpopulate(val, &p.MessageRetentionInDays) - delete(rawMsg, key) - case "partitionCount": - err = unpopulate(val, &p.PartitionCount) - delete(rawMsg, key) - case "partitionIds": - err = unpopulate(val, &p.PartitionIDs) - delete(rawMsg, key) - case "status": - err = unpopulate(val, &p.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, &p.UpdatedAt) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ProxyResource - Common fields that are returned in the response for all Azure Resource Manager resources type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -1505,14 +1150,6 @@ type SchemaGroupListResult struct { Value []*SchemaGroup `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SchemaGroupListResult. -func (s SchemaGroupListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - type SchemaGroupProperties struct { // dictionary object for SchemaGroup group properties GroupProperties map[string]*string `json:"groupProperties,omitempty"` @@ -1529,53 +1166,6 @@ type SchemaGroupProperties struct { UpdatedAtUTC *time.Time `json:"updatedAtUtc,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SchemaGroupProperties. -func (s SchemaGroupProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAtUtc", s.CreatedAtUTC) - populate(objectMap, "eTag", s.ETag) - populate(objectMap, "groupProperties", s.GroupProperties) - populate(objectMap, "schemaCompatibility", s.SchemaCompatibility) - populate(objectMap, "schemaType", s.SchemaType) - populateTimeRFC3339(objectMap, "updatedAtUtc", s.UpdatedAtUTC) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SchemaGroupProperties. -func (s *SchemaGroupProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAtUtc": - err = unpopulateTimeRFC3339(val, &s.CreatedAtUTC) - delete(rawMsg, key) - case "eTag": - err = unpopulate(val, &s.ETag) - delete(rawMsg, key) - case "groupProperties": - err = unpopulate(val, &s.GroupProperties) - delete(rawMsg, key) - case "schemaCompatibility": - err = unpopulate(val, &s.SchemaCompatibility) - delete(rawMsg, key) - case "schemaType": - err = unpopulate(val, &s.SchemaType) - delete(rawMsg, key) - case "updatedAtUtc": - err = unpopulateTimeRFC3339(val, &s.UpdatedAtUTC) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // SchemaRegistryClientCreateOrUpdateOptions contains the optional parameters for the SchemaRegistryClient.CreateOrUpdate // method. type SchemaRegistryClientCreateOrUpdateOptions struct { @@ -1630,53 +1220,6 @@ type SystemData struct { LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // TrackedResource - Definition of resource. type TrackedResource struct { // Resource location. @@ -1695,17 +1238,6 @@ type TrackedResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TrackedResource. -func (t TrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "location", t.Location) - populate(objectMap, "name", t.Name) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - // UserAssignedIdentity - Recognized Dictionary value. type UserAssignedIdentity struct { // READ-ONLY; Client Id of user assigned identity @@ -1719,20 +1251,3 @@ type UserAssignedIdentityProperties struct { // ARM ID of user Identity selected for encryption UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, v interface{}) error { - if data == nil { - return nil - } - return json.Unmarshal(data, v) -} diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_models_serde.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_models_serde.go new file mode 100644 index 000000000000..caa34a9d0731 --- /dev/null +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_models_serde.go @@ -0,0 +1,501 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armeventhub + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type ArmDisasterRecoveryListResult. +func (a ArmDisasterRecoveryListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AuthorizationRuleListResult. +func (a AuthorizationRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AuthorizationRuleProperties. +func (a AuthorizationRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "rights", a.Rights) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AvailableClustersList. +func (a AvailableClustersList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Cluster. +func (c Cluster) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "sku", c.SKU) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ClusterListResult. +func (c ClusterListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ClusterQuotaConfigurationProperties. +func (c ClusterQuotaConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "settings", c.Settings) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ConsumerGroupListResult. +func (c ConsumerGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ConsumerGroupProperties. +func (c ConsumerGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAt", c.CreatedAt) + populateTimeRFC3339(objectMap, "updatedAt", c.UpdatedAt) + populate(objectMap, "userMetadata", c.UserMetadata) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConsumerGroupProperties. +func (c *ConsumerGroupProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, &c.CreatedAt) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, &c.UpdatedAt) + delete(rawMsg, key) + case "userMetadata": + err = unpopulate(val, &c.UserMetadata) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EHNamespace. +func (e EHNamespace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", e.ID) + populate(objectMap, "identity", e.Identity) + populate(objectMap, "location", e.Location) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + populate(objectMap, "sku", e.SKU) + populate(objectMap, "systemData", e.SystemData) + populate(objectMap, "tags", e.Tags) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type EHNamespaceIDListResult. +func (e EHNamespaceIDListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type EHNamespaceListResult. +func (e EHNamespaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", e.NextLink) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type EHNamespaceProperties. +func (e EHNamespaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "alternateName", e.AlternateName) + populate(objectMap, "clusterArmId", e.ClusterArmID) + populateTimeRFC3339(objectMap, "createdAt", e.CreatedAt) + populate(objectMap, "disableLocalAuth", e.DisableLocalAuth) + populate(objectMap, "encryption", e.Encryption) + populate(objectMap, "isAutoInflateEnabled", e.IsAutoInflateEnabled) + populate(objectMap, "kafkaEnabled", e.KafkaEnabled) + populate(objectMap, "maximumThroughputUnits", e.MaximumThroughputUnits) + populate(objectMap, "metricId", e.MetricID) + populate(objectMap, "privateEndpointConnections", e.PrivateEndpointConnections) + populate(objectMap, "provisioningState", e.ProvisioningState) + populate(objectMap, "serviceBusEndpoint", e.ServiceBusEndpoint) + populate(objectMap, "status", e.Status) + populateTimeRFC3339(objectMap, "updatedAt", e.UpdatedAt) + populate(objectMap, "zoneRedundant", e.ZoneRedundant) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EHNamespaceProperties. +func (e *EHNamespaceProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "alternateName": + err = unpopulate(val, &e.AlternateName) + delete(rawMsg, key) + case "clusterArmId": + err = unpopulate(val, &e.ClusterArmID) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, &e.CreatedAt) + delete(rawMsg, key) + case "disableLocalAuth": + err = unpopulate(val, &e.DisableLocalAuth) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, &e.Encryption) + delete(rawMsg, key) + case "isAutoInflateEnabled": + err = unpopulate(val, &e.IsAutoInflateEnabled) + delete(rawMsg, key) + case "kafkaEnabled": + err = unpopulate(val, &e.KafkaEnabled) + delete(rawMsg, key) + case "maximumThroughputUnits": + err = unpopulate(val, &e.MaximumThroughputUnits) + delete(rawMsg, key) + case "metricId": + err = unpopulate(val, &e.MetricID) + delete(rawMsg, key) + case "privateEndpointConnections": + err = unpopulate(val, &e.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, &e.ProvisioningState) + delete(rawMsg, key) + case "serviceBusEndpoint": + err = unpopulate(val, &e.ServiceBusEndpoint) + delete(rawMsg, key) + case "status": + err = unpopulate(val, &e.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, &e.UpdatedAt) + delete(rawMsg, key) + case "zoneRedundant": + err = unpopulate(val, &e.ZoneRedundant) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Encryption. +func (e Encryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "keySource", e.KeySource) + populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) + populate(objectMap, "requireInfrastructureEncryption", e.RequireInfrastructureEncryption) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorDetail. +func (e ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Identity. +func (i Identity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "principalId", i.PrincipalID) + populate(objectMap, "tenantId", i.TenantID) + populate(objectMap, "type", i.Type) + populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ListResult. +func (l ListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetListResult. +func (n NetworkRuleSetListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", n.NextLink) + populate(objectMap, "value", n.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetProperties. +func (n NetworkRuleSetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "defaultAction", n.DefaultAction) + populate(objectMap, "ipRules", n.IPRules) + populate(objectMap, "publicNetworkAccess", n.PublicNetworkAccess) + populate(objectMap, "trustedServiceAccessEnabled", n.TrustedServiceAccessEnabled) + populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. +func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. +func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "groupId", p.GroupID) + populate(objectMap, "requiredMembers", p.RequiredMembers) + populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesListResult. +func (p PrivateLinkResourcesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "captureDescription", p.CaptureDescription) + populateTimeRFC3339(objectMap, "createdAt", p.CreatedAt) + populate(objectMap, "messageRetentionInDays", p.MessageRetentionInDays) + populate(objectMap, "partitionCount", p.PartitionCount) + populate(objectMap, "partitionIds", p.PartitionIDs) + populate(objectMap, "status", p.Status) + populateTimeRFC3339(objectMap, "updatedAt", p.UpdatedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Properties. +func (p *Properties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "captureDescription": + err = unpopulate(val, &p.CaptureDescription) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, &p.CreatedAt) + delete(rawMsg, key) + case "messageRetentionInDays": + err = unpopulate(val, &p.MessageRetentionInDays) + delete(rawMsg, key) + case "partitionCount": + err = unpopulate(val, &p.PartitionCount) + delete(rawMsg, key) + case "partitionIds": + err = unpopulate(val, &p.PartitionIDs) + delete(rawMsg, key) + case "status": + err = unpopulate(val, &p.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, &p.UpdatedAt) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SchemaGroupListResult. +func (s SchemaGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SchemaGroupProperties. +func (s SchemaGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAtUtc", s.CreatedAtUTC) + populate(objectMap, "eTag", s.ETag) + populate(objectMap, "groupProperties", s.GroupProperties) + populate(objectMap, "schemaCompatibility", s.SchemaCompatibility) + populate(objectMap, "schemaType", s.SchemaType) + populateTimeRFC3339(objectMap, "updatedAtUtc", s.UpdatedAtUTC) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SchemaGroupProperties. +func (s *SchemaGroupProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAtUtc": + err = unpopulateTimeRFC3339(val, &s.CreatedAtUTC) + delete(rawMsg, key) + case "eTag": + err = unpopulate(val, &s.ETag) + delete(rawMsg, key) + case "groupProperties": + err = unpopulate(val, &s.GroupProperties) + delete(rawMsg, key) + case "schemaCompatibility": + err = unpopulate(val, &s.SchemaCompatibility) + delete(rawMsg, key) + case "schemaType": + err = unpopulate(val, &s.SchemaType) + delete(rawMsg, key) + case "updatedAtUtc": + err = unpopulateTimeRFC3339(val, &s.UpdatedAtUTC) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TrackedResource. +func (t TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, v interface{}) error { + if data == nil { + return nil + } + return json.Unmarshal(data, v) +} diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_namespaces_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_namespaces_client.go index 5c4ccf7e0383..ce9fe4fe260a 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_namespaces_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_namespaces_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type NamespacesClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewNamespacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *NamespacesClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewNamespacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NamespacesClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &NamespacesClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CheckNameAvailability - Check the give Namespace name availability. @@ -90,7 +95,7 @@ func (client *NamespacesClient) checkNameAvailabilityCreateRequest(ctx context.C // checkNameAvailabilityHandleResponse handles the CheckNameAvailability response. func (client *NamespacesClient) checkNameAvailabilityHandleResponse(resp *http.Response) (NamespacesClientCheckNameAvailabilityResponse, error) { - result := NamespacesClientCheckNameAvailabilityResponse{RawResponse: resp} + result := NamespacesClientCheckNameAvailabilityResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.CheckNameAvailabilityResult); err != nil { return NamespacesClientCheckNameAvailabilityResponse{}, err } @@ -105,22 +110,16 @@ func (client *NamespacesClient) checkNameAvailabilityHandleResponse(resp *http.R // parameters - Parameters for creating a namespace resource. // options - NamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespacesClient.BeginCreateOrUpdate // method. -func (client *NamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters EHNamespace, options *NamespacesClientBeginCreateOrUpdateOptions) (NamespacesClientCreateOrUpdatePollerResponse, error) { - resp, err := client.createOrUpdate(ctx, resourceGroupName, namespaceName, parameters, options) - if err != nil { - return NamespacesClientCreateOrUpdatePollerResponse{}, err - } - result := NamespacesClientCreateOrUpdatePollerResponse{ - RawResponse: resp, +func (client *NamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters EHNamespace, options *NamespacesClientBeginCreateOrUpdateOptions) (*armruntime.Poller[NamespacesClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, namespaceName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[NamespacesClientCreateOrUpdateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[NamespacesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("NamespacesClient.CreateOrUpdate", "", resp, client.pl) - if err != nil { - return NamespacesClientCreateOrUpdatePollerResponse{}, err - } - result.Poller = &NamespacesClientCreateOrUpdatePoller{ - pt: pt, - } - return result, nil } // CreateOrUpdate - Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation @@ -222,7 +221,7 @@ func (client *NamespacesClient) createOrUpdateAuthorizationRuleCreateRequest(ctx // createOrUpdateAuthorizationRuleHandleResponse handles the CreateOrUpdateAuthorizationRule response. func (client *NamespacesClient) createOrUpdateAuthorizationRuleHandleResponse(resp *http.Response) (NamespacesClientCreateOrUpdateAuthorizationRuleResponse, error) { - result := NamespacesClientCreateOrUpdateAuthorizationRuleResponse{RawResponse: resp} + result := NamespacesClientCreateOrUpdateAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AuthorizationRule); err != nil { return NamespacesClientCreateOrUpdateAuthorizationRuleResponse{}, err } @@ -279,7 +278,7 @@ func (client *NamespacesClient) createOrUpdateNetworkRuleSetCreateRequest(ctx co // createOrUpdateNetworkRuleSetHandleResponse handles the CreateOrUpdateNetworkRuleSet response. func (client *NamespacesClient) createOrUpdateNetworkRuleSetHandleResponse(resp *http.Response) (NamespacesClientCreateOrUpdateNetworkRuleSetResponse, error) { - result := NamespacesClientCreateOrUpdateNetworkRuleSetResponse{RawResponse: resp} + result := NamespacesClientCreateOrUpdateNetworkRuleSetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.NetworkRuleSet); err != nil { return NamespacesClientCreateOrUpdateNetworkRuleSetResponse{}, err } @@ -291,22 +290,16 @@ func (client *NamespacesClient) createOrUpdateNetworkRuleSetHandleResponse(resp // resourceGroupName - Name of the resource group within the azure subscription. // namespaceName - The Namespace name // options - NamespacesClientBeginDeleteOptions contains the optional parameters for the NamespacesClient.BeginDelete method. -func (client *NamespacesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientBeginDeleteOptions) (NamespacesClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, options) - if err != nil { - return NamespacesClientDeletePollerResponse{}, err - } - result := NamespacesClientDeletePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("NamespacesClient.Delete", "", resp, client.pl) - if err != nil { - return NamespacesClientDeletePollerResponse{}, err - } - result.Poller = &NamespacesClientDeletePoller{ - pt: pt, +func (client *NamespacesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientBeginDeleteOptions) (*armruntime.Poller[NamespacesClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[NamespacesClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[NamespacesClientDeleteResponse](options.ResumeToken, client.pl, nil) } - return result, nil } // Delete - Deletes an existing namespace. This operation also removes all associated resources under the namespace. @@ -371,7 +364,7 @@ func (client *NamespacesClient) DeleteAuthorizationRule(ctx context.Context, res if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return NamespacesClientDeleteAuthorizationRuleResponse{}, runtime.NewResponseError(resp) } - return NamespacesClientDeleteAuthorizationRuleResponse{RawResponse: resp}, nil + return NamespacesClientDeleteAuthorizationRuleResponse{}, nil } // deleteAuthorizationRuleCreateRequest creates the DeleteAuthorizationRule request. @@ -452,7 +445,7 @@ func (client *NamespacesClient) getCreateRequest(ctx context.Context, resourceGr // getHandleResponse handles the Get response. func (client *NamespacesClient) getHandleResponse(resp *http.Response) (NamespacesClientGetResponse, error) { - result := NamespacesClientGetResponse{RawResponse: resp} + result := NamespacesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.EHNamespace); err != nil { return NamespacesClientGetResponse{}, err } @@ -513,7 +506,7 @@ func (client *NamespacesClient) getAuthorizationRuleCreateRequest(ctx context.Co // getAuthorizationRuleHandleResponse handles the GetAuthorizationRule response. func (client *NamespacesClient) getAuthorizationRuleHandleResponse(resp *http.Response) (NamespacesClientGetAuthorizationRuleResponse, error) { - result := NamespacesClientGetAuthorizationRuleResponse{RawResponse: resp} + result := NamespacesClientGetAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AuthorizationRule); err != nil { return NamespacesClientGetAuthorizationRuleResponse{}, err } @@ -569,7 +562,7 @@ func (client *NamespacesClient) getNetworkRuleSetCreateRequest(ctx context.Conte // getNetworkRuleSetHandleResponse handles the GetNetworkRuleSet response. func (client *NamespacesClient) getNetworkRuleSetHandleResponse(resp *http.Response) (NamespacesClientGetNetworkRuleSetResponse, error) { - result := NamespacesClientGetNetworkRuleSetResponse{RawResponse: resp} + result := NamespacesClientGetNetworkRuleSetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.NetworkRuleSet); err != nil { return NamespacesClientGetNetworkRuleSetResponse{}, err } @@ -579,16 +572,32 @@ func (client *NamespacesClient) getNetworkRuleSetHandleResponse(resp *http.Respo // List - Lists all the available Namespaces within a subscription, irrespective of the resource groups. // If the operation fails it returns an *azcore.ResponseError type. // options - NamespacesClientListOptions contains the optional parameters for the NamespacesClient.List method. -func (client *NamespacesClient) List(options *NamespacesClientListOptions) *NamespacesClientListPager { - return &NamespacesClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *NamespacesClient) List(options *NamespacesClientListOptions) *runtime.Pager[NamespacesClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[NamespacesClientListResponse]{ + More: func(page NamespacesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp NamespacesClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.EHNamespaceListResult.NextLink) + Fetcher: func(ctx context.Context, page *NamespacesClientListResponse) (NamespacesClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return NamespacesClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return NamespacesClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return NamespacesClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -611,7 +620,7 @@ func (client *NamespacesClient) listCreateRequest(ctx context.Context, options * // listHandleResponse handles the List response. func (client *NamespacesClient) listHandleResponse(resp *http.Response) (NamespacesClientListResponse, error) { - result := NamespacesClientListResponse{RawResponse: resp} + result := NamespacesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.EHNamespaceListResult); err != nil { return NamespacesClientListResponse{}, err } @@ -624,16 +633,32 @@ func (client *NamespacesClient) listHandleResponse(resp *http.Response) (Namespa // namespaceName - The Namespace name // options - NamespacesClientListAuthorizationRulesOptions contains the optional parameters for the NamespacesClient.ListAuthorizationRules // method. -func (client *NamespacesClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, options *NamespacesClientListAuthorizationRulesOptions) *NamespacesClientListAuthorizationRulesPager { - return &NamespacesClientListAuthorizationRulesPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *NamespacesClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, options *NamespacesClientListAuthorizationRulesOptions) *runtime.Pager[NamespacesClientListAuthorizationRulesResponse] { + return runtime.NewPager(runtime.PageProcessor[NamespacesClientListAuthorizationRulesResponse]{ + More: func(page NamespacesClientListAuthorizationRulesResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp NamespacesClientListAuthorizationRulesResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.AuthorizationRuleListResult.NextLink) + Fetcher: func(ctx context.Context, page *NamespacesClientListAuthorizationRulesResponse) (NamespacesClientListAuthorizationRulesResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return NamespacesClientListAuthorizationRulesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return NamespacesClientListAuthorizationRulesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return NamespacesClientListAuthorizationRulesResponse{}, runtime.NewResponseError(resp) + } + return client.listAuthorizationRulesHandleResponse(resp) }, - } + }) } // listAuthorizationRulesCreateRequest creates the ListAuthorizationRules request. @@ -664,7 +689,7 @@ func (client *NamespacesClient) listAuthorizationRulesCreateRequest(ctx context. // listAuthorizationRulesHandleResponse handles the ListAuthorizationRules response. func (client *NamespacesClient) listAuthorizationRulesHandleResponse(resp *http.Response) (NamespacesClientListAuthorizationRulesResponse, error) { - result := NamespacesClientListAuthorizationRulesResponse{RawResponse: resp} + result := NamespacesClientListAuthorizationRulesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AuthorizationRuleListResult); err != nil { return NamespacesClientListAuthorizationRulesResponse{}, err } @@ -676,16 +701,32 @@ func (client *NamespacesClient) listAuthorizationRulesHandleResponse(resp *http. // resourceGroupName - Name of the resource group within the azure subscription. // options - NamespacesClientListByResourceGroupOptions contains the optional parameters for the NamespacesClient.ListByResourceGroup // method. -func (client *NamespacesClient) ListByResourceGroup(resourceGroupName string, options *NamespacesClientListByResourceGroupOptions) *NamespacesClientListByResourceGroupPager { - return &NamespacesClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *NamespacesClient) ListByResourceGroup(resourceGroupName string, options *NamespacesClientListByResourceGroupOptions) *runtime.Pager[NamespacesClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[NamespacesClientListByResourceGroupResponse]{ + More: func(page NamespacesClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp NamespacesClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.EHNamespaceListResult.NextLink) + Fetcher: func(ctx context.Context, page *NamespacesClientListByResourceGroupResponse) (NamespacesClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return NamespacesClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return NamespacesClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return NamespacesClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -712,7 +753,7 @@ func (client *NamespacesClient) listByResourceGroupCreateRequest(ctx context.Con // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *NamespacesClient) listByResourceGroupHandleResponse(resp *http.Response) (NamespacesClientListByResourceGroupResponse, error) { - result := NamespacesClientListByResourceGroupResponse{RawResponse: resp} + result := NamespacesClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.EHNamespaceListResult); err != nil { return NamespacesClientListByResourceGroupResponse{}, err } @@ -772,7 +813,7 @@ func (client *NamespacesClient) listKeysCreateRequest(ctx context.Context, resou // listKeysHandleResponse handles the ListKeys response. func (client *NamespacesClient) listKeysHandleResponse(resp *http.Response) (NamespacesClientListKeysResponse, error) { - result := NamespacesClientListKeysResponse{RawResponse: resp} + result := NamespacesClientListKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return NamespacesClientListKeysResponse{}, err } @@ -828,7 +869,7 @@ func (client *NamespacesClient) listNetworkRuleSetCreateRequest(ctx context.Cont // listNetworkRuleSetHandleResponse handles the ListNetworkRuleSet response. func (client *NamespacesClient) listNetworkRuleSetHandleResponse(resp *http.Response) (NamespacesClientListNetworkRuleSetResponse, error) { - result := NamespacesClientListNetworkRuleSetResponse{RawResponse: resp} + result := NamespacesClientListNetworkRuleSetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.NetworkRuleSetListResult); err != nil { return NamespacesClientListNetworkRuleSetResponse{}, err } @@ -890,7 +931,7 @@ func (client *NamespacesClient) regenerateKeysCreateRequest(ctx context.Context, // regenerateKeysHandleResponse handles the RegenerateKeys response. func (client *NamespacesClient) regenerateKeysHandleResponse(resp *http.Response) (NamespacesClientRegenerateKeysResponse, error) { - result := NamespacesClientRegenerateKeysResponse{RawResponse: resp} + result := NamespacesClientRegenerateKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return NamespacesClientRegenerateKeysResponse{}, err } @@ -947,7 +988,7 @@ func (client *NamespacesClient) updateCreateRequest(ctx context.Context, resourc // updateHandleResponse handles the Update response. func (client *NamespacesClient) updateHandleResponse(resp *http.Response) (NamespacesClientUpdateResponse, error) { - result := NamespacesClientUpdateResponse{RawResponse: resp} + result := NamespacesClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.EHNamespace); err != nil { return NamespacesClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_operations_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_operations_client.go index bb6935a39a3a..10c766929818 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_operations_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_operations_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,34 +29,54 @@ type OperationsClient struct { // NewOperationsClient creates a new instance of OperationsClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &OperationsClient{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // List - Lists all of the available Event Hub REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *OperationsClientListPager { - return &OperationsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ + More: func(page OperationsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp OperationsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.OperationListResult.NextLink) + Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return OperationsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return OperationsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return OperationsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -74,7 +95,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { - result := OperationsClientListResponse{RawResponse: resp} + result := OperationsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_pagers.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_pagers.go deleted file mode 100644 index 96bddc13cd02..000000000000 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_pagers.go +++ /dev/null @@ -1,719 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armeventhub - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// ClustersClientListByResourceGroupPager provides operations for iterating over paged responses. -type ClustersClientListByResourceGroupPager struct { - client *ClustersClient - current ClustersClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ClustersClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ClustersClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ClustersClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ClusterListResult.NextLink == nil || len(*p.current.ClusterListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ClustersClientListByResourceGroupResponse page. -func (p *ClustersClientListByResourceGroupPager) PageResponse() ClustersClientListByResourceGroupResponse { - return p.current -} - -// ClustersClientListBySubscriptionPager provides operations for iterating over paged responses. -type ClustersClientListBySubscriptionPager struct { - client *ClustersClient - current ClustersClientListBySubscriptionResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ClustersClientListBySubscriptionResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ClustersClientListBySubscriptionPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ClustersClientListBySubscriptionPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ClusterListResult.NextLink == nil || len(*p.current.ClusterListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBySubscriptionHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ClustersClientListBySubscriptionResponse page. -func (p *ClustersClientListBySubscriptionPager) PageResponse() ClustersClientListBySubscriptionResponse { - return p.current -} - -// ConsumerGroupsClientListByEventHubPager provides operations for iterating over paged responses. -type ConsumerGroupsClientListByEventHubPager struct { - client *ConsumerGroupsClient - current ConsumerGroupsClientListByEventHubResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ConsumerGroupsClientListByEventHubResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ConsumerGroupsClientListByEventHubPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ConsumerGroupsClientListByEventHubPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ConsumerGroupListResult.NextLink == nil || len(*p.current.ConsumerGroupListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByEventHubHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ConsumerGroupsClientListByEventHubResponse page. -func (p *ConsumerGroupsClientListByEventHubPager) PageResponse() ConsumerGroupsClientListByEventHubResponse { - return p.current -} - -// DisasterRecoveryConfigsClientListAuthorizationRulesPager provides operations for iterating over paged responses. -type DisasterRecoveryConfigsClientListAuthorizationRulesPager struct { - client *DisasterRecoveryConfigsClient - current DisasterRecoveryConfigsClientListAuthorizationRulesResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, DisasterRecoveryConfigsClientListAuthorizationRulesResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *DisasterRecoveryConfigsClientListAuthorizationRulesPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *DisasterRecoveryConfigsClientListAuthorizationRulesPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.AuthorizationRuleListResult.NextLink == nil || len(*p.current.AuthorizationRuleListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAuthorizationRulesHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current DisasterRecoveryConfigsClientListAuthorizationRulesResponse page. -func (p *DisasterRecoveryConfigsClientListAuthorizationRulesPager) PageResponse() DisasterRecoveryConfigsClientListAuthorizationRulesResponse { - return p.current -} - -// DisasterRecoveryConfigsClientListPager provides operations for iterating over paged responses. -type DisasterRecoveryConfigsClientListPager struct { - client *DisasterRecoveryConfigsClient - current DisasterRecoveryConfigsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, DisasterRecoveryConfigsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *DisasterRecoveryConfigsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *DisasterRecoveryConfigsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ArmDisasterRecoveryListResult.NextLink == nil || len(*p.current.ArmDisasterRecoveryListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current DisasterRecoveryConfigsClientListResponse page. -func (p *DisasterRecoveryConfigsClientListPager) PageResponse() DisasterRecoveryConfigsClientListResponse { - return p.current -} - -// EventHubsClientListAuthorizationRulesPager provides operations for iterating over paged responses. -type EventHubsClientListAuthorizationRulesPager struct { - client *EventHubsClient - current EventHubsClientListAuthorizationRulesResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, EventHubsClientListAuthorizationRulesResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *EventHubsClientListAuthorizationRulesPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *EventHubsClientListAuthorizationRulesPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.AuthorizationRuleListResult.NextLink == nil || len(*p.current.AuthorizationRuleListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAuthorizationRulesHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current EventHubsClientListAuthorizationRulesResponse page. -func (p *EventHubsClientListAuthorizationRulesPager) PageResponse() EventHubsClientListAuthorizationRulesResponse { - return p.current -} - -// EventHubsClientListByNamespacePager provides operations for iterating over paged responses. -type EventHubsClientListByNamespacePager struct { - client *EventHubsClient - current EventHubsClientListByNamespaceResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, EventHubsClientListByNamespaceResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *EventHubsClientListByNamespacePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *EventHubsClientListByNamespacePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ListResult.NextLink == nil || len(*p.current.ListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByNamespaceHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current EventHubsClientListByNamespaceResponse page. -func (p *EventHubsClientListByNamespacePager) PageResponse() EventHubsClientListByNamespaceResponse { - return p.current -} - -// NamespacesClientListAuthorizationRulesPager provides operations for iterating over paged responses. -type NamespacesClientListAuthorizationRulesPager struct { - client *NamespacesClient - current NamespacesClientListAuthorizationRulesResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, NamespacesClientListAuthorizationRulesResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *NamespacesClientListAuthorizationRulesPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *NamespacesClientListAuthorizationRulesPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.AuthorizationRuleListResult.NextLink == nil || len(*p.current.AuthorizationRuleListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAuthorizationRulesHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current NamespacesClientListAuthorizationRulesResponse page. -func (p *NamespacesClientListAuthorizationRulesPager) PageResponse() NamespacesClientListAuthorizationRulesResponse { - return p.current -} - -// NamespacesClientListByResourceGroupPager provides operations for iterating over paged responses. -type NamespacesClientListByResourceGroupPager struct { - client *NamespacesClient - current NamespacesClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, NamespacesClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *NamespacesClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *NamespacesClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.EHNamespaceListResult.NextLink == nil || len(*p.current.EHNamespaceListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current NamespacesClientListByResourceGroupResponse page. -func (p *NamespacesClientListByResourceGroupPager) PageResponse() NamespacesClientListByResourceGroupResponse { - return p.current -} - -// NamespacesClientListPager provides operations for iterating over paged responses. -type NamespacesClientListPager struct { - client *NamespacesClient - current NamespacesClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, NamespacesClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *NamespacesClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *NamespacesClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.EHNamespaceListResult.NextLink == nil || len(*p.current.EHNamespaceListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current NamespacesClientListResponse page. -func (p *NamespacesClientListPager) PageResponse() NamespacesClientListResponse { - return p.current -} - -// OperationsClientListPager provides operations for iterating over paged responses. -type OperationsClientListPager struct { - client *OperationsClient - current OperationsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, OperationsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *OperationsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *OperationsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.OperationListResult.NextLink == nil || len(*p.current.OperationListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current OperationsClientListResponse page. -func (p *OperationsClientListPager) PageResponse() OperationsClientListResponse { - return p.current -} - -// PrivateEndpointConnectionsClientListPager provides operations for iterating over paged responses. -type PrivateEndpointConnectionsClientListPager struct { - client *PrivateEndpointConnectionsClient - current PrivateEndpointConnectionsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, PrivateEndpointConnectionsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *PrivateEndpointConnectionsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *PrivateEndpointConnectionsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.PrivateEndpointConnectionListResult.NextLink == nil || len(*p.current.PrivateEndpointConnectionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current PrivateEndpointConnectionsClientListResponse page. -func (p *PrivateEndpointConnectionsClientListPager) PageResponse() PrivateEndpointConnectionsClientListResponse { - return p.current -} - -// SchemaRegistryClientListByNamespacePager provides operations for iterating over paged responses. -type SchemaRegistryClientListByNamespacePager struct { - client *SchemaRegistryClient - current SchemaRegistryClientListByNamespaceResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, SchemaRegistryClientListByNamespaceResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *SchemaRegistryClientListByNamespacePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *SchemaRegistryClientListByNamespacePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SchemaGroupListResult.NextLink == nil || len(*p.current.SchemaGroupListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByNamespaceHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current SchemaRegistryClientListByNamespaceResponse page. -func (p *SchemaRegistryClientListByNamespacePager) PageResponse() SchemaRegistryClientListByNamespaceResponse { - return p.current -} diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_pollers.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_pollers.go deleted file mode 100644 index cd1223af32e6..000000000000 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_pollers.go +++ /dev/null @@ -1,273 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armeventhub - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "net/http" -) - -// ClustersClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state. -type ClustersClientCreateOrUpdatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ClustersClientCreateOrUpdatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ClustersClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ClustersClientCreateOrUpdateResponse will be returned. -func (p *ClustersClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ClustersClientCreateOrUpdateResponse, error) { - respType := ClustersClientCreateOrUpdateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.Cluster) - if err != nil { - return ClustersClientCreateOrUpdateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ClustersClientCreateOrUpdatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ClustersClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type ClustersClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ClustersClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ClustersClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ClustersClientDeleteResponse will be returned. -func (p *ClustersClientDeletePoller) FinalResponse(ctx context.Context) (ClustersClientDeleteResponse, error) { - respType := ClustersClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return ClustersClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ClustersClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ClustersClientUpdatePoller provides polling facilities until the operation reaches a terminal state. -type ClustersClientUpdatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ClustersClientUpdatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ClustersClientUpdatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ClustersClientUpdateResponse will be returned. -func (p *ClustersClientUpdatePoller) FinalResponse(ctx context.Context) (ClustersClientUpdateResponse, error) { - respType := ClustersClientUpdateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.Cluster) - if err != nil { - return ClustersClientUpdateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ClustersClientUpdatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// NamespacesClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state. -type NamespacesClientCreateOrUpdatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *NamespacesClientCreateOrUpdatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *NamespacesClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final NamespacesClientCreateOrUpdateResponse will be returned. -func (p *NamespacesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (NamespacesClientCreateOrUpdateResponse, error) { - respType := NamespacesClientCreateOrUpdateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.EHNamespace) - if err != nil { - return NamespacesClientCreateOrUpdateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *NamespacesClientCreateOrUpdatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// NamespacesClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type NamespacesClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *NamespacesClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *NamespacesClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final NamespacesClientDeleteResponse will be returned. -func (p *NamespacesClientDeletePoller) FinalResponse(ctx context.Context) (NamespacesClientDeleteResponse, error) { - respType := NamespacesClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return NamespacesClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *NamespacesClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// PrivateEndpointConnectionsClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type PrivateEndpointConnectionsClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *PrivateEndpointConnectionsClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *PrivateEndpointConnectionsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final PrivateEndpointConnectionsClientDeleteResponse will be returned. -func (p *PrivateEndpointConnectionsClientDeletePoller) FinalResponse(ctx context.Context) (PrivateEndpointConnectionsClientDeleteResponse, error) { - respType := PrivateEndpointConnectionsClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return PrivateEndpointConnectionsClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *PrivateEndpointConnectionsClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_privateendpointconnections_client.go index ba98121febfe..64aa9a1438ff 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_privateendpointconnections_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type PrivateEndpointConnectionsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateEndpointConnectionsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &PrivateEndpointConnectionsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates or updates PrivateEndpointConnections of service namespace. @@ -105,7 +110,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *PrivateEndpointConnectionsClient) createOrUpdateHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientCreateOrUpdateResponse, error) { - result := PrivateEndpointConnectionsClientCreateOrUpdateResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnection); err != nil { return PrivateEndpointConnectionsClientCreateOrUpdateResponse{}, err } @@ -119,22 +124,16 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateHandleResponse(res // privateEndpointConnectionName - The PrivateEndpointConnection name // options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete // method. -func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (PrivateEndpointConnectionsClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, privateEndpointConnectionName, options) - if err != nil { - return PrivateEndpointConnectionsClientDeletePollerResponse{}, err - } - result := PrivateEndpointConnectionsClientDeletePollerResponse{ - RawResponse: resp, +func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, privateEndpointConnectionName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[PrivateEndpointConnectionsClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[PrivateEndpointConnectionsClientDeleteResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("PrivateEndpointConnectionsClient.Delete", "", resp, client.pl) - if err != nil { - return PrivateEndpointConnectionsClientDeletePollerResponse{}, err - } - result.Poller = &PrivateEndpointConnectionsClientDeletePoller{ - pt: pt, - } - return result, nil } // Delete - Deletes an existing namespace. This operation also removes all associated resources under the namespace. @@ -238,7 +237,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con // getHandleResponse handles the Get response. func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientGetResponse, error) { - result := PrivateEndpointConnectionsClientGetResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnection); err != nil { return PrivateEndpointConnectionsClientGetResponse{}, err } @@ -251,16 +250,32 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // namespaceName - The Namespace name // options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List // method. -func (client *PrivateEndpointConnectionsClient) List(resourceGroupName string, namespaceName string, options *PrivateEndpointConnectionsClientListOptions) *PrivateEndpointConnectionsClientListPager { - return &PrivateEndpointConnectionsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *PrivateEndpointConnectionsClient) List(resourceGroupName string, namespaceName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[PrivateEndpointConnectionsClientListResponse]{ + More: func(page PrivateEndpointConnectionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp PrivateEndpointConnectionsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.PrivateEndpointConnectionListResult.NextLink) + Fetcher: func(ctx context.Context, page *PrivateEndpointConnectionsClientListResponse) (PrivateEndpointConnectionsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return PrivateEndpointConnectionsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return PrivateEndpointConnectionsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return PrivateEndpointConnectionsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -291,7 +306,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co // listHandleResponse handles the List response. func (client *PrivateEndpointConnectionsClient) listHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientListResponse, error) { - result := PrivateEndpointConnectionsClientListResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnectionListResult); err != nil { return PrivateEndpointConnectionsClientListResponse{}, err } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_privatelinkresources_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_privatelinkresources_client.go index d9ed11a58a4d..3675a3ec8a3b 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_privatelinkresources_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_privatelinkresources_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type PrivateLinkResourcesClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateLinkResourcesClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &PrivateLinkResourcesClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // Get - Gets lists of resources that supports Privatelinks. @@ -99,7 +104,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, // getHandleResponse handles the Get response. func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) (PrivateLinkResourcesClientGetResponse, error) { - result := PrivateLinkResourcesClientGetResponse{RawResponse: resp} + result := PrivateLinkResourcesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateLinkResourcesListResult); err != nil { return PrivateLinkResourcesClientGetResponse{}, err } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_response_types.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_response_types.go index be449975b1d0..83ac6f1506a9 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_response_types.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,903 +8,302 @@ package armeventhub -import ( - "context" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "net/http" - "time" -) - -// ClustersClientCreateOrUpdatePollerResponse contains the response from method ClustersClient.CreateOrUpdate. -type ClustersClientCreateOrUpdatePollerResponse struct { - // Poller contains an initialized poller. - Poller *ClustersClientCreateOrUpdatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ClustersClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ClustersClientCreateOrUpdateResponse, error) { - respType := ClustersClientCreateOrUpdateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.Cluster) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ClustersClientCreateOrUpdatePollerResponse from the provided client and resume token. -func (l *ClustersClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ClustersClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ClustersClient.CreateOrUpdate", token, client.pl) - if err != nil { - return err - } - poller := &ClustersClientCreateOrUpdatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ClustersClientCreateOrUpdateResponse contains the response from method ClustersClient.CreateOrUpdate. type ClustersClientCreateOrUpdateResponse struct { - ClustersClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClustersClientCreateOrUpdateResult contains the result from method ClustersClient.CreateOrUpdate. -type ClustersClientCreateOrUpdateResult struct { Cluster } -// ClustersClientDeletePollerResponse contains the response from method ClustersClient.Delete. -type ClustersClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *ClustersClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ClustersClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ClustersClientDeleteResponse, error) { - respType := ClustersClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ClustersClientDeletePollerResponse from the provided client and resume token. -func (l *ClustersClientDeletePollerResponse) Resume(ctx context.Context, client *ClustersClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ClustersClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &ClustersClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ClustersClientDeleteResponse contains the response from method ClustersClient.Delete. type ClustersClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ClustersClientGetResponse contains the response from method ClustersClient.Get. type ClustersClientGetResponse struct { - ClustersClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClustersClientGetResult contains the result from method ClustersClient.Get. -type ClustersClientGetResult struct { Cluster } // ClustersClientListAvailableClusterRegionResponse contains the response from method ClustersClient.ListAvailableClusterRegion. type ClustersClientListAvailableClusterRegionResponse struct { - ClustersClientListAvailableClusterRegionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClustersClientListAvailableClusterRegionResult contains the result from method ClustersClient.ListAvailableClusterRegion. -type ClustersClientListAvailableClusterRegionResult struct { AvailableClustersList } // ClustersClientListByResourceGroupResponse contains the response from method ClustersClient.ListByResourceGroup. type ClustersClientListByResourceGroupResponse struct { - ClustersClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClustersClientListByResourceGroupResult contains the result from method ClustersClient.ListByResourceGroup. -type ClustersClientListByResourceGroupResult struct { ClusterListResult } // ClustersClientListBySubscriptionResponse contains the response from method ClustersClient.ListBySubscription. type ClustersClientListBySubscriptionResponse struct { - ClustersClientListBySubscriptionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClustersClientListBySubscriptionResult contains the result from method ClustersClient.ListBySubscription. -type ClustersClientListBySubscriptionResult struct { ClusterListResult } // ClustersClientListNamespacesResponse contains the response from method ClustersClient.ListNamespaces. type ClustersClientListNamespacesResponse struct { - ClustersClientListNamespacesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClustersClientListNamespacesResult contains the result from method ClustersClient.ListNamespaces. -type ClustersClientListNamespacesResult struct { EHNamespaceIDListResult } -// ClustersClientUpdatePollerResponse contains the response from method ClustersClient.Update. -type ClustersClientUpdatePollerResponse struct { - // Poller contains an initialized poller. - Poller *ClustersClientUpdatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ClustersClientUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ClustersClientUpdateResponse, error) { - respType := ClustersClientUpdateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.Cluster) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ClustersClientUpdatePollerResponse from the provided client and resume token. -func (l *ClustersClientUpdatePollerResponse) Resume(ctx context.Context, client *ClustersClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ClustersClient.Update", token, client.pl) - if err != nil { - return err - } - poller := &ClustersClientUpdatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ClustersClientUpdateResponse contains the response from method ClustersClient.Update. type ClustersClientUpdateResponse struct { - ClustersClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClustersClientUpdateResult contains the result from method ClustersClient.Update. -type ClustersClientUpdateResult struct { Cluster } // ConfigurationClientGetResponse contains the response from method ConfigurationClient.Get. type ConfigurationClientGetResponse struct { - ConfigurationClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ConfigurationClientGetResult contains the result from method ConfigurationClient.Get. -type ConfigurationClientGetResult struct { ClusterQuotaConfigurationProperties } // ConfigurationClientPatchResponse contains the response from method ConfigurationClient.Patch. type ConfigurationClientPatchResponse struct { - ConfigurationClientPatchResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ConfigurationClientPatchResult contains the result from method ConfigurationClient.Patch. -type ConfigurationClientPatchResult struct { ClusterQuotaConfigurationProperties } // ConsumerGroupsClientCreateOrUpdateResponse contains the response from method ConsumerGroupsClient.CreateOrUpdate. type ConsumerGroupsClientCreateOrUpdateResponse struct { - ConsumerGroupsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ConsumerGroupsClientCreateOrUpdateResult contains the result from method ConsumerGroupsClient.CreateOrUpdate. -type ConsumerGroupsClientCreateOrUpdateResult struct { ConsumerGroup } // ConsumerGroupsClientDeleteResponse contains the response from method ConsumerGroupsClient.Delete. type ConsumerGroupsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ConsumerGroupsClientGetResponse contains the response from method ConsumerGroupsClient.Get. type ConsumerGroupsClientGetResponse struct { - ConsumerGroupsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ConsumerGroupsClientGetResult contains the result from method ConsumerGroupsClient.Get. -type ConsumerGroupsClientGetResult struct { ConsumerGroup } // ConsumerGroupsClientListByEventHubResponse contains the response from method ConsumerGroupsClient.ListByEventHub. type ConsumerGroupsClientListByEventHubResponse struct { - ConsumerGroupsClientListByEventHubResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ConsumerGroupsClientListByEventHubResult contains the result from method ConsumerGroupsClient.ListByEventHub. -type ConsumerGroupsClientListByEventHubResult struct { ConsumerGroupListResult } // DisasterRecoveryConfigsClientBreakPairingResponse contains the response from method DisasterRecoveryConfigsClient.BreakPairing. type DisasterRecoveryConfigsClientBreakPairingResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // DisasterRecoveryConfigsClientCheckNameAvailabilityResponse contains the response from method DisasterRecoveryConfigsClient.CheckNameAvailability. type DisasterRecoveryConfigsClientCheckNameAvailabilityResponse struct { - DisasterRecoveryConfigsClientCheckNameAvailabilityResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientCheckNameAvailabilityResult contains the result from method DisasterRecoveryConfigsClient.CheckNameAvailability. -type DisasterRecoveryConfigsClientCheckNameAvailabilityResult struct { CheckNameAvailabilityResult } // DisasterRecoveryConfigsClientCreateOrUpdateResponse contains the response from method DisasterRecoveryConfigsClient.CreateOrUpdate. type DisasterRecoveryConfigsClientCreateOrUpdateResponse struct { - DisasterRecoveryConfigsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientCreateOrUpdateResult contains the result from method DisasterRecoveryConfigsClient.CreateOrUpdate. -type DisasterRecoveryConfigsClientCreateOrUpdateResult struct { ArmDisasterRecovery } // DisasterRecoveryConfigsClientDeleteResponse contains the response from method DisasterRecoveryConfigsClient.Delete. type DisasterRecoveryConfigsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // DisasterRecoveryConfigsClientFailOverResponse contains the response from method DisasterRecoveryConfigsClient.FailOver. type DisasterRecoveryConfigsClientFailOverResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // DisasterRecoveryConfigsClientGetAuthorizationRuleResponse contains the response from method DisasterRecoveryConfigsClient.GetAuthorizationRule. type DisasterRecoveryConfigsClientGetAuthorizationRuleResponse struct { - DisasterRecoveryConfigsClientGetAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientGetAuthorizationRuleResult contains the result from method DisasterRecoveryConfigsClient.GetAuthorizationRule. -type DisasterRecoveryConfigsClientGetAuthorizationRuleResult struct { AuthorizationRule } // DisasterRecoveryConfigsClientGetResponse contains the response from method DisasterRecoveryConfigsClient.Get. type DisasterRecoveryConfigsClientGetResponse struct { - DisasterRecoveryConfigsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientGetResult contains the result from method DisasterRecoveryConfigsClient.Get. -type DisasterRecoveryConfigsClientGetResult struct { ArmDisasterRecovery } // DisasterRecoveryConfigsClientListAuthorizationRulesResponse contains the response from method DisasterRecoveryConfigsClient.ListAuthorizationRules. type DisasterRecoveryConfigsClientListAuthorizationRulesResponse struct { - DisasterRecoveryConfigsClientListAuthorizationRulesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientListAuthorizationRulesResult contains the result from method DisasterRecoveryConfigsClient.ListAuthorizationRules. -type DisasterRecoveryConfigsClientListAuthorizationRulesResult struct { AuthorizationRuleListResult } // DisasterRecoveryConfigsClientListKeysResponse contains the response from method DisasterRecoveryConfigsClient.ListKeys. type DisasterRecoveryConfigsClientListKeysResponse struct { - DisasterRecoveryConfigsClientListKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientListKeysResult contains the result from method DisasterRecoveryConfigsClient.ListKeys. -type DisasterRecoveryConfigsClientListKeysResult struct { AccessKeys } // DisasterRecoveryConfigsClientListResponse contains the response from method DisasterRecoveryConfigsClient.List. type DisasterRecoveryConfigsClientListResponse struct { - DisasterRecoveryConfigsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientListResult contains the result from method DisasterRecoveryConfigsClient.List. -type DisasterRecoveryConfigsClientListResult struct { ArmDisasterRecoveryListResult } // EventHubsClientCreateOrUpdateAuthorizationRuleResponse contains the response from method EventHubsClient.CreateOrUpdateAuthorizationRule. type EventHubsClientCreateOrUpdateAuthorizationRuleResponse struct { - EventHubsClientCreateOrUpdateAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EventHubsClientCreateOrUpdateAuthorizationRuleResult contains the result from method EventHubsClient.CreateOrUpdateAuthorizationRule. -type EventHubsClientCreateOrUpdateAuthorizationRuleResult struct { AuthorizationRule } // EventHubsClientCreateOrUpdateResponse contains the response from method EventHubsClient.CreateOrUpdate. type EventHubsClientCreateOrUpdateResponse struct { - EventHubsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EventHubsClientCreateOrUpdateResult contains the result from method EventHubsClient.CreateOrUpdate. -type EventHubsClientCreateOrUpdateResult struct { Eventhub } // EventHubsClientDeleteAuthorizationRuleResponse contains the response from method EventHubsClient.DeleteAuthorizationRule. type EventHubsClientDeleteAuthorizationRuleResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // EventHubsClientDeleteResponse contains the response from method EventHubsClient.Delete. type EventHubsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // EventHubsClientGetAuthorizationRuleResponse contains the response from method EventHubsClient.GetAuthorizationRule. type EventHubsClientGetAuthorizationRuleResponse struct { - EventHubsClientGetAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EventHubsClientGetAuthorizationRuleResult contains the result from method EventHubsClient.GetAuthorizationRule. -type EventHubsClientGetAuthorizationRuleResult struct { AuthorizationRule } // EventHubsClientGetResponse contains the response from method EventHubsClient.Get. type EventHubsClientGetResponse struct { - EventHubsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EventHubsClientGetResult contains the result from method EventHubsClient.Get. -type EventHubsClientGetResult struct { Eventhub } // EventHubsClientListAuthorizationRulesResponse contains the response from method EventHubsClient.ListAuthorizationRules. type EventHubsClientListAuthorizationRulesResponse struct { - EventHubsClientListAuthorizationRulesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EventHubsClientListAuthorizationRulesResult contains the result from method EventHubsClient.ListAuthorizationRules. -type EventHubsClientListAuthorizationRulesResult struct { AuthorizationRuleListResult } // EventHubsClientListByNamespaceResponse contains the response from method EventHubsClient.ListByNamespace. type EventHubsClientListByNamespaceResponse struct { - EventHubsClientListByNamespaceResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EventHubsClientListByNamespaceResult contains the result from method EventHubsClient.ListByNamespace. -type EventHubsClientListByNamespaceResult struct { ListResult } // EventHubsClientListKeysResponse contains the response from method EventHubsClient.ListKeys. type EventHubsClientListKeysResponse struct { - EventHubsClientListKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EventHubsClientListKeysResult contains the result from method EventHubsClient.ListKeys. -type EventHubsClientListKeysResult struct { AccessKeys } // EventHubsClientRegenerateKeysResponse contains the response from method EventHubsClient.RegenerateKeys. type EventHubsClientRegenerateKeysResponse struct { - EventHubsClientRegenerateKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EventHubsClientRegenerateKeysResult contains the result from method EventHubsClient.RegenerateKeys. -type EventHubsClientRegenerateKeysResult struct { AccessKeys } // NamespacesClientCheckNameAvailabilityResponse contains the response from method NamespacesClient.CheckNameAvailability. type NamespacesClientCheckNameAvailabilityResponse struct { - NamespacesClientCheckNameAvailabilityResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientCheckNameAvailabilityResult contains the result from method NamespacesClient.CheckNameAvailability. -type NamespacesClientCheckNameAvailabilityResult struct { CheckNameAvailabilityResult } // NamespacesClientCreateOrUpdateAuthorizationRuleResponse contains the response from method NamespacesClient.CreateOrUpdateAuthorizationRule. type NamespacesClientCreateOrUpdateAuthorizationRuleResponse struct { - NamespacesClientCreateOrUpdateAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientCreateOrUpdateAuthorizationRuleResult contains the result from method NamespacesClient.CreateOrUpdateAuthorizationRule. -type NamespacesClientCreateOrUpdateAuthorizationRuleResult struct { AuthorizationRule } // NamespacesClientCreateOrUpdateNetworkRuleSetResponse contains the response from method NamespacesClient.CreateOrUpdateNetworkRuleSet. type NamespacesClientCreateOrUpdateNetworkRuleSetResponse struct { - NamespacesClientCreateOrUpdateNetworkRuleSetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientCreateOrUpdateNetworkRuleSetResult contains the result from method NamespacesClient.CreateOrUpdateNetworkRuleSet. -type NamespacesClientCreateOrUpdateNetworkRuleSetResult struct { NetworkRuleSet } -// NamespacesClientCreateOrUpdatePollerResponse contains the response from method NamespacesClient.CreateOrUpdate. -type NamespacesClientCreateOrUpdatePollerResponse struct { - // Poller contains an initialized poller. - Poller *NamespacesClientCreateOrUpdatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l NamespacesClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (NamespacesClientCreateOrUpdateResponse, error) { - respType := NamespacesClientCreateOrUpdateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.EHNamespace) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a NamespacesClientCreateOrUpdatePollerResponse from the provided client and resume token. -func (l *NamespacesClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *NamespacesClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("NamespacesClient.CreateOrUpdate", token, client.pl) - if err != nil { - return err - } - poller := &NamespacesClientCreateOrUpdatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // NamespacesClientCreateOrUpdateResponse contains the response from method NamespacesClient.CreateOrUpdate. type NamespacesClientCreateOrUpdateResponse struct { - NamespacesClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientCreateOrUpdateResult contains the result from method NamespacesClient.CreateOrUpdate. -type NamespacesClientCreateOrUpdateResult struct { EHNamespace } // NamespacesClientDeleteAuthorizationRuleResponse contains the response from method NamespacesClient.DeleteAuthorizationRule. type NamespacesClientDeleteAuthorizationRuleResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientDeletePollerResponse contains the response from method NamespacesClient.Delete. -type NamespacesClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *NamespacesClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l NamespacesClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (NamespacesClientDeleteResponse, error) { - respType := NamespacesClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a NamespacesClientDeletePollerResponse from the provided client and resume token. -func (l *NamespacesClientDeletePollerResponse) Resume(ctx context.Context, client *NamespacesClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("NamespacesClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &NamespacesClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil + // placeholder for future response values } // NamespacesClientDeleteResponse contains the response from method NamespacesClient.Delete. type NamespacesClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // NamespacesClientGetAuthorizationRuleResponse contains the response from method NamespacesClient.GetAuthorizationRule. type NamespacesClientGetAuthorizationRuleResponse struct { - NamespacesClientGetAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientGetAuthorizationRuleResult contains the result from method NamespacesClient.GetAuthorizationRule. -type NamespacesClientGetAuthorizationRuleResult struct { AuthorizationRule } // NamespacesClientGetNetworkRuleSetResponse contains the response from method NamespacesClient.GetNetworkRuleSet. type NamespacesClientGetNetworkRuleSetResponse struct { - NamespacesClientGetNetworkRuleSetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientGetNetworkRuleSetResult contains the result from method NamespacesClient.GetNetworkRuleSet. -type NamespacesClientGetNetworkRuleSetResult struct { NetworkRuleSet } // NamespacesClientGetResponse contains the response from method NamespacesClient.Get. type NamespacesClientGetResponse struct { - NamespacesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientGetResult contains the result from method NamespacesClient.Get. -type NamespacesClientGetResult struct { EHNamespace } // NamespacesClientListAuthorizationRulesResponse contains the response from method NamespacesClient.ListAuthorizationRules. type NamespacesClientListAuthorizationRulesResponse struct { - NamespacesClientListAuthorizationRulesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListAuthorizationRulesResult contains the result from method NamespacesClient.ListAuthorizationRules. -type NamespacesClientListAuthorizationRulesResult struct { AuthorizationRuleListResult } // NamespacesClientListByResourceGroupResponse contains the response from method NamespacesClient.ListByResourceGroup. type NamespacesClientListByResourceGroupResponse struct { - NamespacesClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListByResourceGroupResult contains the result from method NamespacesClient.ListByResourceGroup. -type NamespacesClientListByResourceGroupResult struct { EHNamespaceListResult } // NamespacesClientListKeysResponse contains the response from method NamespacesClient.ListKeys. type NamespacesClientListKeysResponse struct { - NamespacesClientListKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListKeysResult contains the result from method NamespacesClient.ListKeys. -type NamespacesClientListKeysResult struct { AccessKeys } // NamespacesClientListNetworkRuleSetResponse contains the response from method NamespacesClient.ListNetworkRuleSet. type NamespacesClientListNetworkRuleSetResponse struct { - NamespacesClientListNetworkRuleSetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListNetworkRuleSetResult contains the result from method NamespacesClient.ListNetworkRuleSet. -type NamespacesClientListNetworkRuleSetResult struct { NetworkRuleSetListResult } // NamespacesClientListResponse contains the response from method NamespacesClient.List. type NamespacesClientListResponse struct { - NamespacesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListResult contains the result from method NamespacesClient.List. -type NamespacesClientListResult struct { EHNamespaceListResult } // NamespacesClientRegenerateKeysResponse contains the response from method NamespacesClient.RegenerateKeys. type NamespacesClientRegenerateKeysResponse struct { - NamespacesClientRegenerateKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientRegenerateKeysResult contains the result from method NamespacesClient.RegenerateKeys. -type NamespacesClientRegenerateKeysResult struct { AccessKeys } // NamespacesClientUpdateResponse contains the response from method NamespacesClient.Update. type NamespacesClientUpdateResponse struct { - NamespacesClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientUpdateResult contains the result from method NamespacesClient.Update. -type NamespacesClientUpdateResult struct { EHNamespace } // OperationsClientListResponse contains the response from method OperationsClient.List. type OperationsClientListResponse struct { - OperationsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// OperationsClientListResult contains the result from method OperationsClient.List. -type OperationsClientListResult struct { OperationListResult } // PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.CreateOrUpdate. type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct { - PrivateEndpointConnectionsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientCreateOrUpdateResult contains the result from method PrivateEndpointConnectionsClient.CreateOrUpdate. -type PrivateEndpointConnectionsClientCreateOrUpdateResult struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientDeletePollerResponse contains the response from method PrivateEndpointConnectionsClient.Delete. -type PrivateEndpointConnectionsClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *PrivateEndpointConnectionsClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l PrivateEndpointConnectionsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (PrivateEndpointConnectionsClientDeleteResponse, error) { - respType := PrivateEndpointConnectionsClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a PrivateEndpointConnectionsClientDeletePollerResponse from the provided client and resume token. -func (l *PrivateEndpointConnectionsClientDeletePollerResponse) Resume(ctx context.Context, client *PrivateEndpointConnectionsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("PrivateEndpointConnectionsClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &PrivateEndpointConnectionsClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. type PrivateEndpointConnectionsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get. type PrivateEndpointConnectionsClientGetResponse struct { - PrivateEndpointConnectionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientGetResult contains the result from method PrivateEndpointConnectionsClient.Get. -type PrivateEndpointConnectionsClientGetResult struct { PrivateEndpointConnection } // PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.List. type PrivateEndpointConnectionsClientListResponse struct { - PrivateEndpointConnectionsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientListResult contains the result from method PrivateEndpointConnectionsClient.List. -type PrivateEndpointConnectionsClientListResult struct { PrivateEndpointConnectionListResult } // PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get. type PrivateLinkResourcesClientGetResponse struct { - PrivateLinkResourcesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateLinkResourcesClientGetResult contains the result from method PrivateLinkResourcesClient.Get. -type PrivateLinkResourcesClientGetResult struct { PrivateLinkResourcesListResult } // SchemaRegistryClientCreateOrUpdateResponse contains the response from method SchemaRegistryClient.CreateOrUpdate. type SchemaRegistryClientCreateOrUpdateResponse struct { - SchemaRegistryClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SchemaRegistryClientCreateOrUpdateResult contains the result from method SchemaRegistryClient.CreateOrUpdate. -type SchemaRegistryClientCreateOrUpdateResult struct { SchemaGroup } // SchemaRegistryClientDeleteResponse contains the response from method SchemaRegistryClient.Delete. type SchemaRegistryClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // SchemaRegistryClientGetResponse contains the response from method SchemaRegistryClient.Get. type SchemaRegistryClientGetResponse struct { - SchemaRegistryClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SchemaRegistryClientGetResult contains the result from method SchemaRegistryClient.Get. -type SchemaRegistryClientGetResult struct { SchemaGroup } // SchemaRegistryClientListByNamespaceResponse contains the response from method SchemaRegistryClient.ListByNamespace. type SchemaRegistryClientListByNamespaceResponse struct { - SchemaRegistryClientListByNamespaceResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SchemaRegistryClientListByNamespaceResult contains the result from method SchemaRegistryClient.ListByNamespace. -type SchemaRegistryClientListByNamespaceResult struct { SchemaGroupListResult } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_schemaregistry_client.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_schemaregistry_client.go index a533a8d5d050..ca8de46d1aa8 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_schemaregistry_client.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_schemaregistry_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type SchemaRegistryClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewSchemaRegistryClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *SchemaRegistryClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewSchemaRegistryClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SchemaRegistryClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &SchemaRegistryClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - @@ -106,7 +111,7 @@ func (client *SchemaRegistryClient) createOrUpdateCreateRequest(ctx context.Cont // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *SchemaRegistryClient) createOrUpdateHandleResponse(resp *http.Response) (SchemaRegistryClientCreateOrUpdateResponse, error) { - result := SchemaRegistryClientCreateOrUpdateResponse{RawResponse: resp} + result := SchemaRegistryClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SchemaGroup); err != nil { return SchemaRegistryClientCreateOrUpdateResponse{}, err } @@ -131,7 +136,7 @@ func (client *SchemaRegistryClient) Delete(ctx context.Context, resourceGroupNam if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return SchemaRegistryClientDeleteResponse{}, runtime.NewResponseError(resp) } - return SchemaRegistryClientDeleteResponse{RawResponse: resp}, nil + return SchemaRegistryClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -217,7 +222,7 @@ func (client *SchemaRegistryClient) getCreateRequest(ctx context.Context, resour // getHandleResponse handles the Get response. func (client *SchemaRegistryClient) getHandleResponse(resp *http.Response) (SchemaRegistryClientGetResponse, error) { - result := SchemaRegistryClientGetResponse{RawResponse: resp} + result := SchemaRegistryClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SchemaGroup); err != nil { return SchemaRegistryClientGetResponse{}, err } @@ -230,16 +235,32 @@ func (client *SchemaRegistryClient) getHandleResponse(resp *http.Response) (Sche // namespaceName - The Namespace name // options - SchemaRegistryClientListByNamespaceOptions contains the optional parameters for the SchemaRegistryClient.ListByNamespace // method. -func (client *SchemaRegistryClient) ListByNamespace(resourceGroupName string, namespaceName string, options *SchemaRegistryClientListByNamespaceOptions) *SchemaRegistryClientListByNamespacePager { - return &SchemaRegistryClientListByNamespacePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByNamespaceCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *SchemaRegistryClient) ListByNamespace(resourceGroupName string, namespaceName string, options *SchemaRegistryClientListByNamespaceOptions) *runtime.Pager[SchemaRegistryClientListByNamespaceResponse] { + return runtime.NewPager(runtime.PageProcessor[SchemaRegistryClientListByNamespaceResponse]{ + More: func(page SchemaRegistryClientListByNamespaceResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp SchemaRegistryClientListByNamespaceResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SchemaGroupListResult.NextLink) + Fetcher: func(ctx context.Context, page *SchemaRegistryClientListByNamespaceResponse) (SchemaRegistryClientListByNamespaceResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByNamespaceCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return SchemaRegistryClientListByNamespaceResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SchemaRegistryClientListByNamespaceResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SchemaRegistryClientListByNamespaceResponse{}, runtime.NewResponseError(resp) + } + return client.listByNamespaceHandleResponse(resp) }, - } + }) } // listByNamespaceCreateRequest creates the ListByNamespace request. @@ -276,7 +297,7 @@ func (client *SchemaRegistryClient) listByNamespaceCreateRequest(ctx context.Con // listByNamespaceHandleResponse handles the ListByNamespace response. func (client *SchemaRegistryClient) listByNamespaceHandleResponse(resp *http.Response) (SchemaRegistryClientListByNamespaceResponse, error) { - result := SchemaRegistryClientListByNamespaceResponse{RawResponse: resp} + result := SchemaRegistryClientListByNamespaceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SchemaGroupListResult); err != nil { return SchemaRegistryClientListByNamespaceResponse{}, err } diff --git a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_time_rfc3339.go b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_time_rfc3339.go index 9af5c61bf5c6..9cfdb0d4c41a 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/eventhub/armeventhub/zz_generated_time_rfc3339.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/resources/armresources/go.mod b/sdk/resourcemanager/resources/armresources/go.mod index 86222dc2baeb..c2e9fbaee3f0 100644 --- a/sdk/resourcemanager/resources/armresources/go.mod +++ b/sdk/resourcemanager/resources/armresources/go.mod @@ -5,17 +5,25 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v0.5.0 + github.com/stretchr/testify v1.7.0 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect github.com/golang-jwt/jwt v3.2.1+incompatible // indirect github.com/google/uuid v1.1.1 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/resources/armresources/go.sum b/sdk/resourcemanager/resources/armresources/go.sum index 56d1c32628ae..e64f0a771d84 100644 --- a/sdk/resourcemanager/resources/armresources/go.sum +++ b/sdk/resourcemanager/resources/armresources/go.sum @@ -4,10 +4,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopI github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 h1:gYG7I0WxtCnHSWOFLbWCHLBWr+yzI5UeU9KuGZajf5U= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0/go.mod h1:bwEUbGO8V/7KcrqwO14ADZ0m4AkTvSKx3ma68FRc3Bg= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v0.5.0 h1:b2/sc5zb7jUkbweEFbIswlNyAguvT5JbhscrD+E1AEk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v0.5.0/go.mod h1:SoY/eDnXPi1TgNYBsWL9PGOwJR0xUf4zHL/fUnQHqDM= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= @@ -45,9 +50,11 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestDeploymentsClient.json b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestDeploymentsClient.json index b947007eb557..a143021207b9 100644 --- a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestDeploymentsClient.json +++ b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestDeploymentsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:19:49 GMT", + "Date": "Thu, 14 Apr 2022 08:01:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T041949Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080109Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -48,7 +48,7 @@ "Authorization": "Sanitized", "Content-Length": "50", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmanagementgroups/v0.4.0 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "name": "00000000-0000-0000-0000-000000000000000" @@ -60,7 +60,7 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "Content-Length": "215", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:19:50 GMT", + "Date": "Thu, 14 Apr 2022 08:01:13 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", "Pragma": "no-cache", @@ -73,8 +73,8 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-managementgroups-requests": "59", "x-ms-ratelimit-remaining-tenant-writes": "1199", - "x-ms-request-id": "koreasouth:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T041951Z:00000000-0000-0000-0000-000000000000" + "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080113Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000", @@ -90,7 +90,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.4.0 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -100,7 +100,7 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:00 GMT", + "Date": "Thu, 14 Apr 2022 08:01:24 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", "Pragma": "no-cache", @@ -114,8 +114,8 @@ "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "koreasouth:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042001Z:00000000-0000-0000-0000-000000000000" + "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080124Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000", @@ -130,7 +130,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.4.0 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -139,7 +139,7 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:11 GMT", + "Date": "Thu, 14 Apr 2022 08:01:35 GMT", "Expires": "-1", "Pragma": "no-cache", "request-id": "00000000-0000-0000-0000-000000000000", @@ -151,8 +151,8 @@ "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-reads": "11998", - "x-ms-request-id": "koreasouth:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042012Z:00000000-0000-0000-0000-000000000000" + "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080135Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000", @@ -162,8 +162,8 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "displayName": "00000000-0000-0000-0000-000000000000000", "details": { - "version": 1, - "updatedTime": "2022-03-14T04:19:55.9115583Z", + "version": 11, + "updatedTime": "2022-04-14T08:01:18.9108914Z", "updatedBy": "00000000-0000-0000-0000-000000000000" } } @@ -176,7 +176,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.4.0 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -185,7 +185,7 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:12 GMT", + "Date": "Thu, 14 Apr 2022 08:01:35 GMT", "Expires": "-1", "Pragma": "no-cache", "request-id": "00000000-0000-0000-0000-000000000000", @@ -196,9 +196,10 @@ "x-ba-restapi": "0.0.0.0", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", "x-ms-ratelimit-remaining-tenant-reads": "11997", - "x-ms-request-id": "koreasouth:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042012Z:00000000-0000-0000-0000-000000000000" + "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080135Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000", @@ -208,8 +209,8 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "displayName": "00000000-0000-0000-0000-000000000000000", "details": { - "version": 1, - "updatedTime": "2022-03-14T04:19:55.9115583Z", + "version": 11, + "updatedTime": "2022-04-14T08:01:18.9108914Z", "updatedBy": "00000000-0000-0000-0000-000000000000", "parent": { "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000", @@ -229,7 +230,7 @@ "Authorization": "Sanitized", "Content-Length": "330", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "West US", @@ -245,11 +246,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/operationStatuses/08585543752717606617?api-version=2021-04-01", + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/operationStatuses/08585516835858196689?api-version=2021-04-01", "Cache-Control": "no-cache", - "Content-Length": "826", + "Content-Length": "825", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:18 GMT", + "Date": "Thu, 14 Apr 2022 08:01:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -257,7 +258,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042019Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080144Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG", @@ -276,8 +277,8 @@ "parameters": {}, "mode": "Incremental", "provisioningState": "Accepted", - "timestamp": "2022-03-14T04:20:18.2247889Z", - "duration": "PT0.0055572S", + "timestamp": "2022-04-14T08:01:44.1222881Z", + "duration": "PT0.005873S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [], "dependencies": [] @@ -285,13 +286,13 @@ } }, { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/operationStatuses/08585543752717606617?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/operationStatuses/08585516835858196689?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -300,7 +301,7 @@ "Content-Encoding": "gzip", "Content-Length": "20", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:19 GMT", + "Date": "Thu, 14 Apr 2022 08:01:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -309,20 +310,20 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-reads": "11996", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042019Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080146Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "status": "Running" } }, { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/operationStatuses/08585543752717606617?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/operationStatuses/08585516835858196689?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -331,7 +332,7 @@ "Content-Encoding": "gzip", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:49 GMT", + "Date": "Thu, 14 Apr 2022 08:01:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -340,7 +341,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-reads": "11995", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042050Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080158Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "status": "Succeeded" @@ -353,16 +354,16 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Encoding": "gzip", - "Content-Length": "861", + "Content-Length": "860", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:50 GMT", + "Date": "Thu, 14 Apr 2022 08:01:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -371,7 +372,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-reads": "11994", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042050Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080159Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG", @@ -390,8 +391,8 @@ "parameters": {}, "mode": "Incremental", "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:20:19.6410825Z", - "duration": "PT1.4218508S", + "timestamp": "2022-04-14T08:01:46.3261131Z", + "duration": "PT2.209698S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [], "dependencies": [], @@ -406,14 +407,14 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:20:50 GMT", + "Date": "Thu, 14 Apr 2022 08:02:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -421,7 +422,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-reads": "11993", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042051Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080201Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -433,16 +434,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Encoding": "gzip", - "Content-Length": "861", + "Content-Length": "860", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:51 GMT", + "Date": "Thu, 14 Apr 2022 08:02:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -451,7 +452,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-reads": "11992", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042051Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080202Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG", @@ -470,8 +471,8 @@ "parameters": {}, "mode": "Incremental", "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:20:19.6410825Z", - "duration": "PT1.4218508S", + "timestamp": "2022-04-14T08:01:46.3261131Z", + "duration": "PT2.209698S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [], "dependencies": [], @@ -480,65 +481,6 @@ } } }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "873", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042052Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG", - "name": "go-test-deploymentMG", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:20:19.6410825Z", - "duration": "PT1.4218508S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - } - ] - } - }, { "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/validate?api-version=2021-04-01", "RequestMethod": "POST", @@ -549,7 +491,7 @@ "Authorization": "Sanitized", "Content-Length": "330", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "West US", @@ -568,7 +510,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:52 GMT", + "Date": "Thu, 14 Apr 2022 08:02:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -578,7 +520,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042052Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080204Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG", @@ -615,7 +557,7 @@ "Accept-Encoding": "gzip", "Authorization": "Sanitized", "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -623,7 +565,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:20:52 GMT", + "Date": "Thu, 14 Apr 2022 08:02:05 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -633,7 +575,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042053Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080205Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "template": { @@ -653,14 +595,14 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:20:54 GMT", + "Date": "Thu, 14 Apr 2022 08:02:08 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Resources/operationResults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1NR05TLTAwMDAwMDAwOjJEMDAwMDoyRDAwMDA6MkQwMDAwOjJEMDAwMDAwMDAwMDAwMDAwLUdPOjJEVEVTVDoyRERFUExPWU1FTlRNRy0iLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", "Pragma": "no-cache", @@ -670,7 +612,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-deletes": "14999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042054Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080208Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -681,21 +623,21 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Mon, 14 Mar 2022 04:21:10 GMT", + "Date": "Thu, 14 Apr 2022 08:02:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11990", + "x-ms-ratelimit-remaining-tenant-reads": "11991", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042110Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080224Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -706,7 +648,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.4.0 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, @@ -716,7 +658,7 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "Content-Length": "215", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:21:12 GMT", + "Date": "Thu, 14 Apr 2022 08:02:26 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", "Pragma": "no-cache", @@ -729,8 +671,8 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-managementgroups-requests": "59", "x-ms-ratelimit-remaining-tenant-deletes": "14998", - "x-ms-request-id": "koreasouth:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042112Z:00000000-0000-0000-0000-000000000000" + "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080227Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000", @@ -746,7 +688,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.4.0 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -755,7 +697,7 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:21:22 GMT", + "Date": "Thu, 14 Apr 2022 08:02:37 GMT", "Expires": "-1", "Pragma": "no-cache", "request-id": "00000000-0000-0000-0000-000000000000", @@ -766,9 +708,9 @@ "x-ba-restapi": "0.0.0.0", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11989", - "x-ms-request-id": "koreasouth:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042123Z:00000000-0000-0000-0000-000000000000" + "x-ms-ratelimit-remaining-tenant-reads": "11990", + "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080237Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000", @@ -782,7 +724,7 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 404, @@ -790,7 +732,7 @@ "Cache-Control": "no-cache", "Content-Length": "109", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:21:23 GMT", + "Date": "Thu, 14 Apr 2022 08:02:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -799,7 +741,7 @@ "x-ms-failure-cause": "gateway", "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042124Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080238Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -812,7 +754,7 @@ "Authorization": "Sanitized", "Content-Length": "679", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -860,11 +802,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/operationStatuses/08585543751996663005?api-version=2021-04-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/operationStatuses/08585516835251752385?api-version=2021-04-01", "Cache-Control": "no-cache", "Content-Length": "665", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:21:29 GMT", + "Date": "Thu, 14 Apr 2022 08:02:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -872,7 +814,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042130Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080244Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope", @@ -888,8 +830,8 @@ }, "mode": "Incremental", "provisioningState": "Accepted", - "timestamp": "2022-03-14T04:21:28.6869927Z", - "duration": "PT0.0008177S", + "timestamp": "2022-04-14T08:02:42.2293127Z", + "duration": "PT0.0004621S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [ { @@ -909,22 +851,22 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/operationStatuses/08585543751996663005?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/operationStatuses/08585516835251752385?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Encoding": "gzip", - "Content-Length": "21", + "Content-Length": "20", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:21:30 GMT", + "Date": "Thu, 14 Apr 2022 08:02:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -933,20 +875,20 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11998", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042130Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080244Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { - "status": "Accepted" + "status": "Running" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/operationStatuses/08585543751996663005?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/operationStatuses/08585516835251752385?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -955,7 +897,7 @@ "Content-Encoding": "gzip", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:00 GMT", + "Date": "Thu, 14 Apr 2022 08:02:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -964,7 +906,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11997", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042201Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080255Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "status": "Succeeded" @@ -977,16 +919,16 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Encoding": "gzip", - "Content-Length": "953", + "Content-Length": "950", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:00 GMT", + "Date": "Thu, 14 Apr 2022 08:02:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -995,7 +937,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11996", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042201Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080255Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope", @@ -1011,8 +953,8 @@ }, "mode": "Incremental", "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:21:40.6459752Z", - "duration": "PT11.9598002S", + "timestamp": "2022-04-14T08:02:50.31875Z", + "duration": "PT8.0898994S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [ { @@ -1053,16 +995,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Encoding": "gzip", - "Content-Length": "953", + "Content-Length": "950", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:01 GMT", + "Date": "Thu, 14 Apr 2022 08:02:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1071,7 +1013,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11995", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042202Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080256Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope", @@ -1087,8 +1029,8 @@ }, "mode": "Incremental", "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:21:40.6459752Z", - "duration": "PT11.9598002S", + "timestamp": "2022-04-14T08:02:50.31875Z", + "duration": "PT8.0898994S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [ { @@ -1121,86 +1063,6 @@ } } }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "965", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042202Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope", - "name": "go-test-deployment-scope", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:21:40.6459752Z", - "duration": "PT11.9598002S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "myparameter": { - "type": "Object", - "value": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - } - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/availabilitySet1" - } - ] - } - } - ] - } - }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/validate?api-version=2021-04-01", "RequestMethod": "POST", @@ -1211,7 +1073,7 @@ "Authorization": "Sanitized", "Content-Length": "679", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -1262,7 +1124,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:02 GMT", + "Date": "Thu, 14 Apr 2022 08:02:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1272,7 +1134,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042203Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080257Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope", @@ -1322,7 +1184,7 @@ "Accept-Encoding": "gzip", "Authorization": "Sanitized", "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -1330,7 +1192,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:03 GMT", + "Date": "Thu, 14 Apr 2022 08:02:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1340,7 +1202,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042204Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080258Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "template": { @@ -1386,16 +1248,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:22:05 GMT", + "Date": "Thu, 14 Apr 2022 08:03:00 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMjM2LUdPOjJEVEVTVDoyRERFUExPWU1FTlQ6MkRTQ09QRS0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQ6MkRTQ09QRS0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1403,32 +1265,32 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042206Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080300Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMjM2LUdPOjJEVEVTVDoyRERFUExPWU1FTlQ6MkRTQ09QRS0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQ6MkRTQ09QRS0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Mon, 14 Mar 2022 04:22:21 GMT", + "Date": "Thu, 14 Apr 2022 08:03:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-ratelimit-remaining-subscription-reads": "11994", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042221Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080316Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -1438,7 +1300,7 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 404, @@ -1446,16 +1308,16 @@ "Cache-Control": "no-cache", "Content-Length": "108", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:21 GMT", + "Date": "Thu, 14 Apr 2022 08:03:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-failure-cause": "gateway", - "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-ratelimit-remaining-subscription-reads": "11993", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042222Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080317Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -1468,7 +1330,7 @@ "Authorization": "Sanitized", "Content-Length": "330", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "West US", @@ -1484,11 +1346,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/operationStatuses/08585543751426427752?api-version=2021-04-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/operationStatuses/08585516834851691284?api-version=2021-04-01", "Cache-Control": "no-cache", "Content-Length": "795", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:27 GMT", + "Date": "Thu, 14 Apr 2022 08:03:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1496,7 +1358,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1197", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042227Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080326Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription", @@ -1515,8 +1377,8 @@ "parameters": {}, "mode": "Incremental", "provisioningState": "Accepted", - "timestamp": "2022-03-14T04:22:27.2925805Z", - "duration": "PT0.0007752S", + "timestamp": "2022-04-14T08:03:25.1534558Z", + "duration": "PT0.0006276S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [], "dependencies": [] @@ -1524,13 +1386,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/operationStatuses/08585543751426427752?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/operationStatuses/08585516834851691284?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -1539,16 +1401,16 @@ "Content-Encoding": "gzip", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:27 GMT", + "Date": "Thu, 14 Apr 2022 08:03:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-ratelimit-remaining-subscription-reads": "11992", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042228Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080327Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "status": "Succeeded" @@ -1561,7 +1423,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -1570,16 +1432,16 @@ "Content-Encoding": "gzip", "Content-Length": "830", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:27 GMT", + "Date": "Thu, 14 Apr 2022 08:03:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-ratelimit-remaining-subscription-reads": "11991", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042228Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080328Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription", @@ -1598,8 +1460,8 @@ "parameters": {}, "mode": "Incremental", "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:22:28.1340581Z", - "duration": "PT0.8422528S", + "timestamp": "2022-04-14T08:03:26.1603653Z", + "duration": "PT1.0075371S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [], "dependencies": [], @@ -1616,7 +1478,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -1625,16 +1487,16 @@ "Content-Encoding": "gzip", "Content-Length": "830", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:29 GMT", + "Date": "Thu, 14 Apr 2022 08:03:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-ratelimit-remaining-subscription-reads": "11990", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042229Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080330Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription", @@ -1653,8 +1515,8 @@ "parameters": {}, "mode": "Incremental", "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:22:28.1340581Z", - "duration": "PT0.8422528S", + "timestamp": "2022-04-14T08:03:26.1603653Z", + "duration": "PT1.0075371S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [], "dependencies": [], @@ -1664,22467 +1526,223 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/whatIf?api-version=2021-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + ":method": "POST", + "Accept": "application/json", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "Content-Length": "330", + "Content-Type": "application/json", + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": { + "properties": { + "mode": "Incremental", + "parametersLink": { + "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" + }, + "templateLink": { + "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" + } + }, + "location": "West US" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:03:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080331Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", - "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, - "StatusCode": 200, + "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:31 GMT", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:03:46 GMT", "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080346Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:04:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "Pragma": "no-cache", + "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11988", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042231Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080402Z:00000000-0000-0000-0000-000000000000" }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10401755823284452262", - "name": "PolicyDeployment_10401755823284452262", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-09T11:32:59.078717Z", - "duration": "PT28.7047652S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-r33qgeqf62jlu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-r33qgeqf62jlu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-r33qgeqf62jlu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-r33qgeqf62jlu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "go-test-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-r33qgeqf62jlu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-r33qgeqf62jlu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-r33qgeqf62jlu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-r33qgeqf62jlu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-r33qgeqf62jlu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-r33qgeqf62jlu" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-r33qgeqf62jlu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-r33qgeqf62jlu" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-r33qgeqf62jlu", - "name": "deployGetResourceProperties-r33qgeqf62jlu", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "18373925285880842685", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-09T11:22:20.2034593Z", - "duration": "PT0.3150307S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_A0", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2823 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "go-sdk-test-rg", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_2327783298090927060", - "name": "PolicyDeployment_2327783298090927060", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vm" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-09T11:03:56.5338639Z", - "duration": "PT27.0952396S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-jynzavvlvziyc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-jynzavvlvziyc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-jynzavvlvziyc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-jynzavvlvziyc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "go-test-vm", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-jynzavvlvziyc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-jynzavvlvziyc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-jynzavvlvziyc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-jynzavvlvziyc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-jynzavvlvziyc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-jynzavvlvziyc" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-jynzavvlvziyc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-jynzavvlvziyc" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_12520903301157053418", - "name": "PolicyDeployment_12520903301157053418", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-09T10:55:07.8912808Z", - "duration": "PT26.7921978S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-msq56mochx37o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-msq56mochx37o" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-msq56mochx37o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-msq56mochx37o" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "go-test-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-msq56mochx37o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-msq56mochx37o" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-msq56mochx37o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-msq56mochx37o" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-msq56mochx37o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-msq56mochx37o" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-msq56mochx37o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-msq56mochx37o" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-msq56mochx37o", - "name": "deployGetResourceProperties-msq56mochx37o", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "4401379223367282442", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-09T10:44:12.408375Z", - "duration": "PT0.3337148S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_A0", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2823 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "go-sdk-test-rg", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_5019297783095556541", - "name": "PolicyDeployment_5019297783095556541", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-09T10:24:07.4790879Z", - "duration": "PT37.7430915S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qzdpbuhzu4vnk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qzdpbuhzu4vnk" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qzdpbuhzu4vnk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qzdpbuhzu4vnk" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "go-test-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-qzdpbuhzu4vnk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-qzdpbuhzu4vnk" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qzdpbuhzu4vnk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qzdpbuhzu4vnk" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-qzdpbuhzu4vnk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-qzdpbuhzu4vnk" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-qzdpbuhzu4vnk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-qzdpbuhzu4vnk" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_3301019806977803980", - "name": "PolicyDeployment_3301019806977803980", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-09T10:20:21.1505421Z", - "duration": "PT25.8966089S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-zwpsmngvuq7r6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-zwpsmngvuq7r6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-zwpsmngvuq7r6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-zwpsmngvuq7r6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "go-test-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-zwpsmngvuq7r6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-zwpsmngvuq7r6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-zwpsmngvuq7r6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-zwpsmngvuq7r6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-zwpsmngvuq7r6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-zwpsmngvuq7r6" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-zwpsmngvuq7r6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-zwpsmngvuq7r6" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_13471956933075393011", - "name": "PolicyDeployment_13471956933075393011", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-09T10:14:09.4571363Z", - "duration": "PT24.5687565S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-mzhk32k2y53s4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-mzhk32k2y53s4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-mzhk32k2y53s4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-mzhk32k2y53s4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "go-test-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-mzhk32k2y53s4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-mzhk32k2y53s4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-mzhk32k2y53s4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-mzhk32k2y53s4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-mzhk32k2y53s4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-mzhk32k2y53s4" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-mzhk32k2y53s4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-mzhk32k2y53s4" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_16320081239237942098", - "name": "PolicyDeployment_16320081239237942098", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vm" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-09T10:09:43.0556921Z", - "duration": "PT29.9892674S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-4uhwlgeczp2xi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-4uhwlgeczp2xi" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-4uhwlgeczp2xi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-4uhwlgeczp2xi" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "go-test-vm", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-4uhwlgeczp2xi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-4uhwlgeczp2xi" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-4uhwlgeczp2xi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-4uhwlgeczp2xi" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-4uhwlgeczp2xi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-4uhwlgeczp2xi" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-4uhwlgeczp2xi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-4uhwlgeczp2xi" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_15489542204662286290", - "name": "PolicyDeployment_15489542204662286290", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vm" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-09T09:29:48.389477Z", - "duration": "PT31.3227747S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-n64o5e7ad2uaa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-n64o5e7ad2uaa" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-n64o5e7ad2uaa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-n64o5e7ad2uaa" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "go-test-vm", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-n64o5e7ad2uaa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-n64o5e7ad2uaa" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-n64o5e7ad2uaa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-n64o5e7ad2uaa" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-n64o5e7ad2uaa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-n64o5e7ad2uaa" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-n64o5e7ad2uaa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-n64o5e7ad2uaa" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6769107637107290029", - "name": "PolicyDeployment_6769107637107290029", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vm" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-09T08:40:11.6959601Z", - "duration": "PT27.7086192S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qmx5qbrysi6e6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qmx5qbrysi6e6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qmx5qbrysi6e6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qmx5qbrysi6e6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "go-test-vm", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-qmx5qbrysi6e6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-qmx5qbrysi6e6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qmx5qbrysi6e6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qmx5qbrysi6e6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-qmx5qbrysi6e6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-qmx5qbrysi6e6" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-qmx5qbrysi6e6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-qmx5qbrysi6e6" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_11347216968520950721", - "name": "PolicyDeployment_11347216968520950721", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-test-vm" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-08T09:37:58.5536282Z", - "duration": "PT27.8600599S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-7dqhh7xczhgfo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-7dqhh7xczhgfo" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-7dqhh7xczhgfo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-7dqhh7xczhgfo" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "go-test-vm", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-7dqhh7xczhgfo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-7dqhh7xczhgfo" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-7dqhh7xczhgfo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-7dqhh7xczhgfo" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-7dqhh7xczhgfo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-7dqhh7xczhgfo" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-7dqhh7xczhgfo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-7dqhh7xczhgfo" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_14847635350191767668", - "name": "PolicyDeployment_14847635350191767668", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-sdk-test-vm-5544" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-08T09:20:59.6041278Z", - "duration": "PT25.683496S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ddq7ju4is72ga", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ddq7ju4is72ga" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ddq7ju4is72ga", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ddq7ju4is72ga" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/go-sdk-test-vm-5544", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "go-sdk-test-vm-5544", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ddq7ju4is72ga", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ddq7ju4is72ga" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ddq7ju4is72ga", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ddq7ju4is72ga" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ddq7ju4is72ga", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ddq7ju4is72ga" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-ddq7ju4is72ga", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-ddq7ju4is72ga" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_4480667680647423832", - "name": "PolicyDeployment_4480667680647423832", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "go-sdk-test-vm-2004" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-08T09:01:30.1448983Z", - "duration": "PT27.9907911S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-x5hqsdcnf4gbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-x5hqsdcnf4gbm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-x5hqsdcnf4gbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-x5hqsdcnf4gbm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/go-sdk-test-vm-2004", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "go-sdk-test-vm-2004", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-x5hqsdcnf4gbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-x5hqsdcnf4gbm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-x5hqsdcnf4gbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-x5hqsdcnf4gbm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-x5hqsdcnf4gbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-x5hqsdcnf4gbm" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-x5hqsdcnf4gbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-x5hqsdcnf4gbm" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_14825649709516540676", - "name": "PolicyDeployment_14825649709516540676", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm-2131" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-08T07:37:05.4308507Z", - "duration": "PT27.1977368S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-w6byb7vs5hctk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-w6byb7vs5hctk" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-w6byb7vs5hctk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-w6byb7vs5hctk" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm-2131", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm-2131", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-w6byb7vs5hctk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-w6byb7vs5hctk" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-w6byb7vs5hctk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-w6byb7vs5hctk" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-w6byb7vs5hctk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-w6byb7vs5hctk" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-w6byb7vs5hctk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-w6byb7vs5hctk" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_17855988922480533177", - "name": "PolicyDeployment_17855988922480533177", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm--8781" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-08T07:25:31.5996943Z", - "duration": "PT24.0352247S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hz7v453yz2y4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hz7v453yz2y4i" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hz7v453yz2y4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hz7v453yz2y4i" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm--8781", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm--8781", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-hz7v453yz2y4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-hz7v453yz2y4i" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hz7v453yz2y4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hz7v453yz2y4i" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-hz7v453yz2y4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-hz7v453yz2y4i" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-hz7v453yz2y4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-hz7v453yz2y4i" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_16725023172144060351", - "name": "PolicyDeployment_16725023172144060351", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm--6677" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-08T06:38:07.424455Z", - "duration": "PT30.7821334S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-fcs4ax6t7p5p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-fcs4ax6t7p5p4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-fcs4ax6t7p5p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-fcs4ax6t7p5p4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm--6677", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm--6677", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-fcs4ax6t7p5p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-fcs4ax6t7p5p4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-fcs4ax6t7p5p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-fcs4ax6t7p5p4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-fcs4ax6t7p5p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-fcs4ax6t7p5p4" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-fcs4ax6t7p5p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-fcs4ax6t7p5p4" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_8387229966958767558", - "name": "PolicyDeployment_8387229966958767558", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "testVirtualMachine" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-08T03:28:15.9689459Z", - "duration": "PT28.5029422S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-kt3vomzgiij2o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-kt3vomzgiij2o" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-kt3vomzgiij2o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-kt3vomzgiij2o" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/testVirtualMachine", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "testVirtualMachine", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-kt3vomzgiij2o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-kt3vomzgiij2o" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-kt3vomzgiij2o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-kt3vomzgiij2o" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-kt3vomzgiij2o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-kt3vomzgiij2o" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-kt3vomzgiij2o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-kt3vomzgiij2o" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ehhkxdl57keak", - "name": "deployGetResourceProperties-ehhkxdl57keak", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "8388191449855544479", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-03T07:40:34.7214283Z", - "duration": "PT0.2337556S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 3 - }, - "tags": { - "aks-managed-createOperationID": "00000000-0000-0000-0000-000000000000", - "aks-managed-creationSource": "vmssclient-aks-nodepool1-16056062-vmss", - "aks-managed-orchestrator": "Kubernetes:1.21.9", - "aks-managed-poolName": "nodepool1", - "aks-managed-resourceNameSuffix": "42702445", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhaakstest_qiaozhaakstest-aks_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/qiaozhaakstest-aks-agentpool": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-nodepool1-16056062-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEufRNE1wPOfPDKLHPRzuLqH\u002BQp3Dvu9p6r8whdF69OpDzSR1pOtyjTEzf1Ozt/VDaHyCO6piONaSGSoihYAQSMvy07x3VReG9bvWq6JcoDdEqUCqFn1\u002By2W9Kzb51txbdBHkcMjeo4RAniiGSrpWnhFUNL1Ur5uFcV1fHyPDlXpvQO7/5sjQVHoVGdf7Tyb/qmCCsco/vdkDmSKOUXzrwjoNLxLR2Crc9JMrNxWHBfMoM/h/8PuKerfK6qMPeC0CXeLUyTOnh9Yt8VzkRnHlbwiAzL9HwXRNSVmRLy4ZtaP9YTITqLYh1ziIcCa1I/WzeIngdWOvp01huQy5qCMBF fareast\\qiaozha@DESKTOP-PCHKKRI\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2022.02.15" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-nodepool1-16056062-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhaakstest_qiaozhaakstest-aks_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-42702445/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhaakstest_qiaozhaakstest-aks_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhaakstest_qiaozhaakstest-aks_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-nodepool1-16056062-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2822 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_qiaozhaakstest_qiaozhaakstest-aks_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-nodepool1-16056062-vmss", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_1391076825655264671", - "name": "PolicyDeployment_1391076825655264671", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_qiaozhaakstest_qiaozhaakstest-aks_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-nodepool1-16056062-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-03T07:41:06.6895494Z", - "duration": "PT51.1725989S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ehhkxdl57keak", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ehhkxdl57keak" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ehhkxdl57keak", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ehhkxdl57keak" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhaakstest_qiaozhaakstest-aks_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-nodepool1-16056062-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-nodepool1-16056062-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ehhkxdl57keak", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ehhkxdl57keak" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ehhkxdl57keak", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ehhkxdl57keak" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ehhkxdl57keak", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ehhkxdl57keak" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhaakstest_qiaozhaakstest-aks_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-ehhkxdl57keak", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-ehhkxdl57keak" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ypcdwuzduaoku", - "name": "deployGetResourceProperties-ypcdwuzduaoku", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "8742846707545474833", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-02T09:01:27.9250503Z", - "duration": "PT0.3209541S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 3 - }, - "tags": { - "aks-managed-createOperationID": "00000000-0000-0000-0000-000000000000", - "aks-managed-creationSource": "vmssclient-aks-nodepool1-32300621-vmss", - "aks-managed-orchestrator": "Kubernetes:1.21.9", - "aks-managed-poolName": "nodepool1", - "aks-managed-resourceNameSuffix": "40180051", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_jstest-aks_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/jstest-aks-agentpool": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-nodepool1-32300621-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDU4bEoTRV5adf2fp2sTrio9ZmG72J1FhNSU7ZBMcWebvu4ilkp9DR6WRXKrkj5qccUtCPUP\u002BG22fpGzEHuwWaTOs8Rqzc/KKUJnbYAP9pkDyylxR7K7\u002B2\u002BaH8bqGNzLhUaVDtFQIv\u002B6rbG7HTzeYUzjNwH1VQt8mFshG4SfRZ0RrXhyWUuaQatTVDQ47aNFlrUz1sbPPLTIGSvByV198kmF2ayne2SagmUUUdjEPv08VBsYVBYIEpe2YM8JGxKMXlIRHQ2IIpcW7pP0OBs6nz9Y2rFuODXL3zs\u002BwOKJYhOAAgYulRpieAI5Bl4ngdbEOYl12FdVNkuoiY7mn6lhtRd" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2022.02.15" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-nodepool1-32300621-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_jstest-aks_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-40180051/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_jstest-aks_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_jstest-aks_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-nodepool1-32300621-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2822 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_myjstest_jstest-aks_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-nodepool1-32300621-vmss", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6498419314197898818", - "name": "PolicyDeployment_6498419314197898818", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_myjstest_jstest-aks_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-nodepool1-32300621-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-02T09:01:59.82678Z", - "duration": "PT51.2922175S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ypcdwuzduaoku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ypcdwuzduaoku" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ypcdwuzduaoku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ypcdwuzduaoku" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_jstest-aks_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-nodepool1-32300621-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-nodepool1-32300621-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ypcdwuzduaoku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ypcdwuzduaoku" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ypcdwuzduaoku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ypcdwuzduaoku" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ypcdwuzduaoku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ypcdwuzduaoku" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_jstest-aks_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-ypcdwuzduaoku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-ypcdwuzduaoku" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-iisn464j5wkd2", - "name": "deployGetResourceProperties-iisn464j5wkd2", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "13251726690516645827", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-02T06:53:12.3840131Z", - "duration": "PT0.1998444S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Basic_A0", - "tier": "Basic", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "vmss1074274463", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "vmss1074274463", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/createVMSS1074274463/providers/Microsoft.Network/virtualNetworks/network1074274463/subnets/subnet1074274463" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2823 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "createVMSS1074274463", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/vmss1074274463", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_12703629242557706278", - "name": "PolicyDeployment_12703629242557706278", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "createVMSS1074274463" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vmss1074274463" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-02T06:53:40.8168949Z", - "duration": "PT17M58.8067312S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-iisn464j5wkd2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-iisn464j5wkd2" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-iisn464j5wkd2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-iisn464j5wkd2" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/createVMSS1074274463/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1074274463", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "vmss1074274463", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-iisn464j5wkd2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-iisn464j5wkd2" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-iisn464j5wkd2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-iisn464j5wkd2" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-iisn464j5wkd2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-iisn464j5wkd2" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/createVMSS1074274463/providers/Microsoft.Resources/deployments/deployAddUAName-iisn464j5wkd2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-iisn464j5wkd2" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceGroupBeingDeleted", - "message": "The resource group \u0027createVMSS1074274463\u0027 is in deprovisioning state and cannot perform this operation." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_649226781737147718", - "name": "PolicyDeployment_649226781737147718", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm247403541" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-03-02T06:35:06.0783183Z", - "duration": "PT28.355264S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-byfmhzaqbq4gu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-byfmhzaqbq4gu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-byfmhzaqbq4gu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-byfmhzaqbq4gu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm247403541", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm247403541", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-byfmhzaqbq4gu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-byfmhzaqbq4gu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-byfmhzaqbq4gu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-byfmhzaqbq4gu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-byfmhzaqbq4gu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-byfmhzaqbq4gu" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-byfmhzaqbq4gu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-byfmhzaqbq4gu" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-grao7txirj5iy", - "name": "deployGetResourceProperties-grao7txirj5iy", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "11928146704897767725", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-17T08:30:01.524398Z", - "duration": "PT0.4214828S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Basic_A0", - "tier": "Basic", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "vmss2029024728", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "vmss2029024728", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/createVMSS2029024728/providers/Microsoft.Network/virtualNetworks/network2029024728/subnets/subnet2029024728" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2822 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "createVMSS2029024728", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/vmss2029024728", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_9414678188510279951", - "name": "PolicyDeployment_9414678188510279951", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "createVMSS2029024728" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vmss2029024728" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-02-17T08:30:29.2410885Z", - "duration": "PT13M53.7151667S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-grao7txirj5iy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-grao7txirj5iy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-grao7txirj5iy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-grao7txirj5iy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/createVMSS2029024728/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2029024728", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "vmss2029024728", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-grao7txirj5iy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-grao7txirj5iy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-grao7txirj5iy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-grao7txirj5iy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-grao7txirj5iy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-grao7txirj5iy" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/createVMSS2029024728/providers/Microsoft.Resources/deployments/deployAddUAName-grao7txirj5iy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-grao7txirj5iy" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceGroupBeingDeleted", - "message": "The resource group \u0027createVMSS2029024728\u0027 is in deprovisioning state and cannot perform this operation." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_2832967897701647884", - "name": "PolicyDeployment_2832967897701647884", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm2960129634" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-02-17T08:16:42.9125096Z", - "duration": "PT28.4489583S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-h23jen4yqaffy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-h23jen4yqaffy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-h23jen4yqaffy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-h23jen4yqaffy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2960129634", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2960129634", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-h23jen4yqaffy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-h23jen4yqaffy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-h23jen4yqaffy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-h23jen4yqaffy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-h23jen4yqaffy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-h23jen4yqaffy" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-h23jen4yqaffy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-h23jen4yqaffy" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_12162663922102033944", - "name": "PolicyDeployment_12162663922102033944", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm2472196970" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-02-17T08:12:00.1255694Z", - "duration": "PT26.3988811S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-s6fevybg3y626", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-s6fevybg3y626" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-s6fevybg3y626", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-s6fevybg3y626" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2472196970", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2472196970", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-s6fevybg3y626", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-s6fevybg3y626" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-s6fevybg3y626", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-s6fevybg3y626" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-s6fevybg3y626", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-s6fevybg3y626" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-s6fevybg3y626", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-s6fevybg3y626" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_4024816518872810487", - "name": "PolicyDeployment_4024816518872810487", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm1871597066" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-02-17T08:10:41.3649057Z", - "duration": "PT27.5898816S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-jcz6w2xxrxpay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-jcz6w2xxrxpay" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-jcz6w2xxrxpay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-jcz6w2xxrxpay" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1871597066", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1871597066", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-jcz6w2xxrxpay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-jcz6w2xxrxpay" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-jcz6w2xxrxpay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-jcz6w2xxrxpay" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-jcz6w2xxrxpay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-jcz6w2xxrxpay" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-jcz6w2xxrxpay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-jcz6w2xxrxpay" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_4482395336996744046", - "name": "PolicyDeployment_4482395336996744046", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm559849312" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-02-17T08:07:57.6928509Z", - "duration": "PT30.2598155S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ru4tkycoglac4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ru4tkycoglac4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ru4tkycoglac4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ru4tkycoglac4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm559849312", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm559849312", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ru4tkycoglac4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ru4tkycoglac4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ru4tkycoglac4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ru4tkycoglac4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ru4tkycoglac4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ru4tkycoglac4" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-ru4tkycoglac4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-ru4tkycoglac4" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_2522615752694177622", - "name": "PolicyDeployment_2522615752694177622", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm741214678" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-02-17T08:07:03.9224558Z", - "duration": "PT26.0312013S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-paaclmwl2n6be", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-paaclmwl2n6be" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-paaclmwl2n6be", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-paaclmwl2n6be" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm741214678", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm741214678", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-paaclmwl2n6be", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-paaclmwl2n6be" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-paaclmwl2n6be", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-paaclmwl2n6be" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-paaclmwl2n6be", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-paaclmwl2n6be" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-paaclmwl2n6be", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-paaclmwl2n6be" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-h23jen4yqaffy", - "name": "deployGetResourceProperties-h23jen4yqaffy", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12385795167846861614", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-15T06:46:25.0679281Z", - "duration": "PT0.3530837S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "westus2", - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_F2s" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest", - "exactVersion": "17763.3128.220202" - }, - "osDisk": { - "osType": "Windows", - "name": "disk2960129634", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/updateVM2960129634/providers/Microsoft.Compute/disks/disk2960129634" - }, - "diskSizeGB": 127 - }, - "dataDisks": [] - }, - "osProfile": { - "computerName": "sample-compute", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/updateVM2960129634/providers/Microsoft.Network/networkInterfaces/nic2960129634" - } - ] - }, - "provisioningState": "Succeeded" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2814 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "updateVM2960129634", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachines/vm2960129634", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-iswat5bqy4isg", - "name": "deployGetResourceProperties-iswat5bqy4isg", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1985041971592206731", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-14T08:53:20.159954Z", - "duration": "PT0.4360176S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_D2_v2" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest", - "exactVersion": "14393.4946.220202" - }, - "osDisk": { - "osType": "Windows", - "name": "myVMosdisk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/disks/myVMosdisk" - }, - "diskSizeGB": 127 - }, - "dataDisks": [ - { - "lun": 0, - "name": "qiaozhavmtest_disk2_ddde074355d94e4482b2316d3c1ea08d", - "createOption": "Empty", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/disks/qiaozhavmtest_disk2_ddde074355d94e4482b2316d3c1ea08d" - }, - "diskSizeGB": 1023, - "toBeDetached": false - }, - { - "lun": 1, - "name": "qiaozhavmtest_disk3_c9adc732de934acb8af4ec6b53915a14", - "createOption": "Empty", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/disks/qiaozhavmtest_disk3_c9adc732de934acb8af4ec6b53915a14" - }, - "diskSizeGB": 1023, - "toBeDetached": false - } - ] - }, - "osProfile": { - "computerName": "myVM", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Network/networkInterfaces/mynic", - "properties": { - "primary": true - } - } - ] - }, - "provisioningState": "Succeeded" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2815 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "qiaozhatest", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachines/qiaozhavmtest", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_12301223608768307695", - "name": "PolicyDeployment_12301223608768307695", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "qiaozhatest" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "qiaozhavmtest" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-14T08:58:12.9481358Z", - "duration": "PT5M42.616769S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-iswat5bqy4isg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-iswat5bqy4isg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-iswat5bqy4isg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-iswat5bqy4isg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/virtualMachines/qiaozhavmtest", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "qiaozhavmtest", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-iswat5bqy4isg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-iswat5bqy4isg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-iswat5bqy4isg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-iswat5bqy4isg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-iswat5bqy4isg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-iswat5bqy4isg" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Resources/deployments/deployAddUAName-iswat5bqy4isg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-iswat5bqy4isg" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/virtualMachines/qiaozhavmtest" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_13815271776210811931", - "name": "PolicyDeployment_13815271776210811931", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "sample-vm" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-01-27T06:03:01.4810795Z", - "duration": "PT28.5695037S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-vdnjsgdlq3hn2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-vdnjsgdlq3hn2" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-vdnjsgdlq3hn2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-vdnjsgdlq3hn2" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/sample-vm", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "sample-vm", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-vdnjsgdlq3hn2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-vdnjsgdlq3hn2" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-vdnjsgdlq3hn2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-vdnjsgdlq3hn2" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-vdnjsgdlq3hn2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-vdnjsgdlq3hn2" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-vdnjsgdlq3hn2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-vdnjsgdlq3hn2" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10440786698610159521", - "name": "PolicyDeployment_10440786698610159521", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "sample-resource-group" - }, - "location": { - "type": "String", - "value": "southcentralus" - }, - "resourceName": { - "type": "String", - "value": "sample-virtual-machine" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-01-19T06:44:19.9679835Z", - "duration": "PT24.8321496S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-4x35l2oadetxm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-4x35l2oadetxm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-4x35l2oadetxm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-4x35l2oadetxm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.Compute/virtualMachines/sample-virtual-machine", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "sample-virtual-machine", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-4x35l2oadetxm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-4x35l2oadetxm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-4x35l2oadetxm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-4x35l2oadetxm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-4x35l2oadetxm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-4x35l2oadetxm" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.Resources/deployments/deployAddUAName-4x35l2oadetxm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-4x35l2oadetxm" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/sample-virtual-machine\u0027 under resource group \u0027sample-resource-group\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-owc3wdt2faclq", - "name": "deployGetResourceProperties-owc3wdt2faclq", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "8707322021697982221", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-01-19T06:13:16.8985657Z", - "duration": "PT0.2456587S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 2 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "sample-vm-scale-set", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "sample-vm-scale-set", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.Network/virtualNetworks/sample-virtual-network/subnets/sample-subnet" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2823 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "sample-resource-group", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/sample-vm-scale-set", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10617661751731778292", - "name": "PolicyDeployment_10617661751731778292", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "sample-resource-group" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "sample-vm-scale-set" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-01-19T06:13:34.770355Z", - "duration": "PT48.1264024S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-owc3wdt2faclq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-owc3wdt2faclq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-owc3wdt2faclq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-owc3wdt2faclq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.Compute/virtualMachineScaleSets/sample-vm-scale-set", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "sample-vm-scale-set", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-owc3wdt2faclq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-owc3wdt2faclq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-owc3wdt2faclq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-owc3wdt2faclq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-owc3wdt2faclq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-owc3wdt2faclq" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.Resources/deployments/deployAddUAName-owc3wdt2faclq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-owc3wdt2faclq" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceGroupBeingDeleted", - "message": "The resource group \u0027sample-resource-group\u0027 is in deprovisioning state and cannot perform this operation." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gnshxqggg4sqy", - "name": "deployGetResourceProperties-gnshxqggg4sqy", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "8879180548293412217", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-01-10T08:55:28.8615181Z", - "duration": "PT0.2644384S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "creationSource": "vmssclient-aks-askagent-18559205-vmss", - "orchestrator": "Kubernetes:1.21.7", - "poolName": "askagent", - "resourceNameSuffix": "40953563", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-askagent-18559205-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCxnl\u002BHLQBUJwNnodBJx7gnsYe82aSQqZ5jRfUnpMx5X2DhTnJVUisjEdCtXJbxKyPbE3CmffjTogqUVBzxQcPe\u002BM/IOY46tTKyj8m8IbLxYlRoVWIBXHGB3\u002BmqgASzuQNOzOxN22YUqebx8b0qVLJpvoxg8zykXdQhTA8iVfTp3nsBNncsArmpWqk\u002Bqi/HK/k2faE7OhYV2HQPZllY3sHqmgOOPIkcdegdEkfcNVQhKYxwHb/mcCrmU0UTdcP0mYcXynGa8vFJNykF9x6WleRp5u0CJ4SyrjkdXs90bOfJ5OB3WHtHJNpYeFD/t7tL3J0fE0qbrsRlPDuAB9wo/OdSwB7NqL/JlKfnEjcqDUGoYk0asR1EHSmu2yM8bEzCxO4aGsgGnM6m63knU/z6ebFGpc9To6iUumVU54DXFwxkCRx7eqT/\u002B0rmBlkmr6qiaJGylPMGv9j0GrwDrTrPfCibE6o9ZxP6iLlpTMrgtfytFiOrpZdsCjGchcB2DycBNfdXf9BC3reIXz4CYRRqGLT2RIVKDU8kGIwdBPm8yYvsixOiRYZ4V6kd4dL23H1lqBfKrJ4jPArvgqNfl5N9T3cU\u002B6w86em5tivb4yR1KUFoyYr74VgtOXxU5xEJiiDKOCEbj0RR3m9rvPeRWi3oSvC0gyw/J1zQVrpSXRfx9X23\u002BQ==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.12.07" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-askagent-18559205-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_rg3255276464_cluster3255276464_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-40953563/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_rg3255276464_cluster3255276464_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_rg3255276464_cluster3255276464_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-askagent-18559205-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2823 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_rg3255276464_cluster3255276464_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-askagent-18559205-vmss", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_13938620696922917228", - "name": "PolicyDeployment_13938620696922917228", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_rg3255276464_cluster3255276464_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-askagent-18559205-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-01-10T08:56:16.1057807Z", - "duration": "PT1M7.4126109S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gnshxqggg4sqy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gnshxqggg4sqy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gnshxqggg4sqy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gnshxqggg4sqy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_rg3255276464_cluster3255276464_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-askagent-18559205-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-askagent-18559205-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gnshxqggg4sqy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-gnshxqggg4sqy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gnshxqggg4sqy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gnshxqggg4sqy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gnshxqggg4sqy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-gnshxqggg4sqy" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_rg3255276464_cluster3255276464_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-gnshxqggg4sqy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-gnshxqggg4sqy" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_rg3255276464_cluster3255276464_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-askagent-18559205-vmss" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_1586509242813505260", - "name": "PolicyDeployment_1586509242813505260", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "sample-vm" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2022-01-04T08:00:52.163229Z", - "duration": "PT25.131194S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-euovpu4buhfou", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-euovpu4buhfou" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-euovpu4buhfou", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-euovpu4buhfou" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/sample-vm", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "sample-vm", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-euovpu4buhfou", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-euovpu4buhfou" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-euovpu4buhfou", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-euovpu4buhfou" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-euovpu4buhfou", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-euovpu4buhfou" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-euovpu4buhfou", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-euovpu4buhfou" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_3471845151209769933", - "name": "PolicyDeployment_3471845151209769933", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-42661388-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-12-09T02:22:16.2948639Z", - "duration": "PT16.8387043S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-pwa2ay3hgat76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-pwa2ay3hgat76" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-pwa2ay3hgat76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-pwa2ay3hgat76" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-42661388-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-pwa2ay3hgat76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-pwa2ay3hgat76" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-pwa2ay3hgat76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-pwa2ay3hgat76" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-pwa2ay3hgat76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-pwa2ay3hgat76" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-pwa2ay3hgat76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-pwa2ay3hgat76" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_16981558426980145977", - "name": "PolicyDeployment_16981558426980145977", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "myjstest" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinex" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-30T06:53:38.8952686Z", - "duration": "PT31.8065988S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-w3oi4ucia4st4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-w3oi4ucia4st4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-w3oi4ucia4st4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-w3oi4ucia4st4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Compute/virtualMachines/virtualmachinex", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "virtualmachinex", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-w3oi4ucia4st4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-w3oi4ucia4st4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-w3oi4ucia4st4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-w3oi4ucia4st4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-w3oi4ucia4st4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-w3oi4ucia4st4" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Resources/deployments/deployAddUAName-w3oi4ucia4st4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-w3oi4ucia4st4" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/virtualmachinex\u0027 under resource group \u0027myjstest\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-4x35l2oadetxm", - "name": "deployGetResourceProperties-4x35l2oadetxm", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "16114603054195419721", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-11-25T03:32:43.4684689Z", - "duration": "PT4.6100552S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "westus2", - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_F2s" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest", - "exactVersion": "17763.3124.2111130129" - }, - "osDisk": { - "osType": "Windows", - "name": "sample-os-disk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.Compute/disks/sample-os-disk" - }, - "diskSizeGB": 127 - }, - "dataDisks": [] - }, - "osProfile": { - "computerName": "sample-compute", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.Network/networkInterfaces/sample-network-interface", - "properties": { - "primary": true - } - } - ] - }, - "provisioningState": "Succeeded" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2815 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "sample-resource-group", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachines/sample-virtual-machine", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-kyacfi2suz3p4", - "name": "deployGetResourceProperties-kyacfi2suz3p4", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "7792155886981172715", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-11-12T02:57:48.2284127Z", - "duration": "PT3.7627973S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_D2_v2" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest", - "exactVersion": "14393.4905.2111130103" - }, - "osDisk": { - "osType": "Windows", - "name": "myVMosdisk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Compute/disks/myVMosdisk" - }, - "diskSizeGB": 127 - }, - "dataDisks": [ - { - "lun": 0, - "name": "myvmxxx_disk2_4954fac25ba04de3acfda2cfff85456e", - "createOption": "Empty", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Compute/disks/myvmxxx_disk2_4954fac25ba04de3acfda2cfff85456e" - }, - "diskSizeGB": 1023, - "toBeDetached": false - }, - { - "lun": 1, - "name": "myvmxxx_disk3_53f242cadeef4be9bc6f02332929efcc", - "createOption": "Empty", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Compute/disks/myvmxxx_disk3_53f242cadeef4be9bc6f02332929efcc" - }, - "diskSizeGB": 1023, - "toBeDetached": false - } - ] - }, - "osProfile": { - "computerName": "myVM", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Network/networkInterfaces/myinterfacexxx", - "properties": { - "primary": true - } - } - ] - }, - "provisioningState": "Succeeded" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2814 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myjstest", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachines/myvmxxx", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_9945004388030558121", - "name": "PolicyDeployment_9945004388030558121", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "myjstest" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "myvmxxx" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-11-12T03:03:31.7260367Z", - "duration": "PT6M5.1226471S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-kyacfi2suz3p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-kyacfi2suz3p4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-kyacfi2suz3p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-kyacfi2suz3p4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Compute/virtualMachines/myvmxxx", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "myvmxxx", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-kyacfi2suz3p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-kyacfi2suz3p4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-kyacfi2suz3p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-kyacfi2suz3p4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-kyacfi2suz3p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-kyacfi2suz3p4" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Resources/deployments/deployAddUAName-kyacfi2suz3p4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-kyacfi2suz3p4" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Compute/virtualMachines/myvmxxx" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_7407767911313757587", - "name": "PolicyDeployment_7407767911313757587", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm2960129634" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-04T01:38:46.9810991Z", - "duration": "PT25.6583441S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-cmlh5tuzitgt6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-cmlh5tuzitgt6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-cmlh5tuzitgt6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-cmlh5tuzitgt6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2960129634", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2960129634", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-cmlh5tuzitgt6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-cmlh5tuzitgt6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-cmlh5tuzitgt6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-cmlh5tuzitgt6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-cmlh5tuzitgt6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-cmlh5tuzitgt6" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-cmlh5tuzitgt6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-cmlh5tuzitgt6" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6997220142027667437", - "name": "PolicyDeployment_6997220142027667437", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm2472196970" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-04T01:35:47.8215354Z", - "duration": "PT21.8288815S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3k6ej62osypiu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3k6ej62osypiu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3k6ej62osypiu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3k6ej62osypiu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2472196970", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2472196970", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-3k6ej62osypiu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-3k6ej62osypiu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3k6ej62osypiu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3k6ej62osypiu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-3k6ej62osypiu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-3k6ej62osypiu" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-3k6ej62osypiu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-3k6ej62osypiu" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_16151800664321859754", - "name": "PolicyDeployment_16151800664321859754", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm1871597066" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-04T01:34:52.8349491Z", - "duration": "PT24.8783984S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-k4et2dzie3hbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-k4et2dzie3hbc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-k4et2dzie3hbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-k4et2dzie3hbc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1871597066", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1871597066", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-k4et2dzie3hbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-k4et2dzie3hbc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-k4et2dzie3hbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-k4et2dzie3hbc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-k4et2dzie3hbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-k4et2dzie3hbc" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-k4et2dzie3hbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-k4et2dzie3hbc" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_15438615738688221574", - "name": "PolicyDeployment_15438615738688221574", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm559849312" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-04T01:31:58.1728216Z", - "duration": "PT23.6105294S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-63rvwblpc7eps", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-63rvwblpc7eps" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-63rvwblpc7eps", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-63rvwblpc7eps" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm559849312", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm559849312", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-63rvwblpc7eps", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-63rvwblpc7eps" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-63rvwblpc7eps", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-63rvwblpc7eps" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-63rvwblpc7eps", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-63rvwblpc7eps" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-63rvwblpc7eps", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-63rvwblpc7eps" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6209198517016577744", - "name": "PolicyDeployment_6209198517016577744", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm741214678" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-04T01:30:47.9831896Z", - "duration": "PT19.9378516S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-iqfbivxogheq6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-iqfbivxogheq6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-iqfbivxogheq6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-iqfbivxogheq6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm741214678", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm741214678", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-iqfbivxogheq6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-iqfbivxogheq6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-iqfbivxogheq6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-iqfbivxogheq6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-iqfbivxogheq6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-iqfbivxogheq6" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-iqfbivxogheq6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-iqfbivxogheq6" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xv5lppgi3567y", - "name": "deployGetResourceProperties-xv5lppgi3567y", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "15765618234423362945", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-11-03T10:34:15.7372475Z", - "duration": "PT4.6520037S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Basic_A0", - "tier": "Basic", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "vmss2029024728", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "vmss2029024728", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG-createVMSS2029024728/providers/Microsoft.Network/virtualNetworks/network2029024728/subnets/subnet2029024728" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2822 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "testRG-createVMSS2029024728", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/vmss2029024728", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_5924075656331516317", - "name": "PolicyDeployment_5924075656331516317", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "testRG-createVMSS2029024728" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vmss2029024728" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-11-03T10:34:45.9818051Z", - "duration": "PT24M7.4713504S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xv5lppgi3567y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xv5lppgi3567y" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xv5lppgi3567y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xv5lppgi3567y" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG-createVMSS2029024728/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2029024728", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "vmss2029024728", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xv5lppgi3567y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xv5lppgi3567y" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xv5lppgi3567y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xv5lppgi3567y" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xv5lppgi3567y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xv5lppgi3567y" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG-createVMSS2029024728/providers/Microsoft.Resources/deployments/deployAddUAName-xv5lppgi3567y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-xv5lppgi3567y" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG-createVMSS2029024728/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2029024728" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_5546233652531265437", - "name": "PolicyDeployment_5546233652531265437", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm2960129634" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-03T10:11:01.1214672Z", - "duration": "PT41.5526495S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-bxihyxl3lr33a", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-bxihyxl3lr33a" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-bxihyxl3lr33a", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-bxihyxl3lr33a" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2960129634", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2960129634", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-bxihyxl3lr33a", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-bxihyxl3lr33a" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-bxihyxl3lr33a", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-bxihyxl3lr33a" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-bxihyxl3lr33a", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-bxihyxl3lr33a" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-bxihyxl3lr33a", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-bxihyxl3lr33a" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6792370623147472336", - "name": "PolicyDeployment_6792370623147472336", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm2472196970" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-03T10:06:39.4776809Z", - "duration": "PT30.0293008S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-tfv5z4kwvt5ue", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-tfv5z4kwvt5ue" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-tfv5z4kwvt5ue", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-tfv5z4kwvt5ue" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2472196970", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2472196970", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-tfv5z4kwvt5ue", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-tfv5z4kwvt5ue" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-tfv5z4kwvt5ue", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-tfv5z4kwvt5ue" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-tfv5z4kwvt5ue", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-tfv5z4kwvt5ue" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-tfv5z4kwvt5ue", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-tfv5z4kwvt5ue" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_1765743039059276292", - "name": "PolicyDeployment_1765743039059276292", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm559849312" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-03T10:03:41.6888412Z", - "duration": "PT23.9597962S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-arbm7mnvhgxbk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-arbm7mnvhgxbk" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-arbm7mnvhgxbk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-arbm7mnvhgxbk" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm559849312", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm559849312", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-arbm7mnvhgxbk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-arbm7mnvhgxbk" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-arbm7mnvhgxbk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-arbm7mnvhgxbk" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-arbm7mnvhgxbk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-arbm7mnvhgxbk" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-arbm7mnvhgxbk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-arbm7mnvhgxbk" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_17201593197633827643", - "name": "PolicyDeployment_17201593197633827643", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm741214678" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-03T10:03:42.2985375Z", - "duration": "PT2M25.1437578S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-pnpkpmxfpgiaw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-pnpkpmxfpgiaw" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-pnpkpmxfpgiaw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-pnpkpmxfpgiaw" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm741214678", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm741214678", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-pnpkpmxfpgiaw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-pnpkpmxfpgiaw" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-pnpkpmxfpgiaw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-pnpkpmxfpgiaw" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-pnpkpmxfpgiaw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-pnpkpmxfpgiaw" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-pnpkpmxfpgiaw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-pnpkpmxfpgiaw" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_11075470401681108209", - "name": "PolicyDeployment_11075470401681108209", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "testRG-get1871597066" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm1871597066" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-03T09:56:21.0099557Z", - "duration": "PT1M31.1009943S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hugpoma4yqlkm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hugpoma4yqlkm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hugpoma4yqlkm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hugpoma4yqlkm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG-get1871597066/providers/Microsoft.Compute/virtualMachines/vm1871597066", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1871597066", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-hugpoma4yqlkm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-hugpoma4yqlkm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hugpoma4yqlkm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hugpoma4yqlkm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-hugpoma4yqlkm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-hugpoma4yqlkm" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG-get1871597066/providers/Microsoft.Resources/deployments/deployAddUAName-hugpoma4yqlkm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-hugpoma4yqlkm" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "NotFound", - "message": "The entity was not found in this Azure location." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-qv6u3plnvvcka", - "name": "deployGetResourceProperties-qv6u3plnvvcka", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "15719762436815543431", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-11-01T08:27:36.738098Z", - "duration": "PT11.4762454S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Basic_A0", - "tier": "Basic", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "vmss2029024728", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "vmss2029024728", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRP2029024728/providers/Microsoft.Network/virtualNetworks/network2029024728/subnets/subnet2029024728" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2823 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "testRP2029024728", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/vmss2029024728", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_17872139958742499376", - "name": "PolicyDeployment_17872139958742499376", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "testRP2029024728" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vmss2029024728" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-01T08:27:44.2619121Z", - "duration": "PT16M51.1212007S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qv6u3plnvvcka", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qv6u3plnvvcka" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qv6u3plnvvcka", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qv6u3plnvvcka" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRP2029024728/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2029024728", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "vmss2029024728", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-qv6u3plnvvcka", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-qv6u3plnvvcka" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qv6u3plnvvcka", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qv6u3plnvvcka" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-qv6u3plnvvcka", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-qv6u3plnvvcka" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRP2029024728/providers/Microsoft.Resources/deployments/deployAddUAName-qv6u3plnvvcka", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-qv6u3plnvvcka" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceGroupBeingDeleted", - "message": "The resource group \u0027testRP2029024728\u0027 is in deprovisioning state and cannot perform this operation." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6371943599152297962", - "name": "PolicyDeployment_6371943599152297962", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2422177615728575126", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "vm741214678" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-11-01T08:10:16.4915587Z", - "duration": "PT50.080286S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-v43njol5wpcos", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-v43njol5wpcos" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-v43njol5wpcos", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-v43njol5wpcos" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm741214678", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm741214678", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-v43njol5wpcos", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-v43njol5wpcos" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-v43njol5wpcos", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-v43njol5wpcos" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-v43njol5wpcos", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-v43njol5wpcos" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-v43njol5wpcos", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-v43njol5wpcos" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_9641345489026591440", - "name": "PolicyDeployment_9641345489026591440", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-42661388-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-10-27T03:41:54.4781706Z", - "duration": "PT4.3225767S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-cepk5prksbcmm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-cepk5prksbcmm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-cepk5prksbcmm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-cepk5prksbcmm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-42661388-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-cepk5prksbcmm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-cepk5prksbcmm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-cepk5prksbcmm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-cepk5prksbcmm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-cepk5prksbcmm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-cepk5prksbcmm" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-cepk5prksbcmm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-cepk5prksbcmm" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-cepk5prksbcmm", - "name": "deployGetResourceProperties-cepk5prksbcmm", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1900349305160069109", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-10-26T08:34:15.171546Z", - "duration": "PT0.531459S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "createOperationID": "00000000-0000-0000-0000-000000000000", - "creationSource": "vmssclient-aks-aksagent-42661388-vmss", - "orchestrator": "Kubernetes:1.20.9", - "poolName": "aksagent", - "resourceNameSuffix": "42661388", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-aksagent-42661388-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCtZt/v9K0YqhKIWOohIjUS84DDA2nn8EEgr/gfEKw2RBjTwJYRc83p4rbbfJroWaBFYIKw9WMb/I4tcbshD1fVyujHzGmvnYmyQKrwPfgfIXIJNyicT8bN0JGuB20r4KzOQDawDt6K6S/aaQ5LbrAcK/dZ6EoF9it6qesYEtpin5ODZxGwa2uhwmZLB5HTBA3yBrOQUK\u002BLvbLy36AW9cGyYeQocyE\u002BhMFT3ZKiHnDDe7X4qGHCxAdSxY/X8AGL4EYMk7RHxmTeKj2P\u002BebXZHtF560WfTWcNHGTS4tX\u002BcDut1PB\u002BrKY1y2uq89g0hZUJpS/LOTy9Zuw4pJiWpfFZmPzWU9G9j\u002B0Jmo/BrMYr1z8NKduAdUx0iLGVAM/UGGWt9NwoYOzV1d5IwSWROdSPv/9KB5LzYwO6eBygBUiMIdw2huvk1FNyFbcgLBGFcW5C7md7u6RLK7yVcTaEQpnCGA6aIdSEp4jyuwxo9mY/SolMPEYGOM9Ii7zlZaXzA1YklR/O8plcKD87Y9fAVPajpVciEgCWySuJIw84WtleAas3GCJb9xrwh\u002BEMMGL3s3QnBdQmGCEj1AsKhbJWvBdM\u002B2x/rJcdWLt\u002BEig/sspYb0b0b5C73gGfCPNWgMSe865iagcnsgMYLMXVMIoiHkqtFB2\u002BCnAtetw81Wp8z\u002BT8kO3kQ==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.10.13" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-aksagent-42661388-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_9_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-42661388/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_9_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_9_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-aksagent-42661388-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - }, - { - "name": "AKSLinuxExtension", - "properties": { - "autoUpgradeMinorVersion": false, - "provisionAfterExtensions": [ - "vmssCSE" - ], - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.AKSNode", - "typeHandlerVersion": "1.10" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2822 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_myjstest_9_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-22sfhbt5rthay", - "name": "deployGetResourceProperties-22sfhbt5rthay", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "14453432227071441757", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-10-21T06:04:14.0432362Z", - "duration": "PT3.549916S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "createOperationID": "00000000-0000-0000-0000-000000000000", - "creationSource": "vmssclient-aks-aksagent-42661388-vmss", - "orchestrator": "Kubernetes:1.20.9", - "poolName": "aksagent", - "resourceNameSuffix": "42661388", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-aksagent-42661388-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8VYwpz7XzYcy4/LQo2ThiJ26goms/tT7OtujUBR07\u002BRahEJZvV8Tt33/oz/CR4b98TFV1nyEkn/Akb09Kptb455lP9sjhOE5QPvEJhLdXXKmuMrLRpliDHia3Mb7CJwVZrDtliGArVXD8y6/yB1\u002B9NSD/vskCdbqr8cLC0baMV6M7MVKF8ThxegEfapJvpnoX\u002BDaSGP8d9BbbumsDX/vNteSO\u002BsbbcxrSuBOBp/MptCdXB8CmqgRk1OQl61sQBKaMdqO\u002BUmi3CQzrCKFnwdyTHFHxHsHol8nTwtAV/6G5Ympem9vd\u002BT2w\u002BHfgE3AGrkRhyxt0MxXiXSOONty7LmtWvafYuWREJyr26PPqrC4O3VGirDtzBF7VpyFt5FgQMSu351bTY4sKKUX2dGHqHWtSgJ5lXThuYb2XCyQXVAp6t7FhwgqQ\u002BXVD3uMGOtaLs7EBTk9Io4CHSFhqcWZzzCqdz4hx0tZ9nuxQUHo1a3QgTyPUSlEUOv/d5Urx7Q7KQAXZMSaECUbrZ/QZXVnwM215vd9pJ10xnZVwl75KE0N7hP6Z3stagOVsaX6e3cO63PdArTJOLGZnJ2lQhHnwA4CUO30DfM14ele0mq7eSmKo97LXqJ0LgfA43IP/ZP1/bChIyk4E3osQDdOu3wVTLf25bhK/Fow8LlSTgvTaIJB89Q==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.10.02" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-aksagent-42661388-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_jssdktest_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-42661388/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_jssdktest_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_jssdktest_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-aksagent-42661388-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - }, - { - "name": "AKSLinuxExtension", - "properties": { - "autoUpgradeMinorVersion": false, - "provisionAfterExtensions": [ - "vmssCSE" - ], - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.AKSNode", - "typeHandlerVersion": "1.10" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2822 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_qiaozhatest_jssdktest_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_8752158700587555217", - "name": "PolicyDeployment_8752158700587555217", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_qiaozhatest_jssdktest_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-42661388-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-10-21T06:04:32.6349697Z", - "duration": "PT41.8586616S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-22sfhbt5rthay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-22sfhbt5rthay" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-22sfhbt5rthay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-22sfhbt5rthay" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_jssdktest_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-42661388-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-22sfhbt5rthay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-22sfhbt5rthay" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-22sfhbt5rthay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-22sfhbt5rthay" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-22sfhbt5rthay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-22sfhbt5rthay" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_jssdktest_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-22sfhbt5rthay", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-22sfhbt5rthay" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_jssdktest_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-dzmdn3ewi26ky", - "name": "deployGetResourceProperties-dzmdn3ewi26ky", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2090878750813568962", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-10-21T06:00:56.2874958Z", - "duration": "PT0.4291894S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "createOperationID": "00000000-0000-0000-0000-000000000000", - "creationSource": "vmssclient-aks-aksagent-42661388-vmss", - "orchestrator": "Kubernetes:1.20.9", - "poolName": "aksagent", - "resourceNameSuffix": "42661388", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-aksagent-42661388-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCuczFsPYYp\u002B8u4F1B0ej0\u002BJTaE5rE7ZN6Pv75FtUnFZP7dmomHYw\u002B5qzj/SMdMq5kCO7Ms41EubC4InEJwfWUxUwDujIq1zxqOmwu58rg3DM3JUlf3C2KDDTRV5WDOlBK\u002BQzyjjwh7Cb11wBlX8ae6l5a6trOvgsUWd7GYMNrFVVTcs5x1yrX/MZce7CalPpID/7O4PExzUgH/Suxp5W0JgwA44lhXHFFE8lgXnVFUij/ndcKvQIEbEk9U1gkA8i3\u002BCtQNPzpbm5E6gKzSF1JooeJhvOcfZlBMVAxMOFdtDwjjGGuzhalJMMP7YrDcxWV\u002BzqLW7GgT\u002BQSNdMUp2ZUK6ANGxXhYOy/5UqVcgUngkwOXu2sIunw9kOBIOPuGKAhYhTU9vF03RgdgYzDqLbQBopC5VAz2FObP9BrnG0y6AP3FhWKjAu/1mC6sP/8nUthqV4Yd4WD9yp0ZnXIHI/kLLYq0VChdcdFTNd4Cgo9X6SyBY5LKGIOaAPt/lISLu8tWYgpgzabjpC33VFku6g\u002B0DdYXVvkIYWRe8iU/Mz3yCuBVxSQ2nABRijGv95YU7DBFOUUwt/5fytyico4ftt1n2ITncgCGAaYt0qVwbQsdnk4uSQwFZRLYuiLvpgVd9VxtyCi0L0Rxr1Wz8u6Oprd40Pd7HML866ECywozeDQpxw==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.10.02" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-aksagent-42661388-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_9_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-42661388/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_9_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_9_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-aksagent-42661388-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - }, - { - "name": "AKSLinuxExtension", - "properties": { - "autoUpgradeMinorVersion": false, - "provisionAfterExtensions": [ - "vmssCSE" - ], - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.AKSNode", - "typeHandlerVersion": "1.10" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2822 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_qiaozhatest_9_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_2682765616467607629", - "name": "PolicyDeployment_2682765616467607629", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_qiaozhatest_9_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-42661388-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-10-21T06:01:13.9144069Z", - "duration": "PT21.6313607S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-dzmdn3ewi26ky", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-dzmdn3ewi26ky" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-dzmdn3ewi26ky", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-dzmdn3ewi26ky" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_9_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-42661388-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-dzmdn3ewi26ky", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-dzmdn3ewi26ky" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-dzmdn3ewi26ky", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-dzmdn3ewi26ky" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-dzmdn3ewi26ky", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-dzmdn3ewi26ky" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_9_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-dzmdn3ewi26ky", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-dzmdn3ewi26ky" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_9_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-6tjcqnwm7sizq", - "name": "deployGetResourceProperties-6tjcqnwm7sizq", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "9311734351141010305", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-10-21T05:49:03.1387809Z", - "duration": "PT0.9113487S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "zones": [ - "1", - "2", - "3" - ], - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 3 - }, - "tags": { - "createOperationID": "00000000-0000-0000-0000-000000000000", - "creationSource": "vmssclient-aks-agentpool-75330219-vmss", - "orchestrator": "Kubernetes:1.20.9", - "poolName": "agentpool", - "resourceNameSuffix": "75330219", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_acrjstest_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/acrjstest-agentpool": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_qiaozhatest_acrjstest_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-acrjstest": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-agentpool-75330219-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDn5m9gEKV8bPhBsC2bZOfPmhdUbhW\u002B/FiPZkocmEBNrXzKZ\u002BPFO1Dk9JEvPkSesiSoSRvhH\u002B/hGSlFg3WYUVyA\u002BsaAuGE9UeMGouUhdrZrb7ERIn93PlUn2FXE/jrdw3V4DYtpOhjW6vAwSavfz8D\u002BrKkbsAwfOZoCQXiIsEvLWHZthBXiI3HVelmV94HfxYRfD1DiV4Zb0c8Tngg2qgEiFMEPLcUmOY3SBA0hebncknyjTv3vFd1s8m99hKuoqyGFeSvJMzgoszxhEmpsmIGK/sIXZxItLa9cfgAL5QHYljdZCRWyE/K9tW4H3qTY59rMz4eTcDnTZUlkAnQOrfhPvN1oGj/M/zjEHsZNbSiQbh3WBHk9Z9tXaX053hE\u002BnsMRgVUzdQgb5CSUXMR64HLSUR9CY23EgYzP/LL\u002BmU8J7SsEw3bFoxbqZU5UsXP7qPcayo2Ka/8wko4xEOipI8epUXDvke1/0iKSkkR6069wlm3\u002B\u002B1FDPoqJVdu1oOi1MdqY\u002BwE1ocxcExUXX4lht6RDImUgTJ3tGMmfQNyieidoXo0eALViZqDlOWM2YTQKFzH0k6azVsDbn3rpIuOwm\u002B54Zjdz/GoAUN9hEHnE4gvhH7Ijq8u\u002BVllUx64hQbk8tuKGim9aw/pO9LkH/zBD8y4uHpRS9YfMQfaKDe3iH5s/vQ==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.10.02" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-agentpool-75330219-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_acrjstest_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-75330219/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_acrjstest_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_acrjstest_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-agentpool-75330219-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - }, - { - "name": "AKSLinuxExtension", - "properties": { - "autoUpgradeMinorVersion": false, - "provisionAfterExtensions": [ - "vmssCSE" - ], - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.AKSNode", - "typeHandlerVersion": "1.10" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "zoneBalance": false, - "platformFaultDomainCount": 1 - }, - "condition": true, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2821 - }, - "existing": false, - "isConditionTrue": true, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_qiaozhatest_acrjstest_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-agentpool-75330219-vmss", - "referenceApiVersion": "2019-07-01", - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_182407592298304478", - "name": "PolicyDeployment_182407592298304478", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_qiaozhatest_acrjstest_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-agentpool-75330219-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-10-21T05:49:16.5944775Z", - "duration": "PT18.4237886S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6tjcqnwm7sizq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6tjcqnwm7sizq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6tjcqnwm7sizq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6tjcqnwm7sizq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_acrjstest_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-agentpool-75330219-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-agentpool-75330219-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-6tjcqnwm7sizq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-6tjcqnwm7sizq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6tjcqnwm7sizq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6tjcqnwm7sizq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-6tjcqnwm7sizq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-6tjcqnwm7sizq" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_acrjstest_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-6tjcqnwm7sizq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-6tjcqnwm7sizq" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_acrjstest_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-agentpool-75330219-vmss" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_14713055650817533022", - "name": "PolicyDeployment_14713055650817533022", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "sample-resource-group" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "sample-vm-scale-set" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-09-30T06:39:53.1832148Z", - "duration": "PT22.4942336S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3tkqcykfv4cpy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3tkqcykfv4cpy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3tkqcykfv4cpy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3tkqcykfv4cpy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.Compute/virtualMachineScaleSets/sample-vm-scale-set", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "sample-vm-scale-set", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-3tkqcykfv4cpy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-3tkqcykfv4cpy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3tkqcykfv4cpy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3tkqcykfv4cpy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-3tkqcykfv4cpy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-3tkqcykfv4cpy" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.Resources/deployments/deployAddUAName-3tkqcykfv4cpy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-3tkqcykfv4cpy" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "NotFound", - "message": "The entity was not found in this Azure location." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_16418573218099305292", - "name": "PolicyDeployment_16418573218099305292", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "westus2" - }, - "resourceName": { - "type": "String", - "value": "sample-vm" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-09-30T03:25:35.097508Z", - "duration": "PT25.3688374S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-czw2qmui7sp46", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-czw2qmui7sp46" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-czw2qmui7sp46", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-czw2qmui7sp46" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/sample-vm", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "sample-vm", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-czw2qmui7sp46", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-czw2qmui7sp46" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-czw2qmui7sp46", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-czw2qmui7sp46" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-czw2qmui7sp46", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-czw2qmui7sp46" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-czw2qmui7sp46", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-czw2qmui7sp46" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-hjyprljwuvo5q", - "name": "deployGetResourceProperties-hjyprljwuvo5q", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "10631011873234643904", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-09-29T08:48:11.3136267Z", - "duration": "PT0.3290857S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "createOperationID": "00000000-0000-0000-0000-000000000000", - "creationSource": "vmssclient-aks-aksagent-42661388-vmss", - "orchestrator": "Kubernetes:1.20.9", - "poolName": "aksagent", - "resourceNameSuffix": "42661388", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-aksagent-42661388-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC\u002BCnOdHYZ4uj8t6mQQZ8VEvrg9fKCTxz3ms1yyS6z5MZFuAvdOKbUKlWOGn\u002ByOsQgAIxw0gecvsmJBVe7xJ7UvHQhHeBitr0xL3co1vLSqydMROBJQA0\u002Be3gH1er846yaoxElCBu0\u002Br1/O3ooyo8RCnsOhFXGgEVzSz0kDdM87h6wMGg6qIHejN3g4SSUK3WwGQjW7kFbVf03KNW7par4etZY11yuBA4cT1JRK4Zn7y71RTgs4\u002BBTjrIPQqnV3IEs8PmOz/ZHhSi0TOMsFiXLjxQ3e9FqAbPbv08QrWHTuui72XgcjPsNh7ZP7aUp/0qzyPpBod9Be4tp7Gm5FAs25IPGy5MivL16ltpd12fJTBJeggb8WgJTB8G25EvFBbYwXMEIl/a7r2v6jS6zUYh3LqS99rLOpYfzpR8j5psBy0193z82NGElfW\u002BdYLDQMtvN6Y5G0NNj0EsVZbZT8ocDzDenrp3XZGLCx30iRSnuoLhwEwEtpX8krMeOVxOhLnT7rF9eWAehmRrv3TE3V8zw0L7jQhXFnvvRz4FcyeqC3bIVc7\u002BDwHaPOFrXcQhyXGvtpUiPOAP6jfRQFhdKU87KR2KGfFvUiizesZhgNGGh8p2CnDlfVYzksL3U1q\u002BeVq91ZPyH\u002Btwh1c\u002BLf7g/ZE\u002Bm4D0ko1uzl4PWsmOuO7GCFBw==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.09.19" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-aksagent-42661388-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-42661388/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-aksagent-42661388-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - }, - { - "name": "AKSLinuxExtension", - "properties": { - "autoUpgradeMinorVersion": false, - "provisionAfterExtensions": [ - "vmssCSE" - ], - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.AKSNode", - "typeHandlerVersion": "1.9" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2822 - }, - "existing": false, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_myjstest_7_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-w2hq4dgupbq3k", - "name": "deployGetResourceProperties-w2hq4dgupbq3k", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "18254753574721958401", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-09-29T08:48:11.0113027Z", - "duration": "PT0.520711S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "createOperationID": "00000000-0000-0000-0000-000000000000", - "creationSource": "vmssclient-aks-aksagent-42661388-vmss", - "orchestrator": "Kubernetes:1.20.9", - "poolName": "aksagent", - "resourceNameSuffix": "42661388", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-aksagent-42661388-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC\u002BCnOdHYZ4uj8t6mQQZ8VEvrg9fKCTxz3ms1yyS6z5MZFuAvdOKbUKlWOGn\u002ByOsQgAIxw0gecvsmJBVe7xJ7UvHQhHeBitr0xL3co1vLSqydMROBJQA0\u002Be3gH1er846yaoxElCBu0\u002Br1/O3ooyo8RCnsOhFXGgEVzSz0kDdM87h6wMGg6qIHejN3g4SSUK3WwGQjW7kFbVf03KNW7par4etZY11yuBA4cT1JRK4Zn7y71RTgs4\u002BBTjrIPQqnV3IEs8PmOz/ZHhSi0TOMsFiXLjxQ3e9FqAbPbv08QrWHTuui72XgcjPsNh7ZP7aUp/0qzyPpBod9Be4tp7Gm5FAs25IPGy5MivL16ltpd12fJTBJeggb8WgJTB8G25EvFBbYwXMEIl/a7r2v6jS6zUYh3LqS99rLOpYfzpR8j5psBy0193z82NGElfW\u002BdYLDQMtvN6Y5G0NNj0EsVZbZT8ocDzDenrp3XZGLCx30iRSnuoLhwEwEtpX8krMeOVxOhLnT7rF9eWAehmRrv3TE3V8zw0L7jQhXFnvvRz4FcyeqC3bIVc7\u002BDwHaPOFrXcQhyXGvtpUiPOAP6jfRQFhdKU87KR2KGfFvUiizesZhgNGGh8p2CnDlfVYzksL3U1q\u002BeVq91ZPyH\u002Btwh1c\u002BLf7g/ZE\u002Bm4D0ko1uzl4PWsmOuO7GCFBw==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.09.19" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-aksagent-42661388-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-42661388/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-aksagent-42661388-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - }, - { - "name": "AKSLinuxExtension", - "properties": { - "autoUpgradeMinorVersion": false, - "provisionAfterExtensions": [ - "vmssCSE" - ], - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.AKSNode", - "typeHandlerVersion": "1.9" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "existing": false, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_myjstest_7_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_4163098955823012122", - "name": "PolicyDeployment_4163098955823012122", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_myjstest_7_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-42661388-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-09-29T08:48:24.4440299Z", - "duration": "PT16.8271382S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hjyprljwuvo5q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hjyprljwuvo5q" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hjyprljwuvo5q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hjyprljwuvo5q" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-42661388-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-hjyprljwuvo5q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-hjyprljwuvo5q" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hjyprljwuvo5q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hjyprljwuvo5q" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-hjyprljwuvo5q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-hjyprljwuvo5q" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-hjyprljwuvo5q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-hjyprljwuvo5q" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10473719056456358558", - "name": "PolicyDeployment_10473719056456358558", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_myjstest_7_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-42661388-vmss" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-09-29T08:48:24.8875002Z", - "duration": "PT17.7354729S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-w2hq4dgupbq3k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-w2hq4dgupbq3k" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-w2hq4dgupbq3k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-w2hq4dgupbq3k" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-42661388-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-w2hq4dgupbq3k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-w2hq4dgupbq3k" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-w2hq4dgupbq3k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-w2hq4dgupbq3k" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-w2hq4dgupbq3k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-w2hq4dgupbq3k" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-w2hq4dgupbq3k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-w2hq4dgupbq3k" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-z33kj3sbugjuc", - "name": "deployGetResourceProperties-z33kj3sbugjuc", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "684908815065353580", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-09-29T03:26:21.9615235Z", - "duration": "PT0.4855253S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "createOperationID": "00000000-0000-0000-0000-000000000000", - "creationSource": "vmssclient-aks-aksagent-42661388-vmss", - "orchestrator": "Kubernetes:1.20.9", - "poolName": "aksagent", - "resourceNameSuffix": "42661388", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-aksagent-42661388-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCvI/mxAGPFgr02i4j\u002BoRkEielBaseHtP7NxzSaquHsahzpU0MuSGb4V5/4fZM5IGlUTsTYe3NnEJ1K40ULPiEkUs8DXGCcDT5J/5PKS8JbBF\u002B1Q6AKYR81kYiXFs5xMQsncK3zmUZj2sCm2MbZK9YYZ5X4z2Z9Bjw14gQ4pHoA7yAtLdCDV7wdG3KBQozqIE8VkSkt3Tnnk5VzzJcemGUsQ0LhIDy3PTL5Q7khFVHO5yv1mksP63PCK/z6Zmudqu6RcML6js2zq88Ggumyw4m\u002BcvnVFFynt8DTR2c0FFui9uXhCmY/87WQaf7TbB8Ywt8WKif263xRtNSfl2svl5nPH3j7aSIjGmXAdEPabPodZ7FFWR\u002B/XZ4m06uvFKy32QsLHYXNG3uxMvluV\u002BYq7gq92NzcZ7mW7G7HlVle5hoEOyCVLd\u002BysFPXdJX6NLsNvwAXCHqwFuKJkjBcOJXp9wlPqCm8nl23l/zt6hsfryRVfbs/\u002Bb0u39Wsl4uCz2dI/MBScfUVX56nfqwASQsXjGQER8OAYOhwAbJnVwyb5t/jorwqY60rP78pFTlF\u002BHk1BKcZKDcH8my7ILeWAtgLDjGoPoJQCpig4CvDDel0gU3VAc2adBGNSmolfFQuXxvy7SMuLgfjoY/4LeQa7QoO7el19821qSef5NBfOBXbvae9Nw==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.09.19" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-aksagent-42661388-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_9_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-42661388/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_9_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_9_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-aksagent-42661388-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true, - "enableAutoConfig": true, - "reportSuccessOnUnsupportedDistro": true - } - } - }, - { - "name": "AKSLinuxExtension", - "properties": { - "autoUpgradeMinorVersion": false, - "provisionAfterExtensions": [ - "vmssCSE" - ], - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.AKSNode", - "typeHandlerVersion": "1.9" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2771 - }, - "existing": false, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_myjstest_9_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_1174177243538929476", - "name": "PolicyDeployment_1174177243538929476", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_myjstest_9_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-42661388-vmss" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-09-29T03:26:34.9048271Z", - "duration": "PT16.8827542S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-z33kj3sbugjuc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-z33kj3sbugjuc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-z33kj3sbugjuc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-z33kj3sbugjuc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_9_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-42661388-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-z33kj3sbugjuc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-z33kj3sbugjuc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-z33kj3sbugjuc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-z33kj3sbugjuc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-z33kj3sbugjuc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-z33kj3sbugjuc" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_9_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-z33kj3sbugjuc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-z33kj3sbugjuc" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_9_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_7653312247771826947", - "name": "PolicyDeployment_7653312247771826947", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_myjstest_8_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-42661388-vmss" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-09-29T03:21:52.6440551Z", - "duration": "PT3.8888009S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-t567ssqogf6e4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-t567ssqogf6e4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-t567ssqogf6e4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-t567ssqogf6e4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_8_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-42661388-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-t567ssqogf6e4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-t567ssqogf6e4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-t567ssqogf6e4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-t567ssqogf6e4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-t567ssqogf6e4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-t567ssqogf6e4" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_8_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-t567ssqogf6e4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-t567ssqogf6e4" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "NotFound", - "message": "The entity was not found in this Azure location." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_17039473015908406958", - "name": "PolicyDeployment_17039473015908406958", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12957040454302177446", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_myjstest_8_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-42661388-vmss" - }, - "azSecPackAutoConfigReadyTagValue": { - "type": "Bool", - "value": false - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-09-29T03:21:51.6156803Z", - "duration": "PT3.1941906S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6gagq4ivxkpfq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6gagq4ivxkpfq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6gagq4ivxkpfq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6gagq4ivxkpfq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_8_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-42661388-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-42661388-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-6gagq4ivxkpfq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-6gagq4ivxkpfq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6gagq4ivxkpfq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6gagq4ivxkpfq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-6gagq4ivxkpfq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-6gagq4ivxkpfq" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_8_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-6gagq4ivxkpfq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-6gagq4ivxkpfq" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "NotFound", - "message": "The entity was not found in this Azure location." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ydwvfvcqiabyg", - "name": "deployGetResourceProperties-ydwvfvcqiabyg", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1340496604970418811", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-08-19T09:54:09.3007965Z", - "duration": "PT0.2972569S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "zones": [ - "1" - ], - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "createOperationID": "00000000-0000-0000-0000-000000000000", - "creationSource": "vmssclient-aks-agentpool-35998657-vmss", - "orchestrator": "Kubernetes:1.20.7", - "poolName": "agentpool", - "resourceNameSuffix": "35998657", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_qiaozhatest1111_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/qiaozhatest1111-agentpool": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_qiaozhatest_qiaozhatest1111_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-qiaozhatest1111": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-agentpool-35998657-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1rkJz5HyxnEIAIRvQ2e2cl5IYtSNiP2pdSNldp5Tyq4Hv\u002Ba1efgw/Vic2v2\u002BdXadCg6WJ76bv5J33S0NDVMHy0uHKXi3Dr5Vw4Ta\u002BK3bPxX7Pjq1c4EP026hHkx/Tc6KPeVCSv//P53eRPvHdTUnxkGexOrD3VMyReoZ7vUNZO\u002BYC5VXguqCIymevlBH4Wwr6X51rzd0ZGBiM2CeHkbnOL9xj/zCihPy\u002B4N1N/u0X1/WTMGnDBVAgeiWLdUoYoIPwW6\u002BSxp7VAOcTndhixSgHOQkGMt23lJwJ3qvte4qVOZzWtBhsjOUduJoh9VhttCQNIXvc5bX/YMNpHdT8jNbLiTSEwBk\u002BSYCUKMU3cS\u002BXJQaJeTgwSM0BilGQz\u002BCbav7mpLDAGT03ocEqP0XsWuDUmoVfMXo3i4\u002BOStnXN17c3UoAupyjfZx6CjD9qIkbVEgehNCNNbt4R5O\u002B\u002B6yywRmnaXcKW2Jv2moXRbKNoDtHhszH7FUOQsm\u002BiQkHtAnr6GtLKwkl7y0Uy4UKPDFDvfF1mJ9kGowJf6//gvSJtBobg1p8K9icWI5R5/DyR71kkJPhoBjEUWtYJFuOPPowPOM2Qy1yblsYyYHP/ZyCXfgOtHt4qpxK9A8yFbfypRXpmqTYhkcEOKPx99sYCdMHoObf2D8RNDdsEMCVEWqhtekZOQ==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.07.31" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-agentpool-35998657-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_qiaozhatest1111_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-35998657/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_qiaozhatest1111_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_qiaozhatest1111_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-agentpool-35998657-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_qiaozhatest_qiaozhatest1111_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-agentpool-35998657-vmss", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_15854052438626888066", - "name": "PolicyDeployment_15854052438626888066", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_qiaozhatest_qiaozhatest1111_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-agentpool-35998657-vmss" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-08-19T09:54:21.9419725Z", - "duration": "PT15.6763231S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ydwvfvcqiabyg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ydwvfvcqiabyg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ydwvfvcqiabyg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ydwvfvcqiabyg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_qiaozhatest1111_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-agentpool-35998657-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-agentpool-35998657-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ydwvfvcqiabyg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ydwvfvcqiabyg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ydwvfvcqiabyg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ydwvfvcqiabyg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ydwvfvcqiabyg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ydwvfvcqiabyg" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_qiaozhatest1111_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-ydwvfvcqiabyg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-ydwvfvcqiabyg" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_qiaozhatest_qiaozhatest1111_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-agentpool-35998657-vmss" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-yrmr55csgrrsa", - "name": "deployGetResourceProperties-yrmr55csgrrsa", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "10406257224567639585", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-08-19T07:31:58.3849409Z", - "duration": "PT0.3336926S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS2_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "createOperationID": "00000000-0000-0000-0000-000000000000", - "creationSource": "vmssclient-aks-aksagent-38064876-vmss", - "orchestrator": "Kubernetes:1.20.7", - "poolName": "aksagent", - "resourceNameSuffix": "38064876", - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "aks-aksagent-38064876-vmss", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDZMAGxDzdodKWI/Jm1/1zFJouKkyx8Z\u002BXYjAs\u002B7Im2uUBjCD\u002BXY2lXImzFWFMzTb3WfaZ0jYpeLjT7/LFPRKfzg6os44fhr6NLTy0I69E1OsbmIgmobFtOFtHTem99uGgPoXgKM9BXzFxWW8KmAjQkCW9CUm8VPslcIX0UbUrC40bAzWW2ShJQys4C6D0u7Sm5X0exfXfz\u002BTFUAtFrVtmDAHLggzo70VGv0uqIf3fYbxonkXtrdzud9JKHHnjF9Vpyo2mm6L6LavISraz9kia6gDe0M7P5WSmdoEmhAhmJ3Rxqzqwa19LBpIa43HNEBxMO0nbYa/YKOQH93ShtIL6MaGkg4kVPnsAz8d18uP7Odo4qvUw3tg/gPrn3ouF04b\u002BtA4zKAEzu/R4uHzjvtm0p6z/Es8rge/2ivaALFTTQug14cxqFopA6ywx7gDM\u002BlUaS7SZqgbpbKwUI8L2mKpFoPngm64yZwsnHhzywj9llRtSq0EUzdjc2MGfHfIbSksslwkXqxnq3ElLSXSKEsRxTR5TI9XvskWu2PMbzbbCwHy8wWyb9Tq6ZGlqzo/bCmntexmxPcJEoyQsZY5R1yRbtvXgoKqGyxkQele\u002BK9yDgdQkbw0z8BiATjXbmO4BWYW9jk\u002B9p2fJ0u0UH00tgYS6JZ4T76SwDlcPCdP9OUdzFJQ==\n" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 128 - }, - "imageReference": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Ubuntu/providers/Microsoft.Compute/galleries/AKSUbuntu/images/1804gen2containerd/versions/2021.07.31" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "aks-aksagent-38064876-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": true, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Network/virtualNetworks/aks-vnet-38064876/subnets/aks-subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "vmssCSE", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Extensions", - "type": "CustomScript", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "aks-aksagent-38064876-vmss-AKSLinuxBilling", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.Billing", - "typeHandlerVersion": "1.0", - "settings": {} - } - }, - { - "name": "AKSLinuxExtension", - "properties": { - "autoUpgradeMinorVersion": false, - "provisionAfterExtensions": [ - "vmssCSE" - ], - "publisher": "Microsoft.AKS", - "type": "Compute.AKS.Linux.AKSNode", - "typeHandlerVersion": "1.0" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MC_myjstest_7_eastus", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-38064876-vmss", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_13574675660101223951", - "name": "PolicyDeployment_13574675660101223951", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "MC_myjstest_7_eastus" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "aks-aksagent-38064876-vmss" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-08-19T07:32:11.4138866Z", - "duration": "PT16.3490591S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-yrmr55csgrrsa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-yrmr55csgrrsa" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-yrmr55csgrrsa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-yrmr55csgrrsa" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-38064876-vmss", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "aks-aksagent-38064876-vmss", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-yrmr55csgrrsa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-yrmr55csgrrsa" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-yrmr55csgrrsa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-yrmr55csgrrsa" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-yrmr55csgrrsa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-yrmr55csgrrsa" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Resources/deployments/deployAddUAName-yrmr55csgrrsa", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-yrmr55csgrrsa" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_myjstest_7_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aksagent-38064876-vmss" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10533812325706017367", - "name": "PolicyDeployment_10533812325706017367", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "qiaozhatest" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinex" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-08-05T06:47:26.0307425Z", - "duration": "PT11.2512985S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-io7jgi5p2ytcs", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-io7jgi5p2ytcs" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-io7jgi5p2ytcs", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-io7jgi5p2ytcs" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/virtualMachines/virtualmachinex", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "virtualmachinex", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-io7jgi5p2ytcs", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-io7jgi5p2ytcs" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-io7jgi5p2ytcs", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-io7jgi5p2ytcs" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-io7jgi5p2ytcs", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-io7jgi5p2ytcs" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Resources/deployments/deployAddUAName-io7jgi5p2ytcs", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-io7jgi5p2ytcs" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/virtualmachinex\u0027 under resource group \u0027qiaozhatest\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-spfxojxiopxdi", - "name": "deployGetResourceProperties-spfxojxiopxdi", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "8282866946932720112", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-07-23T02:12:05.3721122Z", - "duration": "PT1.3686877S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_V2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "rollingUpgradePolicy": { - "maxBatchInstancePercent": 20, - "maxUnhealthyInstancePercent": 20, - "maxUnhealthyUpgradedInstancePercent": 100, - "pauseTimeBetweenBatches": "PT0S" - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftwindowsServer", - "offer": "windowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/networknamex/subnets/subnetworknamex" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myjstest", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_11338637516874664097", - "name": "PolicyDeployment_11338637516874664097", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "myjstest" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescaleset" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-07-23T02:12:49.9820099Z", - "duration": "PT59.9833289S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-spfxojxiopxdi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-spfxojxiopxdi" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-spfxojxiopxdi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-spfxojxiopxdi" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescaleset", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-spfxojxiopxdi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-spfxojxiopxdi" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-spfxojxiopxdi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-spfxojxiopxdi" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-spfxojxiopxdi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-spfxojxiopxdi" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Resources/deployments/deployAddUAName-spfxojxiopxdi", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-spfxojxiopxdi" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-7smrszvi74bne", - "name": "deployGetResourceProperties-7smrszvi74bne", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12403380078476208515", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-07-13T07:12:36.4841676Z", - "duration": "PT1.6104996S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_V2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "rollingUpgradePolicy": { - "maxBatchInstancePercent": 20, - "maxUnhealthyInstancePercent": 20, - "maxUnhealthyUpgradedInstancePercent": 100, - "pauseTimeBetweenBatches": "PT0S" - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftwindowsServer", - "offer": "windowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Network/virtualNetworks/networknamex/subnets/subnetworknamex" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2771 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "qiaozhatest", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_2302252837552351681", - "name": "PolicyDeployment_2302252837552351681", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "qiaozhatest" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescaleset" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-07-13T07:13:02.8845542Z", - "duration": "PT45.2198222S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-7smrszvi74bne", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-7smrszvi74bne" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-7smrszvi74bne", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-7smrszvi74bne" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescaleset", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-7smrszvi74bne", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-7smrszvi74bne" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-7smrszvi74bne", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-7smrszvi74bne" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-7smrszvi74bne", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-7smrszvi74bne" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Resources/deployments/deployAddUAName-7smrszvi74bne", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-7smrszvi74bne" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-d2ua2vjw5ncze", - "name": "deployGetResourceProperties-d2ua2vjw5ncze", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "15684142514869062123", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-07-13T03:26:41.108858Z", - "duration": "PT2.2213332S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_D2_v2" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest", - "exactVersion": "14393.4470.2107061538" - }, - "osDisk": { - "osType": "Windows", - "name": "myVMosdisk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/disks/myVMosdisk" - }, - "diskSizeGB": 127 - }, - "dataDisks": [ - { - "lun": 0, - "name": "virtualmachinex_disk2_3a286a32e35b43b19a7d9bda38b0b573", - "createOption": "Empty", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/disks/virtualmachinex_disk2_3a286a32e35b43b19a7d9bda38b0b573" - }, - "diskSizeGB": 1023, - "toBeDetached": false - }, - { - "lun": 1, - "name": "virtualmachinex_disk3_439cb5ff46194498a20bdf1938f2a76a", - "createOption": "Empty", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/disks/virtualmachinex_disk3_439cb5ff46194498a20bdf1938f2a76a" - }, - "diskSizeGB": 1023, - "toBeDetached": false - } - ] - }, - "osProfile": { - "computerName": "myVM", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Network/networkInterfaces/interfacex", - "properties": { - "primary": true - } - } - ] - }, - "provisioningState": "Succeeded" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2763 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "qiaozhatest", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachines/virtualmachinex", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6166314350101757477", - "name": "PolicyDeployment_6166314350101757477", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "qiaozhatest" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinex" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-07-13T03:31:13.0783952Z", - "duration": "PT4M51.8376346S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-d2ua2vjw5ncze", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-d2ua2vjw5ncze" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-d2ua2vjw5ncze", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-d2ua2vjw5ncze" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/virtualMachines/virtualmachinex", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "virtualmachinex", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-d2ua2vjw5ncze", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-d2ua2vjw5ncze" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-d2ua2vjw5ncze", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-d2ua2vjw5ncze" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-d2ua2vjw5ncze", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-d2ua2vjw5ncze" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Resources/deployments/deployAddUAName-d2ua2vjw5ncze", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-d2ua2vjw5ncze" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/virtualMachines/virtualmachinex" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-miyzqlctb34jq", - "name": "deployGetResourceProperties-miyzqlctb34jq", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "8620251170407684871", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-07-01T07:06:42.4670995Z", - "duration": "PT1.7262334S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "rollingUpgradePolicy": { - "maxBatchInstancePercent": 20, - "maxUnhealthyInstancePercent": 100, - "maxUnhealthyUpgradedInstancePercent": 100, - "pauseTimeBetweenBatches": "PT0S" - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_compute_vmss_test_compute_vmss_rolling_upgradesb4bb17db/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2771 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "test_mgmt_compute_vmss_test_compute_vmss_rolling_upgradesb4bb17db", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_7177958428969243840", - "name": "PolicyDeployment_7177958428969243840", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "test_mgmt_compute_vmss_test_compute_vmss_rolling_upgradesb4bb17db" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescalesetb4bb17db" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-07-01T07:07:53.3938951Z", - "duration": "PT2M32.5178705S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-miyzqlctb34jq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-miyzqlctb34jq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-miyzqlctb34jq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-miyzqlctb34jq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_compute_vmss_test_compute_vmss_rolling_upgradesb4bb17db/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescalesetb4bb17db", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-miyzqlctb34jq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-miyzqlctb34jq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-miyzqlctb34jq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-miyzqlctb34jq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-miyzqlctb34jq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-miyzqlctb34jq" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_compute_vmss_test_compute_vmss_rolling_upgradesb4bb17db/providers/Microsoft.Resources/deployments/deployAddUAName-miyzqlctb34jq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-miyzqlctb34jq" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_compute_vmss_test_compute_vmss_rolling_upgradesb4bb17db/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5g4nawmohztri", - "name": "deployGetResourceProperties-5g4nawmohztri", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1539446799979377236", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-07-01T06:55:21.7382371Z", - "duration": "PT10.7363263S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_compute_vmss_test_compute_vmss_perform_maintenancefe411907/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2770 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "test_mgmt_compute_vmss_test_compute_vmss_perform_maintenancefe411907", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_521005816198881823", - "name": "PolicyDeployment_521005816198881823", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "test_mgmt_compute_vmss_test_compute_vmss_perform_maintenancefe411907" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescalesetfe411907" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-07-01T06:55:36.4582025Z", - "duration": "PT1M56.6220089S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5g4nawmohztri", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5g4nawmohztri" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5g4nawmohztri", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5g4nawmohztri" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_compute_vmss_test_compute_vmss_perform_maintenancefe411907/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescalesetfe411907", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5g4nawmohztri", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5g4nawmohztri" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5g4nawmohztri", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5g4nawmohztri" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5g4nawmohztri", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5g4nawmohztri" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_compute_vmss_test_compute_vmss_perform_maintenancefe411907/providers/Microsoft.Resources/deployments/deployAddUAName-5g4nawmohztri", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-5g4nawmohztri" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceGroupBeingDeleted", - "message": "The resource group \u0027test_mgmt_compute_vmss_test_compute_vmss_perform_maintenancefe411907\u0027 is in deprovisioning state and cannot perform this operation." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-rymdqmwztq6am", - "name": "deployGetResourceProperties-rymdqmwztq6am", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "6630210678779427283", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-06-22T04:33:17.3746117Z", - "duration": "PT1.3877777S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_V2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "rollingUpgradePolicy": { - "maxBatchInstancePercent": 20, - "maxUnhealthyInstancePercent": 20, - "maxUnhealthyUpgradedInstancePercent": 100, - "pauseTimeBetweenBatches": "PT0S" - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftwindowsServer", - "offer": "windowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Network/virtualNetworks/networknamex/subnets/subnetworknamex" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "vmssextensionx", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.NetworkWatcher", - "type": "NetworkWatcherAgentWindows", - "typeHandlerVersion": "1.4" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "qiaozhatest", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset2", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_13688331498590346828", - "name": "PolicyDeployment_13688331498590346828", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "qiaozhatest" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescaleset2" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-06-22T04:33:42.8808285Z", - "duration": "PT43.6029823S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-rymdqmwztq6am", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-rymdqmwztq6am" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-rymdqmwztq6am", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-rymdqmwztq6am" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset2", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescaleset2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-rymdqmwztq6am", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-rymdqmwztq6am" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-rymdqmwztq6am", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-rymdqmwztq6am" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-rymdqmwztq6am", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-rymdqmwztq6am" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Resources/deployments/deployAddUAName-rymdqmwztq6am", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-rymdqmwztq6am" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset2" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_17244566103059087720", - "name": "PolicyDeployment_17244566103059087720", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_ak2voevbcgusdvpphrto32g7noxoxfvmt67lfjyjyv3bx2yk" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T09:52:34.4806232Z", - "duration": "PT2M44.2728321S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5fg3shrb7lir2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5fg3shrb7lir2" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5fg3shrb7lir2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5fg3shrb7lir2" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ak2voevbcgusdvpphrto32g7noxoxfvmt67lfjyjyv3bx2yk/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5fg3shrb7lir2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5fg3shrb7lir2" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5fg3shrb7lir2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5fg3shrb7lir2" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5fg3shrb7lir2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5fg3shrb7lir2" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ak2voevbcgusdvpphrto32g7noxoxfvmt67lfjyjyv3bx2yk/providers/Microsoft.Resources/deployments/deployAddUAName-5fg3shrb7lir2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-5fg3shrb7lir2" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm2\u0027 under resource group \u0027connection_monitor_v2_test_ak2voevbcgusdvpphrto32g7noxoxfvmt67lfjyjyv3bx2yk\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_3017378775737217490", - "name": "PolicyDeployment_3017378775737217490", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_ak2voevbcgusdvpphrto32g7noxoxfvmt67lfjyjyv3bx2yk" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T09:47:34.7745458Z", - "duration": "PT1M24.5179704S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-dw2r7bg7oyj7k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-dw2r7bg7oyj7k" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-dw2r7bg7oyj7k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-dw2r7bg7oyj7k" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ak2voevbcgusdvpphrto32g7noxoxfvmt67lfjyjyv3bx2yk/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-dw2r7bg7oyj7k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-dw2r7bg7oyj7k" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-dw2r7bg7oyj7k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-dw2r7bg7oyj7k" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-dw2r7bg7oyj7k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-dw2r7bg7oyj7k" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ak2voevbcgusdvpphrto32g7noxoxfvmt67lfjyjyv3bx2yk/providers/Microsoft.Resources/deployments/deployAddUAName-dw2r7bg7oyj7k", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-dw2r7bg7oyj7k" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm1\u0027 under resource group \u0027connection_monitor_v2_test_ak2voevbcgusdvpphrto32g7noxoxfvmt67lfjyjyv3bx2yk\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_5933025552446584744", - "name": "PolicyDeployment_5933025552446584744", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T09:39:57.70646Z", - "duration": "PT31.0413445S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xthgqzzd5la4y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xthgqzzd5la4y" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xthgqzzd5la4y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xthgqzzd5la4y" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xthgqzzd5la4y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xthgqzzd5la4y" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xthgqzzd5la4y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xthgqzzd5la4y" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xthgqzzd5la4y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xthgqzzd5la4y" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel/providers/Microsoft.Resources/deployments/deployAddUAName-xthgqzzd5la4y", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-xthgqzzd5la4y" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm2\u0027 under resource group \u0027connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-krigzzhenav6q", - "name": "deployGetResourceProperties-krigzzhenav6q", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "9374297531777855135", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-06-09T09:32:41.9778282Z", - "duration": "PT2.068112S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_DS1_v2" - }, - "storageProfile": { - "imageReference": { - "publisher": "Canonical", - "offer": "UbuntuServer", - "sku": "18.04-LTS", - "version": "latest", - "exactVersion": "18.04.202105120" - }, - "osDisk": { - "osType": "Linux", - "name": "vm1_disk1_76c2e51ef2dc42c596b5de5bf7b5c5f3", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel/providers/Microsoft.Compute/disks/vm1_disk1_76c2e51ef2dc42c596b5de5bf7b5c5f3" - }, - "diskSizeGB": 30 - }, - "dataDisks": [] - }, - "osProfile": { - "computerName": "vm1", - "adminUsername": "azureuser", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/azureuser/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdSu5jSl0pD/VDsPv8SqVYvYCYf7ToFUqzrtQYsNQhFneukRzMw3otTIku3eSelwnCc/t\u002B88RvMrpcwCmc5meHXDwwQlEm/4sJ4mDfOnU2EOeI/2tEtMyOCgqXRN\u002BjO68RBGGLG4z\u002Bb\u002BI/Vdx5QxWId4W//Utr7yr5eMe\u002BtRFGisSDAC433SWXHQWUnyCFGJ70chjHj2JfuvLw2GFNz5AlnNHYBJdeY1l3aqmSp8UClcqyXwLYdZJDY/sgt1gEMwBe/rzgLtrP94OS63W\u002Bo4UHPg03vm40NWoQq1Sxmyn58moWJmjFz2iWXf7cyBsn4\u002BOwDWCOtZWFw/biIFNphDUh" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel/providers/Microsoft.Network/networkInterfaces/vm1VMNic" - } - ] - }, - "provisioningState": "Succeeded" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2763 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachines/vm1", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_9167546632742486080", - "name": "PolicyDeployment_9167546632742486080", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T09:32:46.0600444Z", - "duration": "PT22.0563398S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-krigzzhenav6q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-krigzzhenav6q" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-krigzzhenav6q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-krigzzhenav6q" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-krigzzhenav6q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-krigzzhenav6q" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-krigzzhenav6q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-krigzzhenav6q" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-krigzzhenav6q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-krigzzhenav6q" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel/providers/Microsoft.Resources/deployments/deployAddUAName-krigzzhenav6q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-krigzzhenav6q" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceGroupBeingDeleted", - "message": "The resource group \u0027connection_monitor_v2_test_7iyszzod4lx4mod4r6n5h4ez33kfmui3wiek2gazhjs5pdel\u0027 is in deprovisioning state and cannot perform this operation." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_12622019151489632899", - "name": "PolicyDeployment_12622019151489632899", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T09:29:24.1619664Z", - "duration": "PT1M7.4705086S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5fazzyhe6vecq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5fazzyhe6vecq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5fazzyhe6vecq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5fazzyhe6vecq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5fazzyhe6vecq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5fazzyhe6vecq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5fazzyhe6vecq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5fazzyhe6vecq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5fazzyhe6vecq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5fazzyhe6vecq" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-5fazzyhe6vecq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-5fazzyhe6vecq" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_2193346326226397194", - "name": "PolicyDeployment_2193346326226397194", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_hnyep75pnwswklznhwujbiyrxwryq2akd6rc3bcrlvfnhefn" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T09:24:09.8665564Z", - "duration": "PT21.4575837S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-jrnn2dmx2sylu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-jrnn2dmx2sylu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-jrnn2dmx2sylu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-jrnn2dmx2sylu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_hnyep75pnwswklznhwujbiyrxwryq2akd6rc3bcrlvfnhefn/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-jrnn2dmx2sylu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-jrnn2dmx2sylu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-jrnn2dmx2sylu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-jrnn2dmx2sylu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-jrnn2dmx2sylu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-jrnn2dmx2sylu" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_hnyep75pnwswklznhwujbiyrxwryq2akd6rc3bcrlvfnhefn/providers/Microsoft.Resources/deployments/deployAddUAName-jrnn2dmx2sylu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-jrnn2dmx2sylu" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm1\u0027 under resource group \u0027connection_monitor_v2_test_hnyep75pnwswklznhwujbiyrxwryq2akd6rc3bcrlvfnhefn\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_9446417865411814144", - "name": "PolicyDeployment_9446417865411814144", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T09:16:35.6032369Z", - "duration": "PT38.1933651S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ogo75vrxdrzpm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ogo75vrxdrzpm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ogo75vrxdrzpm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ogo75vrxdrzpm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ogo75vrxdrzpm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ogo75vrxdrzpm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ogo75vrxdrzpm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ogo75vrxdrzpm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ogo75vrxdrzpm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ogo75vrxdrzpm" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-ogo75vrxdrzpm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-ogo75vrxdrzpm" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6564021876016722434", - "name": "PolicyDeployment_6564021876016722434", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_vhlnviw5qf5plxoxhfgcmi4n3jozb575ipyul2qofqjoolqo" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T09:13:20.5798933Z", - "duration": "PT1M6.3827175S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ir7pweexi3e72", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ir7pweexi3e72" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ir7pweexi3e72", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ir7pweexi3e72" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_vhlnviw5qf5plxoxhfgcmi4n3jozb575ipyul2qofqjoolqo/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ir7pweexi3e72", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ir7pweexi3e72" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ir7pweexi3e72", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ir7pweexi3e72" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ir7pweexi3e72", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ir7pweexi3e72" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_vhlnviw5qf5plxoxhfgcmi4n3jozb575ipyul2qofqjoolqo/providers/Microsoft.Resources/deployments/deployAddUAName-ir7pweexi3e72", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-ir7pweexi3e72" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm1\u0027 under resource group \u0027connection_monitor_v2_test_vhlnviw5qf5plxoxhfgcmi4n3jozb575ipyul2qofqjoolqo\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_8730912599526543410", - "name": "PolicyDeployment_8730912599526543410", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm3" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T09:04:45.848699Z", - "duration": "PT19.0000134S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5iaelm2bqqkee", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5iaelm2bqqkee" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5iaelm2bqqkee", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5iaelm2bqqkee" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm3", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm3", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5iaelm2bqqkee", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5iaelm2bqqkee" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5iaelm2bqqkee", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5iaelm2bqqkee" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5iaelm2bqqkee", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5iaelm2bqqkee" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-5iaelm2bqqkee", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-5iaelm2bqqkee" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_5455436919549825971", - "name": "PolicyDeployment_5455436919549825971", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "cli_test_nw_connection_monitorrwg4iltqaxwmu7djzzlloccmr7nue6ky5y5rbe53ajxsq" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T08:59:50.8630697Z", - "duration": "PT22.8443601S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3jk35njnlkju2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3jk35njnlkju2" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3jk35njnlkju2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3jk35njnlkju2" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_connection_monitorrwg4iltqaxwmu7djzzlloccmr7nue6ky5y5rbe53ajxsq/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-3jk35njnlkju2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-3jk35njnlkju2" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3jk35njnlkju2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3jk35njnlkju2" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-3jk35njnlkju2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-3jk35njnlkju2" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_connection_monitorrwg4iltqaxwmu7djzzlloccmr7nue6ky5y5rbe53ajxsq/providers/Microsoft.Resources/deployments/deployAddUAName-3jk35njnlkju2", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-3jk35njnlkju2" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "NotFound", - "message": "The entity was not found in this Azure location." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_14797409885432699470", - "name": "PolicyDeployment_14797409885432699470", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm3" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T08:44:41.0732875Z", - "duration": "PT2M27.1204389S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-llhqsaeawlw5i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-llhqsaeawlw5i" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-llhqsaeawlw5i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-llhqsaeawlw5i" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm3", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm3", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-llhqsaeawlw5i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-llhqsaeawlw5i" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-llhqsaeawlw5i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-llhqsaeawlw5i" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-llhqsaeawlw5i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-llhqsaeawlw5i" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-llhqsaeawlw5i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-llhqsaeawlw5i" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_13365944347968950173", - "name": "PolicyDeployment_13365944347968950173", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "cli_test_nw_connection_monitors5rmzadfpe76xtjkymi23p7zqvkwjmprymdbhnyhidszc" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-06-09T08:40:29.2316527Z", - "duration": "PT27.0467242S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qdld735gu7obc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qdld735gu7obc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qdld735gu7obc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qdld735gu7obc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_connection_monitors5rmzadfpe76xtjkymi23p7zqvkwjmprymdbhnyhidszc/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-qdld735gu7obc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-qdld735gu7obc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-qdld735gu7obc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-qdld735gu7obc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-qdld735gu7obc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-qdld735gu7obc" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_connection_monitors5rmzadfpe76xtjkymi23p7zqvkwjmprymdbhnyhidszc/providers/Microsoft.Resources/deployments/deployAddUAName-qdld735gu7obc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-qdld735gu7obc" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm2\u0027 under resource group \u0027cli_test_nw_connection_monitors5rmzadfpe76xtjkymi23p7zqvkwjmprymdbhnyhidszc\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_15220343921822294641", - "name": "PolicyDeployment_15220343921822294641", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-19T07:01:28.0120401Z", - "duration": "PT24.1760798S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-zb46bmh4xtgci", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-zb46bmh4xtgci" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-zb46bmh4xtgci", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-zb46bmh4xtgci" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-zb46bmh4xtgci", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-zb46bmh4xtgci" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-zb46bmh4xtgci", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-zb46bmh4xtgci" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-zb46bmh4xtgci", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-zb46bmh4xtgci" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-zb46bmh4xtgci", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-zb46bmh4xtgci" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_7157282208884622346", - "name": "PolicyDeployment_7157282208884622346", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-19T06:59:18.2156656Z", - "duration": "PT22.9985574S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-i5dkttg5oewce", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-i5dkttg5oewce" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-i5dkttg5oewce", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-i5dkttg5oewce" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-i5dkttg5oewce", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-i5dkttg5oewce" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-i5dkttg5oewce", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-i5dkttg5oewce" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-i5dkttg5oewce", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-i5dkttg5oewce" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-i5dkttg5oewce", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-i5dkttg5oewce" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_13468877529422942984", - "name": "PolicyDeployment_13468877529422942984", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-19T06:41:32.4585989Z", - "duration": "PT23.6234198S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-lyhhd2l5knlb4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-lyhhd2l5knlb4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-lyhhd2l5knlb4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-lyhhd2l5knlb4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-lyhhd2l5knlb4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-lyhhd2l5knlb4" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-lyhhd2l5knlb4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-lyhhd2l5knlb4" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-lyhhd2l5knlb4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-lyhhd2l5knlb4" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-lyhhd2l5knlb4", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-lyhhd2l5knlb4" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6820470012175210992", - "name": "PolicyDeployment_6820470012175210992", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-19T06:38:55.5680873Z", - "duration": "PT24.1328309S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-aheb7u3haddbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-aheb7u3haddbm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-aheb7u3haddbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-aheb7u3haddbm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-aheb7u3haddbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-aheb7u3haddbm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-aheb7u3haddbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-aheb7u3haddbm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-aheb7u3haddbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-aheb7u3haddbm" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-aheb7u3haddbm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-aheb7u3haddbm" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_418976348931440292", - "name": "PolicyDeployment_418976348931440292", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:50:42.3190598Z", - "duration": "PT18.7454515S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-opg5kn2vlrr7s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-opg5kn2vlrr7s" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-opg5kn2vlrr7s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-opg5kn2vlrr7s" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-opg5kn2vlrr7s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-opg5kn2vlrr7s" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-opg5kn2vlrr7s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-opg5kn2vlrr7s" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-opg5kn2vlrr7s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-opg5kn2vlrr7s" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-opg5kn2vlrr7s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-opg5kn2vlrr7s" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_17890156099718483599", - "name": "PolicyDeployment_17890156099718483599", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:48:41.2306213Z", - "duration": "PT20.5350586S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-lznyg4skwti6g", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-lznyg4skwti6g" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-lznyg4skwti6g", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-lznyg4skwti6g" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-lznyg4skwti6g", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-lznyg4skwti6g" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-lznyg4skwti6g", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-lznyg4skwti6g" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-lznyg4skwti6g", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-lznyg4skwti6g" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-lznyg4skwti6g", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-lznyg4skwti6g" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_9277501041804876083", - "name": "PolicyDeployment_9277501041804876083", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_jwa4akgkm6lxu37mwac6ckkwt5cijs25t3bxzqjp47cxh2xa" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:35:04.4101968Z", - "duration": "PT19.0136624S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-44oznejbgc5cy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-44oznejbgc5cy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-44oznejbgc5cy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-44oznejbgc5cy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_jwa4akgkm6lxu37mwac6ckkwt5cijs25t3bxzqjp47cxh2xa/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-44oznejbgc5cy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-44oznejbgc5cy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-44oznejbgc5cy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-44oznejbgc5cy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-44oznejbgc5cy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-44oznejbgc5cy" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_jwa4akgkm6lxu37mwac6ckkwt5cijs25t3bxzqjp47cxh2xa/providers/Microsoft.Resources/deployments/deployAddUAName-44oznejbgc5cy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-44oznejbgc5cy" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm2\u0027 under resource group \u0027connection_monitor_v2_test_jwa4akgkm6lxu37mwac6ckkwt5cijs25t3bxzqjp47cxh2xa\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6729875756593545109", - "name": "PolicyDeployment_6729875756593545109", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_jwa4akgkm6lxu37mwac6ckkwt5cijs25t3bxzqjp47cxh2xa" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:33:07.5661169Z", - "duration": "PT25.1864637S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-75skdqcukbh32", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-75skdqcukbh32" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-75skdqcukbh32", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-75skdqcukbh32" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_jwa4akgkm6lxu37mwac6ckkwt5cijs25t3bxzqjp47cxh2xa/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-75skdqcukbh32", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-75skdqcukbh32" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-75skdqcukbh32", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-75skdqcukbh32" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-75skdqcukbh32", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-75skdqcukbh32" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_jwa4akgkm6lxu37mwac6ckkwt5cijs25t3bxzqjp47cxh2xa/providers/Microsoft.Resources/deployments/deployAddUAName-75skdqcukbh32", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-75skdqcukbh32" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "NotFound", - "message": "The entity was not found in this Azure location." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_12362970210514327221", - "name": "PolicyDeployment_12362970210514327221", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:27:10.5923218Z", - "duration": "PT20.9365029S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-2j536mw4ax5lc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-2j536mw4ax5lc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-2j536mw4ax5lc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-2j536mw4ax5lc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-2j536mw4ax5lc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-2j536mw4ax5lc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-2j536mw4ax5lc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-2j536mw4ax5lc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-2j536mw4ax5lc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-2j536mw4ax5lc" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-2j536mw4ax5lc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-2j536mw4ax5lc" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_4197793074854244607", - "name": "PolicyDeployment_4197793074854244607", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:25:17.2800321Z", - "duration": "PT20.7235501S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xlwdo3f2wh56o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xlwdo3f2wh56o" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xlwdo3f2wh56o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xlwdo3f2wh56o" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xlwdo3f2wh56o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xlwdo3f2wh56o" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xlwdo3f2wh56o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xlwdo3f2wh56o" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xlwdo3f2wh56o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xlwdo3f2wh56o" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-xlwdo3f2wh56o", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-xlwdo3f2wh56o" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_8252655084456500626", - "name": "PolicyDeployment_8252655084456500626", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:20:07.1055332Z", - "duration": "PT19.7401683S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-q33ctfrqy53lw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-q33ctfrqy53lw" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-q33ctfrqy53lw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-q33ctfrqy53lw" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-q33ctfrqy53lw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-q33ctfrqy53lw" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-q33ctfrqy53lw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-q33ctfrqy53lw" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-q33ctfrqy53lw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-q33ctfrqy53lw" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-q33ctfrqy53lw", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-q33ctfrqy53lw" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_4428971831159191566", - "name": "PolicyDeployment_4428971831159191566", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_ay7npvlhjjybknznpaxu4te73txwh35fbgg5eozzet5tzmfr" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:18:01.4999678Z", - "duration": "PT22.1346243S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-2yvcohs3zx7kc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-2yvcohs3zx7kc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-2yvcohs3zx7kc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-2yvcohs3zx7kc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ay7npvlhjjybknznpaxu4te73txwh35fbgg5eozzet5tzmfr/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-2yvcohs3zx7kc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-2yvcohs3zx7kc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-2yvcohs3zx7kc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-2yvcohs3zx7kc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-2yvcohs3zx7kc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-2yvcohs3zx7kc" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ay7npvlhjjybknznpaxu4te73txwh35fbgg5eozzet5tzmfr/providers/Microsoft.Resources/deployments/deployAddUAName-2yvcohs3zx7kc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-2yvcohs3zx7kc" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm1\u0027 under resource group \u0027connection_monitor_v2_test_ay7npvlhjjybknznpaxu4te73txwh35fbgg5eozzet5tzmfr\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_17490572049124734105", - "name": "PolicyDeployment_17490572049124734105", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:05:03.4889912Z", - "duration": "PT23.7874244S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6habkdtsszw22", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6habkdtsszw22" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6habkdtsszw22", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6habkdtsszw22" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-6habkdtsszw22", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-6habkdtsszw22" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6habkdtsszw22", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6habkdtsszw22" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-6habkdtsszw22", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-6habkdtsszw22" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-6habkdtsszw22", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-6habkdtsszw22" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_5341870745775050589", - "name": "PolicyDeployment_5341870745775050589", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_umahlqw3dnygte3cwiwuw5ufs6fajnqthjecdy66dga26w7c" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T06:02:36.5908658Z", - "duration": "PT21.1837604S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-7uc4t7fti7w2u", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-7uc4t7fti7w2u" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-7uc4t7fti7w2u", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-7uc4t7fti7w2u" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_umahlqw3dnygte3cwiwuw5ufs6fajnqthjecdy66dga26w7c/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-7uc4t7fti7w2u", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-7uc4t7fti7w2u" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-7uc4t7fti7w2u", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-7uc4t7fti7w2u" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-7uc4t7fti7w2u", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-7uc4t7fti7w2u" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_umahlqw3dnygte3cwiwuw5ufs6fajnqthjecdy66dga26w7c/providers/Microsoft.Resources/deployments/deployAddUAName-7uc4t7fti7w2u", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-7uc4t7fti7w2u" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm1\u0027 under resource group \u0027connection_monitor_v2_test_umahlqw3dnygte3cwiwuw5ufs6fajnqthjecdy66dga26w7c\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_8977472046943564058", - "name": "PolicyDeployment_8977472046943564058", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_ksvyqzjkcpnzpo5l4duwdqkgydtqdmr2zjsbmhy7fvlzfe2z" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:52:35.9527791Z", - "duration": "PT21.4969569S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6xi6sk5y5f6dm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6xi6sk5y5f6dm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6xi6sk5y5f6dm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6xi6sk5y5f6dm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ksvyqzjkcpnzpo5l4duwdqkgydtqdmr2zjsbmhy7fvlzfe2z/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-6xi6sk5y5f6dm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-6xi6sk5y5f6dm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-6xi6sk5y5f6dm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-6xi6sk5y5f6dm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-6xi6sk5y5f6dm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-6xi6sk5y5f6dm" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ksvyqzjkcpnzpo5l4duwdqkgydtqdmr2zjsbmhy7fvlzfe2z/providers/Microsoft.Resources/deployments/deployAddUAName-6xi6sk5y5f6dm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-6xi6sk5y5f6dm" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/vm2\u0027 under resource group \u0027connection_monitor_v2_test_ksvyqzjkcpnzpo5l4duwdqkgydtqdmr2zjsbmhy7fvlzfe2z\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_12837272500968156357", - "name": "PolicyDeployment_12837272500968156357", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_ksvyqzjkcpnzpo5l4duwdqkgydtqdmr2zjsbmhy7fvlzfe2z" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:54:22.0391939Z", - "duration": "PT4M23.2620413S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-243i4677mmt6e", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-243i4677mmt6e" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-243i4677mmt6e", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-243i4677mmt6e" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ksvyqzjkcpnzpo5l4duwdqkgydtqdmr2zjsbmhy7fvlzfe2z/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-243i4677mmt6e", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-243i4677mmt6e" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-243i4677mmt6e", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-243i4677mmt6e" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-243i4677mmt6e", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-243i4677mmt6e" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_ksvyqzjkcpnzpo5l4duwdqkgydtqdmr2zjsbmhy7fvlzfe2z/providers/Microsoft.Resources/deployments/deployAddUAName-243i4677mmt6e", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-243i4677mmt6e" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "NotFound", - "message": "The entity was not found in this Azure location." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_4433457608997980812", - "name": "PolicyDeployment_4433457608997980812", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:46:19.0904174Z", - "duration": "PT19.1481887S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-pv45zfqcqq75s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-pv45zfqcqq75s" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-pv45zfqcqq75s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-pv45zfqcqq75s" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-pv45zfqcqq75s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-pv45zfqcqq75s" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-pv45zfqcqq75s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-pv45zfqcqq75s" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-pv45zfqcqq75s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-pv45zfqcqq75s" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-pv45zfqcqq75s", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-pv45zfqcqq75s" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_9516884543010371674", - "name": "PolicyDeployment_9516884543010371674", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "connection_monitor_v2_test_uu2torchipawsjgcesmiwpmpo5ijhqwhovnihdkrxds3lkte" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:44:18.1208437Z", - "duration": "PT20.0560033S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-syivj5na4osny", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-syivj5na4osny" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-syivj5na4osny", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-syivj5na4osny" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_uu2torchipawsjgcesmiwpmpo5ijhqwhovnihdkrxds3lkte/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-syivj5na4osny", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-syivj5na4osny" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-syivj5na4osny", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-syivj5na4osny" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-syivj5na4osny", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-syivj5na4osny" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_uu2torchipawsjgcesmiwpmpo5ijhqwhovnihdkrxds3lkte/providers/Microsoft.Resources/deployments/deployAddUAName-syivj5na4osny", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-syivj5na4osny" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceGroupNotFound", - "message": "Resource group \u0027connection_monitor_v2_test_uu2torchipawsjgcesmiwpmpo5ijhqwhovnihdkrxds3lkte\u0027 could not be found." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_3941761427616413741", - "name": "PolicyDeployment_3941761427616413741", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:32:38.8150055Z", - "duration": "PT18.6847776S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-rctedqwwvaxeg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-rctedqwwvaxeg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-rctedqwwvaxeg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-rctedqwwvaxeg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-rctedqwwvaxeg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-rctedqwwvaxeg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-rctedqwwvaxeg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-rctedqwwvaxeg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-rctedqwwvaxeg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-rctedqwwvaxeg" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-rctedqwwvaxeg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-rctedqwwvaxeg" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_13549053034578151532", - "name": "PolicyDeployment_13549053034578151532", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:32:43.4419342Z", - "duration": "PT24.0641185S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-q3hrqiqur4jxy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-q3hrqiqur4jxy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-q3hrqiqur4jxy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-q3hrqiqur4jxy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-q3hrqiqur4jxy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-q3hrqiqur4jxy" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-q3hrqiqur4jxy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-q3hrqiqur4jxy" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-q3hrqiqur4jxy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-q3hrqiqur4jxy" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-q3hrqiqur4jxy", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-q3hrqiqur4jxy" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_413356800166860877", - "name": "PolicyDeployment_413356800166860877", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:30:30.8319607Z", - "duration": "PT19.7093071S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-vlipoxypsy3fe", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-vlipoxypsy3fe" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-vlipoxypsy3fe", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-vlipoxypsy3fe" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-vlipoxypsy3fe", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-vlipoxypsy3fe" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-vlipoxypsy3fe", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-vlipoxypsy3fe" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-vlipoxypsy3fe", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-vlipoxypsy3fe" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-vlipoxypsy3fe", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-vlipoxypsy3fe" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10976362815047932818", - "name": "PolicyDeployment_10976362815047932818", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:30:31.9991012Z", - "duration": "PT23.5093637S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-p27ugzsejujrk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-p27ugzsejujrk" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-p27ugzsejujrk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-p27ugzsejujrk" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-p27ugzsejujrk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-p27ugzsejujrk" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-p27ugzsejujrk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-p27ugzsejujrk" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-p27ugzsejujrk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-p27ugzsejujrk" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-p27ugzsejujrk", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-p27ugzsejujrk" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_2984895323495808479", - "name": "PolicyDeployment_2984895323495808479", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm3" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:19:26.0405846Z", - "duration": "PT21.9944863S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hxb4ppj3x4dfg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hxb4ppj3x4dfg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hxb4ppj3x4dfg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hxb4ppj3x4dfg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm3", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm3", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-hxb4ppj3x4dfg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-hxb4ppj3x4dfg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-hxb4ppj3x4dfg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-hxb4ppj3x4dfg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-hxb4ppj3x4dfg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-hxb4ppj3x4dfg" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-hxb4ppj3x4dfg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-hxb4ppj3x4dfg" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_6221143249609636328", - "name": "PolicyDeployment_6221143249609636328", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-13T03:16:53.1572107Z", - "duration": "PT20.2577124S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-asoq3h5jdjiju", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-asoq3h5jdjiju" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-asoq3h5jdjiju", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-asoq3h5jdjiju" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-asoq3h5jdjiju", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-asoq3h5jdjiju" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-asoq3h5jdjiju", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-asoq3h5jdjiju" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-asoq3h5jdjiju", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-asoq3h5jdjiju" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-asoq3h5jdjiju", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-asoq3h5jdjiju" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10016938348598938497", - "name": "PolicyDeployment_10016938348598938497", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-12T10:10:31.6777368Z", - "duration": "PT27.9295234S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xrujraicodpbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xrujraicodpbc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xrujraicodpbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xrujraicodpbc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xrujraicodpbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xrujraicodpbc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xrujraicodpbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xrujraicodpbc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xrujraicodpbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xrujraicodpbc" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-xrujraicodpbc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-xrujraicodpbc" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10601311847081047180", - "name": "PolicyDeployment_10601311847081047180", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-12T10:08:18.3661529Z", - "duration": "PT20.6965925S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-fafbsldvrwkvq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-fafbsldvrwkvq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-fafbsldvrwkvq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-fafbsldvrwkvq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-fafbsldvrwkvq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-fafbsldvrwkvq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-fafbsldvrwkvq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-fafbsldvrwkvq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-fafbsldvrwkvq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-fafbsldvrwkvq" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-fafbsldvrwkvq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-fafbsldvrwkvq" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_18383980597745779245", - "name": "PolicyDeployment_18383980597745779245", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-12T09:56:02.8570334Z", - "duration": "PT20.1615234S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-a57nmw2brabxc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-a57nmw2brabxc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-a57nmw2brabxc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-a57nmw2brabxc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-a57nmw2brabxc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-a57nmw2brabxc" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-a57nmw2brabxc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-a57nmw2brabxc" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-a57nmw2brabxc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-a57nmw2brabxc" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-a57nmw2brabxc", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-a57nmw2brabxc" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_2190548582201876087", - "name": "PolicyDeployment_2190548582201876087", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm1" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-05-12T09:53:56.1351731Z", - "duration": "PT18.6727764S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-43a272qv2y62q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-43a272qv2y62q" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-43a272qv2y62q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-43a272qv2y62q" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm1", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-43a272qv2y62q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-43a272qv2y62q" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-43a272qv2y62q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-43a272qv2y62q" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-43a272qv2y62q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-43a272qv2y62q" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-43a272qv2y62q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-43a272qv2y62q" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xvy74mydistvm", - "name": "deployGetResourceProperties-xvy74mydistvm", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12901824054739391010", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T11:43:39.2553816Z", - "duration": "PT1.9490227S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/6siho75tj2zqxoonwyae6oqvrvcgwpflrofv3k424772jxtuq54zxqovu6fw4tyl7qg3qednud5/providers/Microsoft.Network/virtualNetworks/networknamexb172129e/subnets/subnetnamexb172129e" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2771 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "6siho75tj2zqxoonwyae6oqvrvcgwpflrofv3k424772jxtuq54zxqovu6fw4tyl7qg3qednud5", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_3650735272231114763", - "name": "PolicyDeployment_3650735272231114763", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "6siho75tj2zqxoonwyae6oqvrvcgwpflrofv3k424772jxtuq54zxqovu6fw4tyl7qg3qednud5" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescalesetb172129e" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T12:04:14.5505159Z", - "duration": "PT21M2.2085522S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xvy74mydistvm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xvy74mydistvm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xvy74mydistvm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xvy74mydistvm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/6siho75tj2zqxoonwyae6oqvrvcgwpflrofv3k424772jxtuq54zxqovu6fw4tyl7qg3qednud5/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescalesetb172129e", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xvy74mydistvm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xvy74mydistvm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-xvy74mydistvm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-xvy74mydistvm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-xvy74mydistvm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-xvy74mydistvm" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/6siho75tj2zqxoonwyae6oqvrvcgwpflrofv3k424772jxtuq54zxqovu6fw4tyl7qg3qednud5/providers/Microsoft.Resources/deployments/deployAddUAName-xvy74mydistvm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-xvy74mydistvm" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/6siho75tj2zqxoonwyae6oqvrvcgwpflrofv3k424772jxtuq54zxqovu6fw4tyl7qg3qednud5/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-47afbashdmrao", - "name": "deployGetResourceProperties-47afbashdmrao", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "7091353190534914768", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T11:24:32.8775907Z", - "duration": "PT1.6158133S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/q4bcjoqm7n756f2hhq4du3osicaqdl4nw776tmkl5ihsggova4ekoxlv4gvb7dgqafdhe7do5mi/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2771 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "q4bcjoqm7n756f2hhq4du3osicaqdl4nw776tmkl5ihsggova4ekoxlv4gvb7dgqafdhe7do5mi", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_2337058108230837130", - "name": "PolicyDeployment_2337058108230837130", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "q4bcjoqm7n756f2hhq4du3osicaqdl4nw776tmkl5ihsggova4ekoxlv4gvb7dgqafdhe7do5mi" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescaleset8c68120d" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T11:24:58.7907029Z", - "duration": "PT49.2502384S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-47afbashdmrao", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-47afbashdmrao" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-47afbashdmrao", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-47afbashdmrao" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/q4bcjoqm7n756f2hhq4du3osicaqdl4nw776tmkl5ihsggova4ekoxlv4gvb7dgqafdhe7do5mi/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescaleset8c68120d", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-47afbashdmrao", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-47afbashdmrao" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-47afbashdmrao", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-47afbashdmrao" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-47afbashdmrao", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-47afbashdmrao" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/q4bcjoqm7n756f2hhq4du3osicaqdl4nw776tmkl5ihsggova4ekoxlv4gvb7dgqafdhe7do5mi/providers/Microsoft.Resources/deployments/deployAddUAName-47afbashdmrao", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-47afbashdmrao" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/q4bcjoqm7n756f2hhq4du3osicaqdl4nw776tmkl5ihsggova4ekoxlv4gvb7dgqafdhe7do5mi/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ke47kxvqyhiam", - "name": "deployGetResourceProperties-ke47kxvqyhiam", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "16599242988912350258", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T11:03:45.5328751Z", - "duration": "PT1.5317045S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "rollingUpgradePolicy": { - "maxBatchInstancePercent": 20, - "maxUnhealthyInstancePercent": 100, - "maxUnhealthyUpgradedInstancePercent": 100, - "pauseTimeBetweenBatches": "PT0S" - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/2p35zow3vtg6ujnafcyalphydfdvmrh3snxsiagin4x5i7vdadd6tgjp5cieqrgolsjubghmblf/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "2p35zow3vtg6ujnafcyalphydfdvmrh3snxsiagin4x5i7vdadd6tgjp5cieqrgolsjubghmblf", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_15644192600029835802", - "name": "PolicyDeployment_15644192600029835802", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "2p35zow3vtg6ujnafcyalphydfdvmrh3snxsiagin4x5i7vdadd6tgjp5cieqrgolsjubghmblf" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescalesetb4bb17db" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T11:04:13.4955216Z", - "duration": "PT48.5978386S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ke47kxvqyhiam", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ke47kxvqyhiam" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ke47kxvqyhiam", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ke47kxvqyhiam" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/2p35zow3vtg6ujnafcyalphydfdvmrh3snxsiagin4x5i7vdadd6tgjp5cieqrgolsjubghmblf/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescalesetb4bb17db", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ke47kxvqyhiam", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ke47kxvqyhiam" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-ke47kxvqyhiam", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-ke47kxvqyhiam" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-ke47kxvqyhiam", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-ke47kxvqyhiam" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/2p35zow3vtg6ujnafcyalphydfdvmrh3snxsiagin4x5i7vdadd6tgjp5cieqrgolsjubghmblf/providers/Microsoft.Resources/deployments/deployAddUAName-ke47kxvqyhiam", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-ke47kxvqyhiam" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/2p35zow3vtg6ujnafcyalphydfdvmrh3snxsiagin4x5i7vdadd6tgjp5cieqrgolsjubghmblf/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-sol4p5zmvddls", - "name": "deployGetResourceProperties-sol4p5zmvddls", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "7218360543916380304", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T10:51:48.0505919Z", - "duration": "PT1.8627995S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/oucb6hva5iphwt53d55jn22fmq4htxmz6l36m52ovibcwpxqtd4kcd6hdhzqjhtvq5znly6pfoi/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "oucb6hva5iphwt53d55jn22fmq4htxmz6l36m52ovibcwpxqtd4kcd6hdhzqjhtvq5znly6pfoi", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_14822481377424165441", - "name": "PolicyDeployment_14822481377424165441", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "oucb6hva5iphwt53d55jn22fmq4htxmz6l36m52ovibcwpxqtd4kcd6hdhzqjhtvq5znly6pfoi" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescalesetfe411907" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-04-06T10:52:01.2330869Z", - "duration": "PT33.9824564S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-sol4p5zmvddls", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-sol4p5zmvddls" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-sol4p5zmvddls", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-sol4p5zmvddls" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/oucb6hva5iphwt53d55jn22fmq4htxmz6l36m52ovibcwpxqtd4kcd6hdhzqjhtvq5znly6pfoi/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescalesetfe411907", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-sol4p5zmvddls", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-sol4p5zmvddls" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-sol4p5zmvddls", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-sol4p5zmvddls" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-sol4p5zmvddls", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-sol4p5zmvddls" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/oucb6hva5iphwt53d55jn22fmq4htxmz6l36m52ovibcwpxqtd4kcd6hdhzqjhtvq5znly6pfoi/providers/Microsoft.Resources/deployments/deployAddUAName-sol4p5zmvddls", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-sol4p5zmvddls" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-nkslhoku2wupo", - "name": "deployGetResourceProperties-nkslhoku2wupo", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "689577500085815712", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T10:26:06.6841006Z", - "duration": "PT1.3825595S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 2 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "healthProbe": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hws7w3gq2txbegutx3h2wsan47epuwoiixqj4heqygw4w6jhzmu5vju6zam5bkei5e3pnkazknj/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe" - }, - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hws7w3gq2txbegutx3h2wsan47epuwoiixqj4heqygw4w6jhzmu5vju6zam5bkei5e3pnkazknj/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356/subnets/subnetnamexd7d31356" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hws7w3gq2txbegutx3h2wsan47epuwoiixqj4heqygw4w6jhzmu5vju6zam5bkei5e3pnkazknj/providers/Microsoft.Network/loadBalancers/myLoadBalancer/backendAddressPools/myBackendAddressPool" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "automaticRepairsPolicy": { - "enabled": true, - "gracePeriod": "PT30M" - } - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2771 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "hws7w3gq2txbegutx3h2wsan47epuwoiixqj4heqygw4w6jhzmu5vju6zam5bkei5e3pnkazknj", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_9046943815884428156", - "name": "PolicyDeployment_9046943815884428156", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "hws7w3gq2txbegutx3h2wsan47epuwoiixqj4heqygw4w6jhzmu5vju6zam5bkei5e3pnkazknj" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescalesetd7d31356" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T10:31:27.1716204Z", - "duration": "PT5M41.0862748S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-nkslhoku2wupo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-nkslhoku2wupo" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-nkslhoku2wupo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-nkslhoku2wupo" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hws7w3gq2txbegutx3h2wsan47epuwoiixqj4heqygw4w6jhzmu5vju6zam5bkei5e3pnkazknj/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescalesetd7d31356", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-nkslhoku2wupo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-nkslhoku2wupo" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-nkslhoku2wupo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-nkslhoku2wupo" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-nkslhoku2wupo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-nkslhoku2wupo" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hws7w3gq2txbegutx3h2wsan47epuwoiixqj4heqygw4w6jhzmu5vju6zam5bkei5e3pnkazknj/providers/Microsoft.Resources/deployments/deployAddUAName-nkslhoku2wupo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-nkslhoku2wupo" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hws7w3gq2txbegutx3h2wsan47epuwoiixqj4heqygw4w6jhzmu5vju6zam5bkei5e3pnkazknj/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-lnp2vl4wocvku", - "name": "deployGetResourceProperties-lnp2vl4wocvku", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "14105683920689234788", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T09:18:27.7086191Z", - "duration": "PT1.709629S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 2 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nuzm56azfrdteohmad2ofyzdelz3yus5usbscaicmdcjz4hp5elmhi5e7rugmv6gtqnqzufwl7p/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "vmssextensionx80f0ea3", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.NetworkWatcher", - "type": "NetworkWatcherAgentWindows", - "typeHandlerVersion": "1.4" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "nuzm56azfrdteohmad2ofyzdelz3yus5usbscaicmdcjz4hp5elmhi5e7rugmv6gtqnqzufwl7p", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_15926688639757022306", - "name": "PolicyDeployment_15926688639757022306", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "nuzm56azfrdteohmad2ofyzdelz3yus5usbscaicmdcjz4hp5elmhi5e7rugmv6gtqnqzufwl7p" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescaleset80f0ea3" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T09:18:48.0800016Z", - "duration": "PT41.3432389S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-lnp2vl4wocvku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-lnp2vl4wocvku" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-lnp2vl4wocvku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-lnp2vl4wocvku" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nuzm56azfrdteohmad2ofyzdelz3yus5usbscaicmdcjz4hp5elmhi5e7rugmv6gtqnqzufwl7p/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescaleset80f0ea3", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-lnp2vl4wocvku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-lnp2vl4wocvku" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-lnp2vl4wocvku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-lnp2vl4wocvku" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-lnp2vl4wocvku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-lnp2vl4wocvku" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nuzm56azfrdteohmad2ofyzdelz3yus5usbscaicmdcjz4hp5elmhi5e7rugmv6gtqnqzufwl7p/providers/Microsoft.Resources/deployments/deployAddUAName-lnp2vl4wocvku", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-lnp2vl4wocvku" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nuzm56azfrdteohmad2ofyzdelz3yus5usbscaicmdcjz4hp5elmhi5e7rugmv6gtqnqzufwl7p/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5scuci3mzgqkg", - "name": "deployGetResourceProperties-5scuci3mzgqkg", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "11835974174097076217", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T08:57:38.2682168Z", - "duration": "PT1.8393266S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "rollingUpgradePolicy": { - "maxBatchInstancePercent": 20, - "maxUnhealthyInstancePercent": 100, - "maxUnhealthyUpgradedInstancePercent": 100, - "pauseTimeBetweenBatches": "PT0S" - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xanma6vma2sydlwswky67odzva7v6amkymltjwrk5eldxv6p6n7bdl2bioqxvodlgbvnak5uieb/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "xanma6vma2sydlwswky67odzva7v6amkymltjwrk5eldxv6p6n7bdl2bioqxvodlgbvnak5uieb", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10589121454594138331", - "name": "PolicyDeployment_10589121454594138331", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "xanma6vma2sydlwswky67odzva7v6amkymltjwrk5eldxv6p6n7bdl2bioqxvodlgbvnak5uieb" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescalesetb4bb17db" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-06T08:58:01.0567715Z", - "duration": "PT42.5387139S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5scuci3mzgqkg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5scuci3mzgqkg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5scuci3mzgqkg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5scuci3mzgqkg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xanma6vma2sydlwswky67odzva7v6amkymltjwrk5eldxv6p6n7bdl2bioqxvodlgbvnak5uieb/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescalesetb4bb17db", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5scuci3mzgqkg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5scuci3mzgqkg" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-5scuci3mzgqkg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-5scuci3mzgqkg" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-5scuci3mzgqkg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-5scuci3mzgqkg" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xanma6vma2sydlwswky67odzva7v6amkymltjwrk5eldxv6p6n7bdl2bioqxvodlgbvnak5uieb/providers/Microsoft.Resources/deployments/deployAddUAName-5scuci3mzgqkg", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-5scuci3mzgqkg" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xanma6vma2sydlwswky67odzva7v6amkymltjwrk5eldxv6p6n7bdl2bioqxvodlgbvnak5uieb/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gqjyspxr4ixbo", - "name": "deployGetResourceProperties-gqjyspxr4ixbo", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "6617588745468897785", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-02T02:18:40.1988238Z", - "duration": "PT0.3596318S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS1_v2", - "tier": "Standard", - "capacity": 2 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmsss8893", - "adminUsername": "vsts", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/vsts/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSiGBp3J2FCx9uLVDereeSwKPEfDZ9I2ezt4Gp3Opg1vAf9aaUmScblHNVviJi7lQwwKDk1o57EyxF\u002B3OYmpF\u002BOU9xummr9Gmjduwk45q1aQyo\u002B\u002Bs0z/gs1OXNCQKNTtOnmeONuGSGKpu9c35frmJEecECP6LXy7jX3zSNFZE4CkwCBmp5JYftX7TUKiEcIAFH9u4wLThAib254vPaO7gM2uUyIlOpjTQ52uB06qyY30dQfVOaDkCM\u002B5bbmc\u002BLo9aqw9mxzAakoHAdIefaIZKjc81efiE3q//yh6M0c\u002BfhmXM23\u002Bt9tkFd9cSTwjOI9BaFOMJJgx9sgq8UHXCaXwfH" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 30 - }, - "imageReference": { - "publisher": "OpenLogic", - "offer": "CentOS", - "sku": "7.5", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "vmsss8893Nic", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "vmsss8893IPConfig", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Network/virtualNetworks/vmss-simualte-eviction1VNET/subnets/vmss-simualte-eviction1Subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Network/loadBalancers/vmss-simulate-eviction2LB/backendAddressPools/vmss-simulate-eviction2LBBEPool" - } - ], - "loadBalancerInboundNatPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Network/loadBalancers/vmss-simulate-eviction2LB/inboundNatPools/vmss-simulate-eviction2LBNatPool" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true - } - } - } - ] - }, - "priority": "Spot", - "evictionPolicy": "Deallocate", - "billingProfile": { - "maxPrice": -1.0 - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "platformFaultDomainCount": 1 - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/vmss-simulate-eviction2", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_16111185683815579441", - "name": "PolicyDeployment_16111185683815579441", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vmss-simulate-eviction2" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-02T02:19:01.4562002Z", - "duration": "PT25.3113588S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gqjyspxr4ixbo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gqjyspxr4ixbo" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gqjyspxr4ixbo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gqjyspxr4ixbo" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Compute/virtualMachineScaleSets/vmss-simulate-eviction2", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "vmss-simulate-eviction2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gqjyspxr4ixbo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-gqjyspxr4ixbo" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gqjyspxr4ixbo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gqjyspxr4ixbo" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gqjyspxr4ixbo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-gqjyspxr4ixbo" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Resources/deployments/deployAddUAName-gqjyspxr4ixbo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-gqjyspxr4ixbo" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Compute/virtualMachineScaleSets/vmss-simulate-eviction2" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-3jo7cgiup7rly", - "name": "deployGetResourceProperties-3jo7cgiup7rly", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1495455784082449091", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-02T02:14:58.1376117Z", - "duration": "PT0.417397S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_DS1_v2", - "tier": "Standard", - "capacity": 2 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmsssb055", - "adminUsername": "vsts", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "path": "/home/vsts/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSiGBp3J2FCx9uLVDereeSwKPEfDZ9I2ezt4Gp3Opg1vAf9aaUmScblHNVviJi7lQwwKDk1o57EyxF\u002B3OYmpF\u002BOU9xummr9Gmjduwk45q1aQyo\u002B\u002Bs0z/gs1OXNCQKNTtOnmeONuGSGKpu9c35frmJEecECP6LXy7jX3zSNFZE4CkwCBmp5JYftX7TUKiEcIAFH9u4wLThAib254vPaO7gM2uUyIlOpjTQ52uB06qyY30dQfVOaDkCM\u002B5bbmc\u002BLo9aqw9mxzAakoHAdIefaIZKjc81efiE3q//yh6M0c\u002BfhmXM23\u002Bt9tkFd9cSTwjOI9BaFOMJJgx9sgq8UHXCaXwfH" - } - ] - }, - "provisionVMAgent": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Linux", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "diskSizeGB": 30 - }, - "imageReference": { - "publisher": "OpenLogic", - "offer": "CentOS", - "sku": "7.5", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "vmsssb055Nic", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "vmsssb055IPConfig", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Network/virtualNetworks/vmss-simualte-eviction1VNET/subnets/vmss-simualte-eviction1Subnet" - }, - "privateIPAddressVersion": "IPv4", - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Network/loadBalancers/vmss-simualte-eviction1LB/backendAddressPools/vmss-simualte-eviction1LBBEPool" - } - ], - "loadBalancerInboundNatPools": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Network/loadBalancers/vmss-simualte-eviction1LB/inboundNatPools/vmss-simualte-eviction1LBNatPool" - } - ] - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Monitor", - "type": "AzureMonitorLinuxAgent", - "typeHandlerVersion": "1.0", - "settings": { - "GCS_AUTO_CONFIG": true - } - } - }, - { - "name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "typeHandlerVersion": "2.0", - "settings": { - "enableGenevaUpload": true - } - } - } - ] - }, - "priority": "Regular" - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/vmss-simualte-eviction1", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_17235332286809515252", - "name": "PolicyDeployment_17235332286809515252", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vmss-simualte-eviction1" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-02T02:15:19.7958605Z", - "duration": "PT25.7995232S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3jo7cgiup7rly", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3jo7cgiup7rly" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3jo7cgiup7rly", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3jo7cgiup7rly" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Compute/virtualMachineScaleSets/vmss-simualte-eviction1", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "vmss-simualte-eviction1", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-3jo7cgiup7rly", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-3jo7cgiup7rly" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-3jo7cgiup7rly", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-3jo7cgiup7rly" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-3jo7cgiup7rly", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-3jo7cgiup7rly" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Resources/deployments/deployAddUAName-3jo7cgiup7rly", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-3jo7cgiup7rly" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_simulate_evictionazxxmkkba3hke3yfshdzakhfswtuokho6k3zqpavj63d/providers/Microsoft.Compute/virtualMachineScaleSets/vmss-simualte-eviction1" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_15188339242422230171", - "name": "PolicyDeployment_15188339242422230171", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm-ultrassd2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-04-02T02:01:42.3879757Z", - "duration": "PT3.5795077S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-555t3vjgiwnpo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-555t3vjgiwnpo" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-555t3vjgiwnpo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-555t3vjgiwnpo" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachineScaleSets/vm-ultrassd2", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "vm-ultrassd2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-555t3vjgiwnpo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-555t3vjgiwnpo" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-555t3vjgiwnpo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-555t3vjgiwnpo" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-555t3vjgiwnpo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-555t3vjgiwnpo" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-555t3vjgiwnpo", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-555t3vjgiwnpo" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_1487015986436168541", - "name": "PolicyDeployment_1487015986436168541", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "cli-test-ultrassdyzefqrzgi3m7ap3jdejxrxtuhagr2fydwf46ojm4ry3xrhujqmqcmf7lzk" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm-ultrassd" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-04-02T01:58:41.256251Z", - "duration": "PT3.6657931S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-m3hqiplbboung", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-m3hqiplbboung" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-m3hqiplbboung", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-m3hqiplbboung" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-ultrassdyzefqrzgi3m7ap3jdejxrxtuhagr2fydwf46ojm4ry3xrhujqmqcmf7lzk/providers/Microsoft.Compute/virtualMachineScaleSets/vm-ultrassd", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "vm-ultrassd", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-m3hqiplbboung", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-m3hqiplbboung" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-m3hqiplbboung", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-m3hqiplbboung" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-m3hqiplbboung", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-m3hqiplbboung" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-ultrassdyzefqrzgi3m7ap3jdejxrxtuhagr2fydwf46ojm4ry3xrhujqmqcmf7lzk/providers/Microsoft.Resources/deployments/deployAddUAName-m3hqiplbboung", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-m3hqiplbboung" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachineScaleSets/vm-ultrassd\u0027 under resource group \u0027cli-test-ultrassdyzefqrzgi3m7ap3jdejxrxtuhagr2fydwf46ojm4ry3xrhujqmqcmf7lzk\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_852183583950607475", - "name": "PolicyDeployment_852183583950607475", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm-ultrassd2" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-04-02T01:57:53.5971676Z", - "duration": "PT9.7874606S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-rlm6n7i227l76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-rlm6n7i227l76" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-rlm6n7i227l76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-rlm6n7i227l76" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm-ultrassd2", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm-ultrassd2", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-rlm6n7i227l76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-rlm6n7i227l76" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-rlm6n7i227l76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-rlm6n7i227l76" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-rlm6n7i227l76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-rlm6n7i227l76" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-rlm6n7i227l76", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-rlm6n7i227l76" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_17245570788136892396", - "name": "PolicyDeployment_17245570788136892396", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "vm-ultrassd" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-04-02T01:56:09.3407793Z", - "duration": "PT3.9937026S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-kjpm6lqph36t6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-kjpm6lqph36t6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-kjpm6lqph36t6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-kjpm6lqph36t6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm-ultrassd", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm-ultrassd", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-kjpm6lqph36t6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-kjpm6lqph36t6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-kjpm6lqph36t6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-kjpm6lqph36t6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-kjpm6lqph36t6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-kjpm6lqph36t6" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-kjpm6lqph36t6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-kjpm6lqph36t6" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10065391213723844218", - "name": "PolicyDeployment_10065391213723844218", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus2" - }, - "resourceName": { - "type": "String", - "value": "vm-storage-sku-test" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-04-02T01:53:47.7802484Z", - "duration": "PT9.0442351S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-2s7qly3cb4k4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-2s7qly3cb4k4i" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-2s7qly3cb4k4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-2s7qly3cb4k4i" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/vm-storage-sku-test", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "vm-storage-sku-test", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-2s7qly3cb4k4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-2s7qly3cb4k4i" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-2s7qly3cb4k4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-2s7qly3cb4k4i" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-2s7qly3cb4k4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-2s7qly3cb4k4i" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-2s7qly3cb4k4i", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-2s7qly3cb4k4i" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_11575387338914076356", - "name": "PolicyDeployment_11575387338914076356", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "cli_test_vm_create_none_optionsoeaptaxkdcpavfq6ps3i7vczxc6md43puiy5nyu63gnc" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "nooptvm" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-04-02T01:38:58.5639199Z", - "duration": "PT9.6746346S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gbgu6ypzmpi4q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gbgu6ypzmpi4q" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gbgu6ypzmpi4q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gbgu6ypzmpi4q" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_none_optionsoeaptaxkdcpavfq6ps3i7vczxc6md43puiy5nyu63gnc/providers/Microsoft.Compute/virtualMachines/nooptvm", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "nooptvm", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gbgu6ypzmpi4q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-gbgu6ypzmpi4q" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gbgu6ypzmpi4q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gbgu6ypzmpi4q" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gbgu6ypzmpi4q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-gbgu6ypzmpi4q" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_none_optionsoeaptaxkdcpavfq6ps3i7vczxc6md43puiy5nyu63gnc/providers/Microsoft.Resources/deployments/deployAddUAName-gbgu6ypzmpi4q", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-gbgu6ypzmpi4q" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "ResourceNotFound", - "message": "The Resource \u0027Microsoft.Compute/virtualMachines/nooptvm\u0027 under resource group \u0027cli_test_vm_create_none_optionsoeaptaxkdcpavfq6ps3i7vczxc6md43puiy5nyu63gnc\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-cv6bsc4cli7bm", - "name": "deployGetResourceProperties-cv6bsc4cli7bm", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "5326949332753760285", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-01T03:11:55.5019726Z", - "duration": "PT1.7348056S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 1 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "rollingUpgradePolicy": { - "maxBatchInstancePercent": 20, - "maxUnhealthyInstancePercent": 100, - "maxUnhealthyUpgradedInstancePercent": 100, - "pauseTimeBetweenBatches": "PT0S" - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/m33c72pzwo4uuwg6i5qimp22wlrubgyctq3ezqnx3i3ul2xsjq6tvlohjav2fse5tal4627jbyp/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2770 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "m33c72pzwo4uuwg6i5qimp22wlrubgyctq3ezqnx3i3ul2xsjq6tvlohjav2fse5tal4627jbyp", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_282380880189372642", - "name": "PolicyDeployment_282380880189372642", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "m33c72pzwo4uuwg6i5qimp22wlrubgyctq3ezqnx3i3ul2xsjq6tvlohjav2fse5tal4627jbyp" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescalesetb4bb17db" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-01T03:12:25.1116483Z", - "duration": "PT51.1744458S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-cv6bsc4cli7bm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-cv6bsc4cli7bm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-cv6bsc4cli7bm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-cv6bsc4cli7bm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/m33c72pzwo4uuwg6i5qimp22wlrubgyctq3ezqnx3i3ul2xsjq6tvlohjav2fse5tal4627jbyp/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescalesetb4bb17db", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-cv6bsc4cli7bm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-cv6bsc4cli7bm" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-cv6bsc4cli7bm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-cv6bsc4cli7bm" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-cv6bsc4cli7bm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-cv6bsc4cli7bm" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/m33c72pzwo4uuwg6i5qimp22wlrubgyctq3ezqnx3i3ul2xsjq6tvlohjav2fse5tal4627jbyp/providers/Microsoft.Resources/deployments/deployAddUAName-cv6bsc4cli7bm", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-cv6bsc4cli7bm" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/m33c72pzwo4uuwg6i5qimp22wlrubgyctq3ezqnx3i3ul2xsjq6tvlohjav2fse5tal4627jbyp/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-eq2uagnayn2ma", - "name": "deployGetResourceProperties-eq2uagnayn2ma", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "11179450222032224616", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-01T01:47:29.9301133Z", - "duration": "PT1.5479064S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 2 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/r5clhop45cw2ckfgq5dyp4lhhhyzoz3n3kw46y6gbqn33xvhn2jmjxurshiqrm4el2oltlknc4e/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "vmssextensionx80f0ea3", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.NetworkWatcher", - "type": "NetworkWatcherAgentWindows", - "typeHandlerVersion": "1.4" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "r5clhop45cw2ckfgq5dyp4lhhhyzoz3n3kw46y6gbqn33xvhn2jmjxurshiqrm4el2oltlknc4e", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_14482292374040910078", - "name": "PolicyDeployment_14482292374040910078", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "r5clhop45cw2ckfgq5dyp4lhhhyzoz3n3kw46y6gbqn33xvhn2jmjxurshiqrm4el2oltlknc4e" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescaleset80f0ea3" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-04-01T01:47:49.9701945Z", - "duration": "PT43.7218538S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-eq2uagnayn2ma", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-eq2uagnayn2ma" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-eq2uagnayn2ma", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-eq2uagnayn2ma" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/r5clhop45cw2ckfgq5dyp4lhhhyzoz3n3kw46y6gbqn33xvhn2jmjxurshiqrm4el2oltlknc4e/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescaleset80f0ea3", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-eq2uagnayn2ma", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-eq2uagnayn2ma" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-eq2uagnayn2ma", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-eq2uagnayn2ma" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-eq2uagnayn2ma", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-eq2uagnayn2ma" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/r5clhop45cw2ckfgq5dyp4lhhhyzoz3n3kw46y6gbqn33xvhn2jmjxurshiqrm4el2oltlknc4e/providers/Microsoft.Resources/deployments/deployAddUAName-eq2uagnayn2ma", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-eq2uagnayn2ma" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/r5clhop45cw2ckfgq5dyp4lhhhyzoz3n3kw46y6gbqn33xvhn2jmjxurshiqrm4el2oltlknc4e/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gnwqtkfrqjsp6", - "name": "deployGetResourceProperties-gnwqtkfrqjsp6", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "12178703741110229583", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-03-31T09:46:33.2840427Z", - "duration": "PT2.2067687S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "sku": { - "name": "Standard_D1_v2", - "tier": "Standard", - "capacity": 2 - }, - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "testPC", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 512 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "testPC", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "testPC", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kbjklidhnfv26lns6pyy3ogqeamwu4ox7mxob2jyvnvbah3xnh4vo5svepsg4a4mksssxzhgapy/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - }, - "extensionProfile": { - "extensions": [ - { - "name": "Microsoft.Azure.Security.AntimalwareSignature.AntimalwareConfiguration", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Security.AntimalwareSignature", - "type": "AntimalwareConfiguration", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "Microsoft.Azure.Geneva.GenevaMonitoring", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.Geneva", - "type": "GenevaMonitoring", - "typeHandlerVersion": "2.0", - "settings": {} - } - }, - { - "name": "vmssextensionx80f0ea3", - "properties": { - "autoUpgradeMinorVersion": true, - "publisher": "Microsoft.Azure.NetworkWatcher", - "type": "NetworkWatcherAgentWindows", - "typeHandlerVersion": "1.4" - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": true, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2772 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "kbjklidhnfv26lns6pyy3ogqeamwu4ox7mxob2jyvnvbah3xnh4vo5svepsg4a4mksssxzhgapy", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_15792341434813782380", - "name": "PolicyDeployment_15792341434813782380", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "2288922823359396670", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "kbjklidhnfv26lns6pyy3ogqeamwu4ox7mxob2jyvnvbah3xnh4vo5svepsg4a4mksssxzhgapy" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinescaleset80f0ea3" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-03-31T09:47:02.6992722Z", - "duration": "PT55.7929185S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gnwqtkfrqjsp6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gnwqtkfrqjsp6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gnwqtkfrqjsp6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gnwqtkfrqjsp6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kbjklidhnfv26lns6pyy3ogqeamwu4ox7mxob2jyvnvbah3xnh4vo5svepsg4a4mksssxzhgapy/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3", - "resourceType": "Microsoft.Compute/virtualMachineScaleSets", - "resourceName": "virtualmachinescaleset80f0ea3", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gnwqtkfrqjsp6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-gnwqtkfrqjsp6" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-gnwqtkfrqjsp6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-gnwqtkfrqjsp6" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-gnwqtkfrqjsp6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-gnwqtkfrqjsp6" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kbjklidhnfv26lns6pyy3ogqeamwu4ox7mxob2jyvnvbah3xnh4vo5svepsg4a4mksssxzhgapy/providers/Microsoft.Resources/deployments/deployAddUAName-gnwqtkfrqjsp6", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-gnwqtkfrqjsp6" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kbjklidhnfv26lns6pyy3ogqeamwu4ox7mxob2jyvnvbah3xnh4vo5svepsg4a4mksssxzhgapy/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_10907502697148499291", - "name": "PolicyDeployment_10907502697148499291", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinexxx9a731234" - } - }, - "mode": "Incremental", - "provisioningState": "Failed", - "timestamp": "2021-03-31T09:34:44.8713019Z", - "duration": "PT17.7131281S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-nu6e5lcsemnnq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-nu6e5lcsemnnq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-nu6e5lcsemnnq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-nu6e5lcsemnnq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "virtualmachinexxx9a731234", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-nu6e5lcsemnnq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-nu6e5lcsemnnq" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-nu6e5lcsemnnq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-nu6e5lcsemnnq" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-nu6e5lcsemnnq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-nu6e5lcsemnnq" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployAddUAName-nu6e5lcsemnnq", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-nu6e5lcsemnnq" - } - ], - "error": { - "code": "DeploymentFailed", - "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", - "details": [ - { - "code": "InvalidResourceNamespace", - "message": "The resource namespace \u0027subscriptions\u0027 is invalid." - } - ] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-dcakxh4toblvu", - "name": "deployGetResourceProperties-dcakxh4toblvu", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "18188604342584692490", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-03-26T09:04:55.6460018Z", - "duration": "PT1.8557573S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resource": { - "type": "Object", - "value": { - "apiVersion": "2019-07-01", - "location": "eastus", - "tags": { - "azsecpack": "nonprod", - "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_D2_v2" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2016-Datacenter", - "version": "latest", - "exactVersion": "14393.4283.2103051830" - }, - "osDisk": { - "osType": "Windows", - "name": "myVMosdisk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/h2cjec2den7t2xi6r5la7xa3wcr3apdtuczjkthhrbwbzgvqc7i3badmrjoyn6tkurbblrbklkr/providers/Microsoft.Compute/disks/myVMosdisk" - }, - "diskSizeGB": 127 - }, - "dataDisks": [ - { - "lun": 0, - "name": "virtualmachinexxx9a731234_disk2_673719798fa243fdae955a8145bb4916", - "createOption": "Empty", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/h2cjec2den7t2xi6r5la7xa3wcr3apdtuczjkthhrbwbzgvqc7i3badmrjoyn6tkurbblrbklkr/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk2_673719798fa243fdae955a8145bb4916" - }, - "diskSizeGB": 1023, - "toBeDetached": false - }, - { - "lun": 1, - "name": "virtualmachinexxx9a731234_disk3_bcb65ab5b9504deea6ad9d28ab778905", - "createOption": "Empty", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/h2cjec2den7t2xi6r5la7xa3wcr3apdtuczjkthhrbwbzgvqc7i3badmrjoyn6tkurbblrbklkr/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk3_bcb65ab5b9504deea6ad9d28ab778905" - }, - "diskSizeGB": 1023, - "toBeDetached": false - } - ] - }, - "osProfile": { - "computerName": "myVM", - "adminUsername": "testuser", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/h2cjec2den7t2xi6r5la7xa3wcr3apdtuczjkthhrbwbzgvqc7i3badmrjoyn6tkurbblrbklkr/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234", - "properties": { - "primary": true - } - } - ] - }, - "provisioningState": "Succeeded" - }, - "deploymentResourceLineInfo": { - "lineNumber": 1, - "linePosition": 2763 - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "h2cjec2den7t2xi6r5la7xa3wcr3apdtuczjkthhrbwbzgvqc7i3badmrjoyn6tkurbblrbklkr", - "scope": "", - "resourceId": "Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234", - "referenceApiVersion": "2019-07-01", - "condition": true, - "isConditionTrue": true, - "isTemplateResource": false, - "isAction": false, - "provisioningOperation": "Read" - } - } - }, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/PolicyDeployment_1495206464647451763", - "name": "PolicyDeployment_1495206464647451763", - "type": "Microsoft.Resources/deployments", - "location": "eastus", - "properties": { - "templateHash": "1950154225332307523", - "parameters": { - "resourceGroup": { - "type": "String", - "value": "h2cjec2den7t2xi6r5la7xa3wcr3apdtuczjkthhrbwbzgvqc7i3badmrjoyn6tkurbblrbklkr" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "resourceName": { - "type": "String", - "value": "virtualmachinexxx9a731234" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2021-03-26T09:05:35.5729617Z", - "duration": "PT1M9.9510711S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Resources", - "resourceTypes": [ - { - "resourceType": "resourceGroups", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "deployments", - "locations": [ - null, - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-dcakxh4toblvu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-dcakxh4toblvu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-dcakxh4toblvu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-dcakxh4toblvu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/h2cjec2den7t2xi6r5la7xa3wcr3apdtuczjkthhrbwbzgvqc7i3badmrjoyn6tkurbblrbklkr/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234", - "resourceType": "Microsoft.Compute/virtualMachines", - "resourceName": "virtualmachinexxx9a731234", - "apiVersion": "2019-07-01" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-dcakxh4toblvu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-dcakxh4toblvu" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "resourceType": "Microsoft.Resources/resourceGroups", - "resourceName": "AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.Resources/deployments/deployUAName-dcakxh4toblvu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployUAName-dcakxh4toblvu" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/deployGetResourceProperties-dcakxh4toblvu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployGetResourceProperties-dcakxh4toblvu" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/h2cjec2den7t2xi6r5la7xa3wcr3apdtuczjkthhrbwbzgvqc7i3badmrjoyn6tkurbblrbklkr/providers/Microsoft.Resources/deployments/deployAddUAName-dcakxh4toblvu", - "resourceType": "Microsoft.Resources/deployments", - "resourceName": "deployAddUAName-dcakxh4toblvu" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/h2cjec2den7t2xi6r5la7xa3wcr3apdtuczjkthhrbwbzgvqc7i3badmrjoyn6tkurbblrbklkr/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription", - "name": "go-test-at-subscription", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:22:28.1340581Z", - "duration": "PT0.8422528S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs3929175659", - "name": "rs3929175659", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T03:14:43.3698833Z", - "duration": "PT0.9482578S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs1867624864", - "name": "rs1867624864", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T03:14:28.5038998Z", - "duration": "PT2.9512055S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs284275121", - "name": "rs284275121", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T03:13:55.515651Z", - "duration": "PT2.8437339S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs1067443061", - "name": "rs1067443061", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T03:13:46.4530557Z", - "duration": "PT0.9948301S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs459496875", - "name": "rs459496875", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T03:13:36.1785638Z", - "duration": "PT1.2157423S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs594205426", - "name": "rs594205426", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T03:13:20.1030107Z", - "duration": "PT1.0116935S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs2165367976", - "name": "rs2165367976", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T03:12:19.1223796Z", - "duration": "PT2.8520432S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs1707707600", - "name": "rs1707707600", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T01:47:25.7484561Z", - "duration": "PT1.3994103S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs3061151336", - "name": "rs3061151336", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T01:47:16.9626377Z", - "duration": "PT0.9280484S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs2283042427", - "name": "rs2283042427", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T01:47:06.5089453Z", - "duration": "PT1.1047689S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs137292058", - "name": "rs137292058", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T01:46:46.7500251Z", - "duration": "PT2.3998922S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs1463115026", - "name": "rs1463115026", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T01:46:35.4096219Z", - "duration": "PT1.3465984S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/rs2163442270", - "name": "rs2163442270", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-02-24T01:46:22.9743419Z", - "duration": "PT1.0359556S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/ASC_EnableAzureDefender_KubernetesService", - "name": "ASC_EnableAzureDefender_KubernetesService", - "type": "Microsoft.Resources/deployments", - "location": "centralus", - "properties": { - "templateHash": "7481118601119032709", - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2020-11-06T06:53:08.8290651Z", - "duration": "PT6.6951329S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Security", - "resourceTypes": [ - { - "resourceType": "pricings", - "locations": [ - null - ] - } - ] - } - ], - "dependencies": [], - "outputs": {}, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/pricings/KubernetesService" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/ASC_EnableAzureDefender_SqlServerVirtualMachines", - "name": "ASC_EnableAzureDefender_SqlServerVirtualMachines", - "type": "Microsoft.Resources/deployments", - "location": "centralus", - "properties": { - "templateHash": "12442521553927789228", - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2020-11-06T06:48:44.7007613Z", - "duration": "PT7.3434559S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Security", - "resourceTypes": [ - { - "resourceType": "pricings", - "locations": [ - null - ] - } - ] - } - ], - "dependencies": [], - "outputs": {}, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/pricings/SqlServerVirtualMachines" - } - ] - } - } - ] - } + "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/whatIf?api-version=2021-04-01", - "RequestMethod": "POST", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "RequestMethod": "GET", "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", + ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "Content-Length": "330", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - } - }, - "location": "West US" + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:04:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080417Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, + "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:22:33 GMT", + "Date": "Thu, 14 Apr 2022 08:04:32 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLUIzQ0E3NzQwOjJEMDJBNDoyRDQyNkU6MkQ4ODZDOjJERTgyOEU5NkY5NDk2Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080433Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:04:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080448Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:05:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11984", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042233Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080504Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLUIzQ0E3NzQwOjJEMDJBNDoyRDQyNkU6MkQ4ODZDOjJERTgyOEU5NkY5NDk2Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -24133,16 +1751,16 @@ "Content-Encoding": "gzip", "Content-Length": "105", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:48 GMT", + "Date": "Thu, 14 Apr 2022 08:05:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-ratelimit-remaining-subscription-reads": "11983", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042249Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080519Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "status": "Succeeded", @@ -24162,7 +1780,7 @@ "Authorization": "Sanitized", "Content-Length": "330", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "West US", @@ -24181,7 +1799,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:49 GMT", + "Date": "Thu, 14 Apr 2022 08:05:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24191,7 +1809,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1196", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042249Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080521Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription", @@ -24228,7 +1846,7 @@ "Accept-Encoding": "gzip", "Authorization": "Sanitized", "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -24236,7 +1854,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:22:49 GMT", + "Date": "Thu, 14 Apr 2022 08:05:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24246,7 +1864,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1195", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042250Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080523Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "template": { @@ -24266,14 +1884,14 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:22:51 GMT", + "Date": "Thu, 14 Apr 2022 08:05:26 GMT", "Expires": "-1", "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2021-04-01", "Pragma": "no-cache", @@ -24283,7 +1901,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14998", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042252Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080526Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -24294,21 +1912,21 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Mon, 14 Mar 2022 04:23:07 GMT", + "Date": "Thu, 14 Apr 2022 08:05:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-ratelimit-remaining-subscription-reads": "11982", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042307Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080542Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -24318,7 +1936,7 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 403, @@ -24327,7 +1945,7 @@ "Connection": "close", "Content-Length": "416", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:23:07 GMT", + "Date": "Thu, 14 Apr 2022 08:05:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24335,7 +1953,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-failure-cause": "gateway", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042307Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080542Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -24345,7 +1963,7 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 404, @@ -24353,7 +1971,7 @@ "Cache-Control": "no-cache", "Content-Length": "103", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:23:08 GMT", + "Date": "Thu, 14 Apr 2022 08:05:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24362,7 +1980,7 @@ "x-ms-failure-cause": "gateway", "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042308Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080543Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -24375,7 +1993,7 @@ "Authorization": "Sanitized", "Content-Length": "679", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -24423,11 +2041,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/operationStatuses/08585543750939675983?api-version=2021-04-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/operationStatuses/08585516833380482591?api-version=2021-04-01", "Cache-Control": "no-cache", "Content-Length": "653", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:23:15 GMT", + "Date": "Thu, 14 Apr 2022 08:05:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24435,7 +2053,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042316Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080551Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment", @@ -24451,8 +2069,8 @@ }, "mode": "Incremental", "provisioningState": "Accepted", - "timestamp": "2022-03-14T04:23:15.2058275Z", - "duration": "PT0.0001181S", + "timestamp": "2022-04-14T08:05:49.9927844Z", + "duration": "PT0.0001335S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [ { @@ -24472,13 +2090,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/operationStatuses/08585543750939675983?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/operationStatuses/08585516833380482591?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -24487,7 +2105,7 @@ "Content-Encoding": "gzip", "Content-Length": "20", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:23:16 GMT", + "Date": "Thu, 14 Apr 2022 08:05:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24496,20 +2114,20 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11998", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042317Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080552Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "status": "Running" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/operationStatuses/08585543750939675983?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/operationStatuses/08585516833380482591?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -24518,7 +2136,7 @@ "Content-Encoding": "gzip", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:23:46 GMT", + "Date": "Thu, 14 Apr 2022 08:06:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24527,7 +2145,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11997", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042347Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080603Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "status": "Succeeded" @@ -24540,7 +2158,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -24549,7 +2167,7 @@ "Content-Encoding": "gzip", "Content-Length": "940", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:23:47 GMT", + "Date": "Thu, 14 Apr 2022 08:06:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24558,7 +2176,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11996", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042348Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080603Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment", @@ -24574,8 +2192,8 @@ }, "mode": "Incremental", "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:23:22.3986658Z", - "duration": "PT7.1929564S", + "timestamp": "2022-04-14T08:05:58.2827166Z", + "duration": "PT8.2900657S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [ { @@ -24616,7 +2234,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -24625,7 +2243,7 @@ "Content-Encoding": "gzip", "Content-Length": "940", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:23:47 GMT", + "Date": "Thu, 14 Apr 2022 08:06:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24634,7 +2252,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11995", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042348Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080604Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment", @@ -24650,8 +2268,8 @@ }, "mode": "Incremental", "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:23:22.3986658Z", - "duration": "PT7.1929564S", + "timestamp": "2022-04-14T08:05:58.2827166Z", + "duration": "PT8.2900657S", "correlationId": "00000000-0000-0000-0000-000000000000", "providers": [ { @@ -24684,86 +2302,6 @@ } } }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "952", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:23:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042349Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment", - "name": "go-test-deployment", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-14T04:23:22.3986658Z", - "duration": "PT7.1929564S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "myparameter": { - "type": "Object", - "value": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - } - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/availabilitySet1" - } - ] - } - } - ] - } - }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/whatIf?api-version=2021-04-01", "RequestMethod": "POST", @@ -24774,7 +2312,7 @@ "Authorization": "Sanitized", "Content-Length": "633", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -24819,9 +2357,9 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:23:51 GMT", + "Date": "Thu, 14 Apr 2022 08:06:05 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItR086MkRTREs6MkRURVNUOjJEMjM2LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtQUNDNDFGNTQ6MkQ3M0VGOjJENDg2RjoyREI3Qzk6MkQ0N0JGQkMyNTk2QTYiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtQjkxMjI5NUQ6MkQ1MjA4OjJENDNDOToyRDk1REY6MkQ0NTBBM0Y1MDU4RUEiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24829,18 +2367,18 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042352Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080606Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItR086MkRTREs6MkRURVNUOjJEMjM2LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtQUNDNDFGNTQ6MkQ3M0VGOjJENDg2RjoyREI3Qzk6MkQ0N0JGQkMyNTk2QTYiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtQjkxMjI5NUQ6MkQ1MjA4OjJENDNDOToyRDk1REY6MkQ0NTBBM0Y1MDU4RUEiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -24849,16 +2387,16 @@ "Content-Encoding": "gzip", "Content-Length": "420", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:24:07 GMT", + "Date": "Thu, 14 Apr 2022 08:06:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-ratelimit-remaining-subscription-reads": "11994", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042407Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080621Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "status": "Failed", @@ -24888,7 +2426,7 @@ "Authorization": "Sanitized", "Content-Length": "679", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -24939,7 +2477,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:24:08 GMT", + "Date": "Thu, 14 Apr 2022 08:06:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -24949,7 +2487,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042408Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080622Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment", @@ -24999,7 +2537,7 @@ "Accept-Encoding": "gzip", "Authorization": "Sanitized", "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -25007,7 +2545,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:24:08 GMT", + "Date": "Thu, 14 Apr 2022 08:06:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -25017,7 +2555,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1197", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042409Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080623Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "template": { @@ -25063,16 +2601,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:24:11 GMT", + "Date": "Thu, 14 Apr 2022 08:06:26 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMjM2LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -25080,32 +2618,32 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042412Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080627Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMjM2LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Mon, 14 Mar 2022 04:24:27 GMT", + "Date": "Thu, 14 Apr 2022 08:06:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-ratelimit-remaining-subscription-reads": "11993", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042427Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080642Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -25116,16 +2654,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:24:30 GMT", + "Date": "Thu, 14 Apr 2022 08:06:44 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQyMzYtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMzctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -25133,7 +2671,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14998", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T042430Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080645Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourceGroupsClient.json b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourceGroupsClient.json index 91d432d8fcc0..c66b7baa04dc 100644 --- a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourceGroupsClient.json +++ b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourceGroupsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:24 GMT", + "Date": "Thu, 14 Apr 2022 08:06:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033424Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080649Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -48,17 +48,17 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { - "location": "westus" + "location": "eastus" }, "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "217", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:27 GMT", + "Date": "Thu, 14 Apr 2022 08:06:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -66,13 +66,13 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1197", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033428Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080650Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg", "name": "go-test-rg", "type": "Microsoft.Resources/resourceGroups", - "location": "westus", + "location": "eastus", "properties": { "provisioningState": "Succeeded" } @@ -84,22 +84,22 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:34:27 GMT", + "Date": "Thu, 14 Apr 2022 08:06:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-ratelimit-remaining-subscription-reads": "11992", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033428Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080650Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -111,7 +111,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -120,157 +120,27 @@ "Content-Encoding": "gzip", "Content-Length": "217", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:27 GMT", + "Date": "Thu, 14 Apr 2022 08:06:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-ratelimit-remaining-subscription-reads": "11991", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033428Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080650Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg", "name": "go-test-rg", "type": "Microsoft.Resources/resourceGroups", - "location": "westus", + "location": "eastus", "properties": { "provisioningState": "Succeeded" } } }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "2474", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033428Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-net-test-qa2", - "name": "sdk-net-test-qa2", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "tags": {}, - "properties": { - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/iyljd2wtoqh43dern43sawzmqxkeari3bcqiadgfste4outj7cdmmslvr4yfw2vmrsqeiogmitj", - "name": "iyljd2wtoqh43dern43sawzmqxkeari3bcqiadgfste4outj7cdmmslvr4yfw2vmrsqeiogmitj", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "tags": { - "DeleteAfter": "2020-08-15T07:02:26.327834" - }, - "properties": { - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG", - "name": "AzSecPackAutoConfigRG", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest", - "name": "qiaozhatest", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "tags": {}, - "properties": { - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest", - "name": "myjstest", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "tags": {}, - "properties": { - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chenjietest", - "name": "chenjietest", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "tags": {}, - "properties": { - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Deleting" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/create1250872478", - "name": "create1250872478", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg", - "name": "go-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - ] - } - }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test-rg?api-version=2021-04-01", "RequestMethod": "PATCH", @@ -280,7 +150,7 @@ "Authorization": "Sanitized", "Content-Length": "24", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "tags": { @@ -292,7 +162,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:28 GMT", + "Date": "Thu, 14 Apr 2022 08:06:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -302,13 +172,13 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1196", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033429Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080651Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg", "name": "go-test-rg", "type": "Microsoft.Resources/resourceGroups", - "location": "westus", + "location": "eastus", "tags": { "key": "value" }, @@ -327,7 +197,7 @@ "Authorization": "Sanitized", "Content-Length": "19", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "resources": [ @@ -340,16 +210,16 @@ "Content-Encoding": "gzip", "Content-Length": "179", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:29 GMT", + "Date": "Thu, 14 Apr 2022 08:06:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-ratelimit-remaining-subscription-reads": "11990", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033430Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080653Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "template": { @@ -368,16 +238,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:34:33 GMT", + "Date": "Thu, 14 Apr 2022 08:06:53 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -385,33 +255,145 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14997", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033433Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080654Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, - "StatusCode": 200, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:07:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080710Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:07:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080726Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:34:48 GMT", + "Date": "Thu, 14 Apr 2022 08:07:41 GMT", "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", "Pragma": "no-cache", + "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11987", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033449Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080741Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:07:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080757Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 14 Apr 2022 08:08:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080812Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -422,16 +404,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:34:51 GMT", + "Date": "Thu, 14 Apr 2022 08:08:14 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxMDQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MTMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -439,7 +421,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14996", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033451Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080815Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourcesClient.json b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourcesClient.json index 75812fb77bf0..55a6e9104bde 100644 --- a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourcesClient.json +++ b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourcesClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:53 GMT", + "Date": "Thu, 14 Apr 2022 08:08:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1195", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033454Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080817Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -45,7 +45,7 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 404, @@ -53,7 +53,7 @@ "Cache-Control": "no-cache", "Content-Length": "238", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:53 GMT", + "Date": "Thu, 14 Apr 2022 08:08:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -61,7 +61,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-failure-cause": "gateway", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033454Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080818Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -71,7 +71,7 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 404, @@ -79,7 +79,7 @@ "Cache-Control": "no-cache", "Content-Length": "238", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:54 GMT", + "Date": "Thu, 14 Apr 2022 08:08:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -87,7 +87,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-failure-cause": "gateway", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033454Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080819Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -98,19 +98,20 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "Content-Length": "21", + "Content-Length": "39", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { - "location": "westus" + "location": "eastus", + "properties": null }, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:34:58 GMT", + "Date": "Thu, 14 Apr 2022 08:08:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -122,16 +123,16 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1190", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1199", "x-ms-ratelimit-remaining-subscription-writes": "1194", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033459Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080824Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "name": "go-test-resource", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", "type": "Microsoft.Compute/availabilitySets", - "location": "westus", + "location": "eastus", "properties": { "platformUpdateDomainCount": 5, "platformFaultDomainCount": 3 @@ -148,19 +149,20 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "Content-Length": "21", + "Content-Length": "39", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { - "location": "westus" + "location": "eastus", + "properties": null }, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:35:00 GMT", + "Date": "Thu, 14 Apr 2022 08:08:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -172,16 +174,16 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1189", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1198", "x-ms-ratelimit-remaining-subscription-writes": "1193", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033500Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080826Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "name": "go-test-resource", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", "type": "Microsoft.Compute/availabilitySets", - "location": "westus", + "location": "eastus", "properties": { "platformUpdateDomainCount": 5, "platformFaultDomainCount": 3 @@ -198,11 +200,12 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "Content-Length": "26", + "Content-Length": "44", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { + "properties": null, "tags": { "tag1": "value1" } @@ -212,7 +215,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:35:02 GMT", + "Date": "Thu, 14 Apr 2022 08:08:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -224,16 +227,16 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1192", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1197", "x-ms-ratelimit-remaining-subscription-writes": "1192", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033503Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080828Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "name": "go-test-resource", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", "type": "Microsoft.Compute/availabilitySets", - "location": "westus", + "location": "eastus", "tags": { "tag1": "value1" }, @@ -253,11 +256,12 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "Content-Length": "26", + "Content-Length": "44", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { + "properties": null, "tags": { "key2": "value2" } @@ -267,7 +271,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:35:05 GMT", + "Date": "Thu, 14 Apr 2022 08:08:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -279,16 +283,16 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1191", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1196", "x-ms-ratelimit-remaining-subscription-writes": "1191", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033506Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080830Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "name": "go-test-resource", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", "type": "Microsoft.Compute/availabilitySets", - "location": "westus", + "location": "eastus", "tags": { "key2": "value2" }, @@ -309,7 +313,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -317,7 +321,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:35:05 GMT", + "Date": "Thu, 14 Apr 2022 08:08:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -329,16 +333,16 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3988,Microsoft.Compute/LowCostGet30Min;31896", - "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31988", + "x-ms-ratelimit-remaining-subscription-reads": "11982", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033506Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080831Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "name": "go-test-resource", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", "type": "Microsoft.Compute/availabilitySets", - "location": "westus", + "location": "eastus", "tags": { "key2": "value2" }, @@ -360,7 +364,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -368,7 +372,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:35:06 GMT", + "Date": "Thu, 14 Apr 2022 08:08:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -380,16 +384,16 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3987,Microsoft.Compute/LowCostGet30Min;31895", - "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31987", + "x-ms-ratelimit-remaining-subscription-reads": "11981", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033506Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080831Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "name": "go-test-resource", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", "type": "Microsoft.Compute/availabilitySets", - "location": "westus", + "location": "eastus", "tags": { "key2": "value2" }, @@ -404,1221 +408,78 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "5786", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:35:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033506Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/iyljd2wtoqh43dern43sawzmqxkeari3bcqiadgfste4outj7cdmmslvr4yfw2vmrsqeiogmitj/providers/Microsoft.ServiceBus/namespaces/myNamespacexxyyz", - "name": "myNamespacexxyyz", - "type": "Microsoft.ServiceBus/namespaces", - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/iyljd2wtoqh43dern43sawzmqxkeari3bcqiadgfste4outj7cdmmslvr4yfw2vmrsqeiogmitj/providers/Microsoft.ServiceBus/namespaces/myNamespacexxyyzsecond", - "name": "myNamespacexxyyzsecond", - "type": "Microsoft.ServiceBus/namespaces", - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "location": "southcentralus", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus", - "name": "AzSecPackAutoConfigUA-eastus", - "type": "Microsoft.ManagedIdentity/userAssignedIdentities", - "location": "eastus", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus2", - "name": "AzSecPackAutoConfigUA-eastus2", - "type": "Microsoft.ManagedIdentity/userAssignedIdentities", - "location": "eastus2", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-westus2", - "name": "AzSecPackAutoConfigUA-westus2", - "type": "Microsoft.ManagedIdentity/userAssignedIdentities", - "location": "westus2", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-southcentralus", - "name": "AzSecPackAutoConfigUA-southcentralus", - "type": "Microsoft.ManagedIdentity/userAssignedIdentities", - "location": "southcentralus", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.CognitiveServices/accounts/qiaozhamatest", - "name": "qiaozhamatest", - "type": "Microsoft.CognitiveServices/accounts", - "sku": { - "name": "S0" - }, - "kind": "MetricsAdvisor", - "location": "eastus", - "identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000", - "type": "SystemAssigned" - }, - "tags": {}, - "systemData": { - "createdBy": "qiaozha@microsoft.com", - "createdByType": "User", - "createdAt": "2022-03-08T06:14:13.8863664Z", - "lastModifiedBy": "qiaozha@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-03-08T06:14:13.8863664Z" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Cdn/profiles/myprofilexxx", - "name": "myprofilexxx", - "type": "Microsoft.Cdn/profiles", - "sku": { - "name": "Standard_Verizon" - }, - "kind": "cdn", - "location": "eastus", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Cdn/profiles/myprofilexxx/endpoints/myendpointxxx", - "name": "myprofilexxx/myendpointxxx", - "type": "Microsoft.Cdn/profiles/endpoints", - "location": "westus", - "tags": { - "key1": "value1" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Network/dnszones/qiaozha.xyz", - "name": "qiaozha.xyz", - "type": "Microsoft.Network/dnszones", - "location": "global", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.Cdn/profiles/myprofilexxx/endpoints/myendpointxxx2", - "name": "myprofilexxx/myendpointxxx2", - "type": "Microsoft.Cdn/profiles/endpoints", - "location": "westus", - "tags": { - "key1": "value1" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chenjietest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test", - "name": "test", - "type": "Microsoft.ManagedIdentity/userAssignedIdentities", - "location": "eastus", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chenjietest/providers/Microsoft.Storage/storageAccounts/chenjietest", - "name": "chenjietest", - "type": "Microsoft.Storage/storageAccounts", - "sku": { - "name": "Standard_RAGRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "location": "eastus", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/availabilitySet1", - "name": "availabilitySet1", - "type": "Microsoft.Compute/availabilitySets", - "sku": { - "name": "Classic" - }, - "location": "westus" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", - "name": "go-test-resource", - "type": "Microsoft.Compute/availabilitySets", - "sku": { - "name": "Classic" - }, - "location": "westus", - "tags": { - "key2": "value2" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/create1250872478/providers/Microsoft.Storage/storageAccounts/account1250872478", - "name": "account1250872478", - "type": "Microsoft.Storage/storageAccounts", - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "location": "westus", - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-net-test-qa2/providers/Microsoft.Network/virtualNetworks/sdknettestqa2vnet464", - "name": "sdknettestqa2vnet464", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "tags": {} - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-net-test-qa2/providers/Microsoft.Network/networkInterfaces/anf-sdknettestqa2vnet464-nic-2JBDNX", - "name": "anf-sdknettestqa2vnet464-nic-2JBDNX", - "type": "Microsoft.Network/networkInterfaces", - "location": "eastus" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/resources?api-version=2021-04-01", - "RequestMethod": "GET", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Compute//availabilitySets/go-test-resource?api-version=2019-07-01", + "RequestMethod": "DELETE", "RequestHeaders": { - ":method": "GET", "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "304", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:35:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033507Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", - "name": "go-test-resource", - "type": "Microsoft.Compute/availabilitySets", - "sku": { - "name": "Classic" - }, - "location": "westus", - "tags": { - "key2": "value2" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "217", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:35:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033507Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg", - "name": "go-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/validateMoveResources?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "263", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": { - "resources": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource" - ], - "targetResourceGroup": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg" - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:35:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033510Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:35:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033525Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:35:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033541Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:35:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033556Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:36:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033612Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:36:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033627Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:36:43 GMT", + "Date": "Thu, 14 Apr 2022 08:08:37 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", "Pragma": "no-cache", - "Retry-After": "15", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1199", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033643Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080838Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource?api-version=2019-07-01", + "RequestMethod": "DELETE", "RequestHeaders": { - ":method": "GET", + "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, - "StatusCode": 202, + "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:36:58 GMT", + "Date": "Thu, 14 Apr 2022 08:08:38 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", "Pragma": "no-cache", - "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-ratelimit-remaining-subscription-deletes": "14994", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033659Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080838Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", + "RequestMethod": "DELETE", "RequestHeaders": { - ":method": "GET", + "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:37:14 GMT", + "Date": "Thu, 14 Apr 2022 08:08:39 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033714Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:37:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033730Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtVkFMSURBVEUiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Mon, 14 Mar 2022 03:37:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/moveResources?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "263", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": { - "resources": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource" - ], - "targetResourceGroup": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg" - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:37:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033749Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:38:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033804Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:38:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033821Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:38:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033836Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:38:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033852Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:39:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033907Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:39:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033923Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:39:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033938Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:39:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T033954Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:40:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:40:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034025Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:40:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034041Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:40:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034056Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:41:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034112Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:41:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034127Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:41:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034143Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:41:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034158Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:42:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLUdPOjJEU0RLOjJEVEVTVDoyRDQwMi1FQVNUVVMtTU9WRSIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Mon, 14 Mar 2022 03:42:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034230Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Compute//availabilitySets/go-test-resource?api-version=2019-07-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Mon, 14 Mar 2022 03:42:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034230Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource?api-version=2019-07-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Mon, 14 Mar 2022 03:42:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034231Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:42:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MTgtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1626,173 +487,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14993", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034233Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:42:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034249Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:43:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034304Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:43:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034319Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:43:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034335Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:43:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034350Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:43:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0MDItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034352Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080840Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestTagsClient.json b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestTagsClient.json index 9ce64354d3d0..dd230cdb7b43 100644 --- a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestTagsClient.json +++ b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestTagsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,15 +19,15 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:43:54 GMT", + "Date": "Thu, 14 Apr 2022 08:08:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-ratelimit-remaining-subscription-writes": "1190", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034355Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080842Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -47,7 +47,7 @@ "Accept-Encoding": "gzip", "Authorization": "Sanitized", "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 201, @@ -55,15 +55,15 @@ "Cache-Control": "no-cache", "Content-Length": "154", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:43:59 GMT", + "Date": "Thu, 14 Apr 2022 08:08:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-ratelimit-remaining-subscription-writes": "1189", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034359Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080846Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags", @@ -83,7 +83,7 @@ "Accept-Encoding": "gzip", "Authorization": "Sanitized", "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 201, @@ -91,15 +91,15 @@ "Cache-Control": "no-cache", "Content-Length": "168", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:44:00 GMT", + "Date": "Thu, 14 Apr 2022 08:08:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-ratelimit-remaining-subscription-writes": "1188", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034401Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080848Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags/tagValues/go-test-value", @@ -110,201 +110,6 @@ } } }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "2762", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:44:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034402Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1", - "tagName": "tag1", - "count": { - "type": "Total", - "value": 1 - }, - "values": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1/tagValues/value1", - "tagValue": "value1", - "count": { - "type": "Total", - "value": 1 - } - } - ] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag2", - "tagName": "tag2", - "count": { - "type": "Total", - "value": 1 - }, - "values": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag2/tagValues/value2", - "tagValue": "value2", - "count": { - "type": "Total", - "value": 1 - } - } - ] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/key1", - "tagName": "key1", - "count": { - "type": "Total", - "value": 3 - }, - "values": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/key1/tagValues/value1", - "tagValue": "value1", - "count": { - "type": "Total", - "value": 3 - } - } - ] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/key2", - "tagName": "key2", - "count": { - "type": "Total", - "value": 1 - }, - "values": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/key2/tagValues/value2", - "tagValue": "value2", - "count": { - "type": "Total", - "value": 1 - } - } - ] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags", - "tagName": "go-test-tags", - "count": { - "type": "Total", - "value": 0 - }, - "values": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags/tagValues/go-test-value", - "tagValue": "go-test-value", - "count": { - "type": "Total", - "value": 0 - } - } - ] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag2597940633", - "tagName": "tag2597940633", - "count": { - "type": "Total", - "value": 0 - }, - "values": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag2597940633/tagValues/value2597940633", - "tagValue": "value2597940633", - "count": { - "type": "Total", - "value": 0 - } - } - ] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/DeleteAfter", - "tagName": "DeleteAfter", - "count": { - "type": "Total", - "value": 1 - }, - "values": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/DeleteAfter/tagValues/2020-08-15T07:02:26.327834", - "tagValue": "2020-08-15T07:02:26.327834", - "count": { - "type": "Total", - "value": 1 - } - } - ] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag3175540232", - "tagName": "tag3175540232", - "count": { - "type": "Total", - "value": 0 - }, - "values": [] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag4234309224", - "tagName": "tag4234309224", - "count": { - "type": "Total", - "value": 0 - }, - "values": [] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag529323608", - "tagName": "tag529323608", - "count": { - "type": "Total", - "value": 0 - }, - "values": [] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tagyyy", - "tagName": "tagyyy", - "count": { - "type": "Total", - "value": 0 - }, - "values": [] - } - ] - } - }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags/tagValues/go-test-value?api-version=2021-04-01", "RequestMethod": "DELETE", @@ -312,22 +117,22 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:44:03 GMT", + "Date": "Thu, 14 Apr 2022 08:08:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", + "x-ms-ratelimit-remaining-subscription-deletes": "14992", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034404Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080850Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -338,22 +143,22 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:44:05 GMT", + "Date": "Thu, 14 Apr 2022 08:08:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", + "x-ms-ratelimit-remaining-subscription-deletes": "14991", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034406Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080852Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -366,7 +171,7 @@ "Authorization": "Sanitized", "Content-Length": "69", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -381,7 +186,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:44:05 GMT", + "Date": "Thu, 14 Apr 2022 08:08:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -389,9 +194,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-ratelimit-remaining-subscription-writes": "1187", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034406Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080852Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default", @@ -414,7 +219,7 @@ "Authorization": "Sanitized", "Content-Length": "66", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "operation": "Delete", @@ -429,7 +234,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:44:06 GMT", + "Date": "Thu, 14 Apr 2022 08:08:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -437,9 +242,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-ratelimit-remaining-subscription-writes": "1186", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034407Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080853Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default", @@ -461,7 +266,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -470,16 +275,16 @@ "Content-Encoding": "gzip", "Content-Length": "252", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 03:44:06 GMT", + "Date": "Thu, 14 Apr 2022 08:08:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-ratelimit-remaining-subscription-reads": "11980", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034407Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080853Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default", @@ -500,22 +305,22 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:44:06 GMT", + "Date": "Thu, 14 Apr 2022 08:08:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", + "x-ms-ratelimit-remaining-subscription-deletes": "14990", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034407Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080854Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -526,24 +331,24 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 03:44:08 GMT", + "Date": "Thu, 14 Apr 2022 08:08:55 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NTItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NDItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14988", + "x-ms-ratelimit-remaining-subscription-deletes": "14989", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T034409Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080855Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/resources/armresources/zt_deployments_client_live_test.go b/sdk/resourcemanager/resources/armresources/zt_deployments_client_live_test.go new file mode 100644 index 000000000000..0466bc910a61 --- /dev/null +++ b/sdk/resourcemanager/resources/armresources/zt_deployments_client_live_test.go @@ -0,0 +1,491 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armresources_test + +import ( + "context" + "encoding/json" + "fmt" + "testing" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" + "github.com/stretchr/testify/suite" +) + +type DeploymentsClientTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + location string + resourceGroupName string + subscriptionID string +} + +func (testsuite *DeploymentsClientTestSuite) SetupSuite() { + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.subscriptionID = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armresources/testdata") + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + +} + +func (testsuite *DeploymentsClientTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestDeploymentsClient(t *testing.T) { + suite.Run(t, new(DeploymentsClientTestSuite)) +} + +var template = ` +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "location": { + "type": "string", + "allowedValues": [ + "East US", + "West US", + "West Europe", + "East Asia", + "South East Asia" + ], + "metadata": { + "description": "Location to deploy to" + } + } + }, + "resources": [ + { + "type": "Microsoft.Compute/availabilitySets", + "name": "availabilitySet1", + "apiVersion": "2019-07-01", + "location": "[parameters('location')]", + "properties": {} + } + ], + "outputs": { + "myparameter": { + "type": "object", + "value": "[reference('Microsoft.Compute/availabilitySets/availabilitySet1')]" + } + } +} +` + +func unmarshalTemplate(data string) (map[string]interface{}, error) { + result := make(map[string]interface{}) + + err := json.Unmarshal([]byte(data), &result) + if err != nil { + return nil, fmt.Errorf("unmarshal template error:%v", err) + } + return result, nil +} + +func (testsuite *DeploymentsClientTestSuite) TestDeploymentsCRUD() { + // check existence deployment + deploymentsClient, err := armresources.NewDeploymentsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + deploymentName := "go-test-deployment" + check, err := deploymentsClient.CheckExistence(testsuite.ctx, testsuite.resourceGroupName, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().False(check.Success) + + tmp, err := unmarshalTemplate(template) + + // create deployment + testsuite.Require().NoError(err) + pollerResp, err := deploymentsClient.BeginCreateOrUpdate( + testsuite.ctx, + testsuite.resourceGroupName, + deploymentName, + armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + Template: tmp, + Parameters: map[string]interface{}{ + "location": map[string]string{ + "value": "West US", + }, + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + testsuite.Require().NoError(err) + testsuite.Require().Equal(deploymentName, *resp.Name) + + // get + getResp, err := deploymentsClient.Get(testsuite.ctx, testsuite.resourceGroupName, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().Equal(deploymentName, *getResp.Name) + + // list by resource group + listPager := deploymentsClient.ListByResourceGroup(testsuite.resourceGroupName, nil) + testsuite.Require().True(listPager.More()) + + // what if + whatPoller, err := deploymentsClient.BeginWhatIf( + testsuite.ctx, + testsuite.resourceGroupName, + deploymentName, + armresources.DeploymentWhatIf{ + Properties: &armresources.DeploymentWhatIfProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + Template: tmp, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + whatResp, err := testutil.PollForTest(testsuite.ctx, whatPoller) + testsuite.Require().NoError(err) + testsuite.Require().Equal("InvalidTemplate", *whatResp.Error.Code) + + // validate + vPoller, err := deploymentsClient.BeginValidate( + testsuite.ctx, + testsuite.resourceGroupName, + deploymentName, + armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + Template: tmp, + Parameters: map[string]interface{}{ + "location": map[string]string{ + "value": "West US", + }, + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + vResp, err := testutil.PollForTest(testsuite.ctx, vPoller) + testsuite.Require().NoError(err) + testsuite.Require().Equal(to.Ptr(armresources.DeploymentModeIncremental), vResp.Properties.Mode) + + // export template + exportTemplate, err := deploymentsClient.ExportTemplate(testsuite.ctx, testsuite.resourceGroupName, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().NotNil(exportTemplate) + + // delete deployment + delPoller, err := deploymentsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, deploymentName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, delPoller) + testsuite.Require().NoError(err) +} + +func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtScope() { + // check deployment existence + deploymentsClient, err := armresources.NewDeploymentsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + deploymentName := "go-test-deployment-scope" + scopeResource := fmt.Sprintf("/subscriptions/%v/resourceGroups/%v", testsuite.subscriptionID, testsuite.resourceGroupName) + check, err := deploymentsClient.CheckExistenceAtScope(testsuite.ctx, scopeResource, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().False(check.Success) + + temp, err := unmarshalTemplate(template) + testsuite.Require().NoError(err) + + // create deployment at scope + pollerResp, err := deploymentsClient.BeginCreateOrUpdateAtScope( + testsuite.ctx, + scopeResource, + deploymentName, + armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + Template: temp, + Parameters: map[string]interface{}{ + "location": map[string]string{ + "value": "West US", + }, + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + testsuite.Require().NoError(err) + testsuite.Require().Equal(deploymentName, *resp.Name) + + // get deployment at scope + getResp, err := deploymentsClient.GetAtScope(testsuite.ctx, scopeResource, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().Equal(deploymentName, *getResp.Name) + + // list deployment at scope + listPager := deploymentsClient.ListAtScope(scopeResource, nil) + testsuite.Require().True(listPager.More()) + + vPoller, err := deploymentsClient.BeginValidateAtScope( + testsuite.ctx, + scopeResource, + deploymentName, + armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + Template: temp, + Parameters: map[string]interface{}{ + "location": map[string]string{ + "value": "West US", + }, + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + vResp, err := testutil.PollForTest(testsuite.ctx, vPoller) + testsuite.Require().NoError(err) + testsuite.Require().Equal(armresources.DeploymentModeIncremental, *vResp.Properties.Mode) + + // export template + exportTemplate, err := deploymentsClient.ExportTemplateAtScope(testsuite.ctx, scopeResource, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().NotNil(exportTemplate) + + // delete deployment + delPoller, err := deploymentsClient.BeginDeleteAtScope(testsuite.ctx, scopeResource, deploymentName, nil) + testsuite.Require().NoError(err) + _, err = delPoller.PollUntilDone(testsuite.ctx, 10*time.Second) + testsuite.Require().NoError(err) +} + +func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtManagementGroupScope() { + // create management group + managementGroupsClient, err := armmanagementgroups.NewClient(testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + groupName := "00000000-0000-0000-0000-000000000000000" + mgPoller, err := managementGroupsClient.BeginCreateOrUpdate( + testsuite.ctx, + groupName, + armmanagementgroups.CreateManagementGroupRequest{ + Name: to.Ptr(groupName), + }, + nil, + ) + testsuite.Require().NoError(err) + mgResp, err := testutil.PollForTest(testsuite.ctx, mgPoller) + testsuite.Require().NoError(err) + testsuite.Require().Equal(groupName, *mgResp.Name) + + // create deployment + deploymentsClient, err := armresources.NewDeploymentsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + deploymentName := "go-test-deploymentMG" + pollerResp, err := deploymentsClient.BeginCreateOrUpdateAtManagementGroupScope( + testsuite.ctx, + groupName, + deploymentName, + armresources.ScopedDeployment{ + Location: to.Ptr("West US"), + Properties: &armresources.DeploymentProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + TemplateLink: &armresources.TemplateLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + ParametersLink: &armresources.ParametersLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + testsuite.Require().NoError(err) + testsuite.Require().Equal(deploymentName, *resp.Name) + + // check + check, err := deploymentsClient.CheckExistenceAtManagementGroupScope(testsuite.ctx, groupName, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().True(check.Success) + + // get deployment + getResp, err := deploymentsClient.GetAtManagementGroupScope(testsuite.ctx, groupName, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().Equal(deploymentName, *getResp.Name) + + // list deployment + listPager := deploymentsClient.ListAtManagementGroupScope(groupName, nil) + testsuite.Require().True(listPager.More()) + + // validate deployment + validatePoller, err := deploymentsClient.BeginValidateAtManagementGroupScope( + testsuite.ctx, + groupName, + deploymentName, + armresources.ScopedDeployment{ + Location: to.Ptr("West US"), + Properties: &armresources.DeploymentProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + TemplateLink: &armresources.TemplateLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + ParametersLink: &armresources.ParametersLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + validateResp, err := validatePoller.PollUntilDone(testsuite.ctx, 10*time.Second) + testsuite.Require().NoError(err) + testsuite.Require().NotNil(validateResp.Properties) + + // export template deployment + exportResp, err := deploymentsClient.ExportTemplateAtManagementGroupScope(testsuite.ctx, groupName, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().NotNil(exportResp.Template) + + // delete template deployment + delPoller, err := deploymentsClient.BeginDeleteAtManagementGroupScope(testsuite.ctx, groupName, deploymentName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, delPoller) + testsuite.Require().NoError(err) + + // delete management group + delManagementGroup, err := managementGroupsClient.BeginDelete(testsuite.ctx, groupName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, delManagementGroup) + testsuite.Require().NoError(err) +} + +func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtTenantScope() { + // check deployment existence + deploymentsClient, err := armresources.NewDeploymentsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + deploymentName := "go-test-deployment-at-tenant" + resp, err := deploymentsClient.CheckExistenceAtTenantScope(testsuite.ctx, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().False(resp.Success) + + // list deployment + listResp := deploymentsClient.ListAtTenantScope(nil) + testsuite.Require().True(listResp.More()) +} + +func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtSubscriptionScope() { + // check deployment existence + deploymentsClient, err := armresources.NewDeploymentsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + deploymentName := "go-test-at-subscription" + check, err := deploymentsClient.CheckExistenceAtSubscriptionScope(testsuite.ctx, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().False(check.Success) + + // create deployment at subscription scope + pollerResp, err := deploymentsClient.BeginCreateOrUpdateAtSubscriptionScope( + testsuite.ctx, + deploymentName, + armresources.Deployment{ + Location: to.Ptr("West US"), + Properties: &armresources.DeploymentProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + TemplateLink: &armresources.TemplateLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + ParametersLink: &armresources.ParametersLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + testsuite.Require().NoError(err) + testsuite.Require().Equal(deploymentName, *resp.Name) + + // get deployment + getResp, err := deploymentsClient.GetAtSubscriptionScope(testsuite.ctx, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().Equal(deploymentName, *getResp.Name) + + // list deployment + listResp := deploymentsClient.ListAtSubscriptionScope(nil) + testsuite.Require().True(listResp.More()) + + // what if deployment + whatIfPoller, err := deploymentsClient.BeginWhatIfAtSubscriptionScope( + testsuite.ctx, + deploymentName, + armresources.DeploymentWhatIf{ + Location: to.Ptr("West US"), + Properties: &armresources.DeploymentWhatIfProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + TemplateLink: &armresources.TemplateLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + ParametersLink: &armresources.ParametersLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, whatIfPoller) + testsuite.Require().NoError(err) + + // validate deployment + validatePoller, err := deploymentsClient.BeginValidateAtSubscriptionScope( + testsuite.ctx, + deploymentName, + armresources.Deployment{ + Location: to.Ptr("West US"), + Properties: &armresources.DeploymentProperties{ + Mode: to.Ptr(armresources.DeploymentModeIncremental), + TemplateLink: &armresources.TemplateLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + ParametersLink: &armresources.ParametersLink{ + URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json"), + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, validatePoller) + testsuite.Require().NoError(err) + + // export template deployment + exportResp, err := deploymentsClient.ExportTemplateAtSubscriptionScope(testsuite.ctx, deploymentName, nil) + testsuite.Require().NoError(err) + testsuite.Require().NotNil(exportResp.Template) + + // delete deployment + delPoller, err := deploymentsClient.BeginDeleteAtSubscriptionScope(testsuite.ctx, deploymentName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, delPoller) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/resources/armresources/zt_resourcegroups_client_live_test.go b/sdk/resourcemanager/resources/armresources/zt_resourcegroups_client_live_test.go new file mode 100644 index 000000000000..b19747683495 --- /dev/null +++ b/sdk/resourcemanager/resources/armresources/zt_resourcegroups_client_live_test.go @@ -0,0 +1,105 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armresources_test + +import ( + "context" + "testing" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" + "github.com/stretchr/testify/suite" +) + +type ResourceGroupsClientTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + location string + resourceGroupName string + subscriptionID string +} + +func (testsuite *ResourceGroupsClientTestSuite) SetupSuite() { + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.subscriptionID = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armresources/testdata") + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + +} + +func (testsuite *ResourceGroupsClientTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestResourceGroupsClient(t *testing.T) { + suite.Run(t, new(ResourceGroupsClientTestSuite)) +} + +func (testsuite *ResourceGroupsClientTestSuite) TestResourceGroupsCRUD() { + // create resource group + rgName := "go-test-rg" + rgClient, err := armresources.NewResourceGroupsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + rg, err := rgClient.CreateOrUpdate(context.Background(), rgName, armresources.ResourceGroup{ + Location: to.Ptr("eastus"), + }, nil) + testsuite.Require().NoError(err) + testsuite.Require().Equal(rgName, *rg.Name) + + // check existence resource group + check, err := rgClient.CheckExistence(context.Background(), rgName, nil) + testsuite.Require().NoError(err) + testsuite.Require().True(check.Success) + + // get resource group + getResp, err := rgClient.Get(context.Background(), rgName, nil) + testsuite.Require().NoError(err) + testsuite.Require().Equal(rgName, *getResp.Name) + + // list resource group + listPager := rgClient.List(nil) + testsuite.Require().True(listPager.More()) + + // update resource group + updateResp, err := rgClient.Update(context.Background(), rgName, armresources.ResourceGroupPatchable{ + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, nil) + testsuite.Require().NoError(err) + testsuite.Require().Equal("value", *updateResp.Tags["key"]) + + // export template resource group + pollerResp, err := rgClient.BeginExportTemplate(context.Background(), rgName, armresources.ExportTemplateRequest{ + Resources: []*string{ + to.Ptr("*"), + }, + }, nil) + testsuite.Require().NoError(err) + templateResp, err := pollerResp.PollUntilDone(context.Background(), 10*time.Second) + testsuite.Require().NoError(err) + testsuite.Require().NotNil(templateResp.Template) + + // clean resource group + delPollerResp, err := rgClient.BeginDelete(context.Background(), rgName, nil) + testsuite.Require().NoError(err) + _, err = delPollerResp.PollUntilDone(context.Background(), 10*time.Second) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/resources/armresources/zt_resources_client_live_test.go b/sdk/resourcemanager/resources/armresources/zt_resources_client_live_test.go new file mode 100644 index 000000000000..8e51eeab3ed3 --- /dev/null +++ b/sdk/resourcemanager/resources/armresources/zt_resources_client_live_test.go @@ -0,0 +1,221 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armresources_test + +import ( + "context" + "strings" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" + "github.com/stretchr/testify/suite" +) + +type ResourcesClientTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + location string + resourceGroupName string + subscriptionID string +} + +func (testsuite *ResourcesClientTestSuite) SetupSuite() { + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.subscriptionID = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armresources/testdata") + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + +} + +func (testsuite *ResourcesClientTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestResourcesClient(t *testing.T) { + suite.Run(t, new(ResourcesClientTestSuite)) +} + +func (testsuite *ResourcesClientTestSuite) TestResourcesCRUD() { + // check existence resource + resourcesClient, err := armresources.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + resourceName := "go-test-resource" + check, err := resourcesClient.CheckExistence( + testsuite.ctx, + testsuite.resourceGroupName, + "Microsoft.Compute", + "", + "availabilitySets", + resourceName, + "2021-07-01", + nil, + ) + testsuite.Require().NoError(err) + testsuite.Require().False(check.Success) + + // check existence resource by id + resourceID := "/subscriptions/{guid}/resourceGroups/{resourcegroupname}/providers/{resourceprovidernamespace}/{resourcetype}/{resourcename}" + resourceID = strings.ReplaceAll(resourceID, "{guid}", testsuite.subscriptionID) + resourceID = strings.ReplaceAll(resourceID, "{resourcegroupname}", testsuite.resourceGroupName) + resourceID = strings.ReplaceAll(resourceID, "{resourceprovidernamespace}", "Microsoft.Compute") + resourceID = strings.ReplaceAll(resourceID, "{resourcetype}", "availabilitySets") + resourceID = strings.ReplaceAll(resourceID, "{resourcename}", resourceName) + checkByID, err := resourcesClient.CheckExistenceByID(testsuite.ctx, resourceID, "2021-07-01", nil) + testsuite.Require().NoError(err) + testsuite.Require().False(checkByID.Success) + + // create resource + createPoller, err := resourcesClient.BeginCreateOrUpdate( + testsuite.ctx, + testsuite.resourceGroupName, + "Microsoft.Compute", + "", + "availabilitySets", + resourceName, + "2021-07-01", + armresources.GenericResource{ + Location: to.Ptr("eastus"), + }, + nil, + ) + testsuite.Require().NoError(err) + resp, err := testutil.PollForTest(testsuite.ctx, createPoller) + testsuite.Require().NoError(err) + testsuite.Require().Equal(resourceName, *resp.Name) + + // create resource by id + createByIDPoller, err := resourcesClient.BeginCreateOrUpdateByID( + testsuite.ctx, + resourceID, + "2021-07-01", + armresources.GenericResource{ + Location: to.Ptr("eastus"), + }, + nil, + ) + testsuite.Require().NoError(err) + createByIDResp, err := testutil.PollForTest(testsuite.ctx, createByIDPoller) + testsuite.Require().NoError(err) + testsuite.Require().Equal(resourceName, *createByIDResp.Name) + + // update resources + updatePoller, err := resourcesClient.BeginUpdate( + testsuite.ctx, + testsuite.resourceGroupName, + "Microsoft.Compute", + "", + "availabilitySets", + resourceName, + "2019-07-01", + armresources.GenericResource{ + Tags: map[string]*string{ + "tag1": to.Ptr("value1"), + }, + }, + nil, + ) + testsuite.Require().NoError(err) + updateResp, err := testutil.PollForTest(testsuite.ctx, updatePoller) + testsuite.Require().NoError(err) + testsuite.Require().Equal("value1", *updateResp.Tags["tag1"]) + + // update resource by id + updateByIDPoller, err := resourcesClient.BeginUpdateByID( + testsuite.ctx, + resourceID, + "2019-07-01", + armresources.GenericResource{ + Tags: map[string]*string{ + "key2": to.Ptr("value2"), + }, + }, + nil, + ) + testsuite.Require().NoError(err) + updateByIDResp, err := testutil.PollForTest(testsuite.ctx, updateByIDPoller) + testsuite.Require().NoError(err) + testsuite.Require().Equal("value2", *updateByIDResp.Tags["key2"]) + + // get resource + getResp, err := resourcesClient.Get( + testsuite.ctx, + testsuite.resourceGroupName, + "Microsoft.Compute", + "", + "availabilitySets", + resourceName, + "2019-07-01", + nil, + ) + testsuite.Require().NoError(err) + testsuite.Require().Equal(resourceName, *getResp.Name) + + // get resource by id + getByIDResp, err := resourcesClient.GetByID( + testsuite.ctx, + resourceID, + "2019-07-01", + nil, + ) + testsuite.Require().NoError(err) + testsuite.Require().Equal(resourceName, *getByIDResp.Name) + + // list resource + listPager := resourcesClient.List(nil) + testsuite.Require().NoError(err) + testsuite.Require().True(listPager.More()) + + // list resource by resource group + listByResourceGroup := resourcesClient.ListByResourceGroup(testsuite.resourceGroupName, nil) + testsuite.Require().NoError(err) + testsuite.Require().True(listByResourceGroup.More()) + + // delete resource + delPoller, err := resourcesClient.BeginDelete( + testsuite.ctx, + testsuite.resourceGroupName, + "Microsoft.Compute", + "", + "availabilitySets", + resourceName, + "2019-07-01", + nil, + ) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, delPoller) + testsuite.Require().NoError(err) + + // delete resources by id + delByIDPoller, err := resourcesClient.BeginDeleteByID( + testsuite.ctx, + resourceID, + "2019-07-01", + nil, + ) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, delByIDPoller) + testsuite.Require().NoError(err) + + // // clean new resource group + // delPollerResp, err := rgClient.BeginDelete(context.Background(), rgName, nil) + // testsuite.Require().NoError(err) + // _, err = testutil.PollForTest(testsuite.ctx, delPollerResp) + // testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/resources/armresources/zt_tags_client_live_test.go b/sdk/resourcemanager/resources/armresources/zt_tags_client_live_test.go new file mode 100644 index 000000000000..6aa79bf1ab1f --- /dev/null +++ b/sdk/resourcemanager/resources/armresources/zt_tags_client_live_test.go @@ -0,0 +1,129 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armresources_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" + "github.com/stretchr/testify/suite" +) + +type TagsClientTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + location string + resourceGroupName string + subscriptionID string +} + +func (testsuite *TagsClientTestSuite) SetupSuite() { + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.subscriptionID = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armresources/testdata") + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + +} + +func (testsuite *TagsClientTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestTagsClient(t *testing.T) { + suite.Run(t, new(TagsClientTestSuite)) +} + +func (testsuite *TagsClientTestSuite) TestTagsCRUD() { + // create tag + tagsClient, err := armresources.NewTagsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + tagName := "go-test-tags" + resp, err := tagsClient.CreateOrUpdate(testsuite.ctx, tagName, &armresources.TagsClientCreateOrUpdateOptions{}) + testsuite.Require().NoError(err) + testsuite.Require().Equal(tagName, *resp.TagName) + + // create tag value + valueName := "go-test-value" + valueResp, err := tagsClient.CreateOrUpdateValue(testsuite.ctx, tagName, valueName, nil) + testsuite.Require().NoError(err) + testsuite.Require().Equal(valueName, *valueResp.TagValue.TagValue) + + // list + listPager := tagsClient.List(nil) + testsuite.Require().True(listPager.More()) + + // delete tag value + _, err = tagsClient.DeleteValue(testsuite.ctx, tagName, valueName, nil) + testsuite.Require().NoError(err) + + // delete tag + _, err = tagsClient.Delete(testsuite.ctx, tagName, nil) + testsuite.Require().NoError(err) +} + +func (testsuite *TagsClientTestSuite) TestTagsCRUDAtScope() { + // create scope + tagsClient, err := armresources.NewTagsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + scopeName := fmt.Sprintf("/subscriptions/%v/resourceGroups/%v", testsuite.subscriptionID, testsuite.resourceGroupName) + resp, err := tagsClient.CreateOrUpdateAtScope( + testsuite.ctx, + scopeName, + armresources.TagsResource{ + Properties: &armresources.Tags{ + Tags: map[string]*string{ + "tagKey1": to.Ptr("tagValue1"), + "tagKey2": to.Ptr("tagValue2"), + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + testsuite.Require().Equal("default", *resp.Name) + + // update at scope + updateResp, err := tagsClient.UpdateAtScope( + testsuite.ctx, + scopeName, + armresources.TagsPatchResource{ + Operation: to.Ptr(armresources.TagsPatchOperationDelete), + Properties: &armresources.Tags{ + Tags: map[string]*string{ + "tagKey1": to.Ptr("tagKey1"), + }, + }, + }, + nil, + ) + testsuite.Require().NoError(err) + testsuite.Require().Equal("default", *updateResp.Name) + + // get at scopes + getResp, err := tagsClient.GetAtScope(testsuite.ctx, scopeName, nil) + testsuite.Require().NoError(err) + testsuite.Require().Equal("default", *getResp.Name) + + // delete at scope + _, err = tagsClient.DeleteAtScope(testsuite.ctx, scopeName, nil) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md b/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md index d19e8488733d..23e82f0005f1 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md +++ b/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md @@ -1,5 +1,376 @@ # Release History +## 0.4.0 (2022-04-14) +### Breaking Changes + +- Function `*NamespacesClient.BeginDelete` return value(s) have been changed from `(NamespacesClientDeletePollerResponse, error)` to `(*armruntime.Poller[NamespacesClientDeleteResponse], error)` +- Function `*RulesClient.ListBySubscriptions` return value(s) have been changed from `(*RulesClientListBySubscriptionsPager)` to `(*runtime.Pager[RulesClientListBySubscriptionsResponse])` +- Function `*NamespacesClient.List` return value(s) have been changed from `(*NamespacesClientListPager)` to `(*runtime.Pager[NamespacesClientListResponse])` +- Function `*MigrationConfigsClient.List` return value(s) have been changed from `(*MigrationConfigsClientListPager)` to `(*runtime.Pager[MigrationConfigsClientListResponse])` +- Function `NewMigrationConfigsClient` return value(s) have been changed from `(*MigrationConfigsClient)` to `(*MigrationConfigsClient, error)` +- Function `NewPrivateLinkResourcesClient` return value(s) have been changed from `(*PrivateLinkResourcesClient)` to `(*PrivateLinkResourcesClient, error)` +- Function `*OperationsClient.List` return value(s) have been changed from `(*OperationsClientListPager)` to `(*runtime.Pager[OperationsClientListResponse])` +- Function `NewRulesClient` return value(s) have been changed from `(*RulesClient)` to `(*RulesClient, error)` +- Function `NewDisasterRecoveryConfigsClient` return value(s) have been changed from `(*DisasterRecoveryConfigsClient)` to `(*DisasterRecoveryConfigsClient, error)` +- Function `*DisasterRecoveryConfigsClient.ListAuthorizationRules` return value(s) have been changed from `(*DisasterRecoveryConfigsClientListAuthorizationRulesPager)` to `(*runtime.Pager[DisasterRecoveryConfigsClientListAuthorizationRulesResponse])` +- Function `*NamespacesClient.ListByResourceGroup` return value(s) have been changed from `(*NamespacesClientListByResourceGroupPager)` to `(*runtime.Pager[NamespacesClientListByResourceGroupResponse])` +- Function `*SubscriptionsClient.ListByTopic` return value(s) have been changed from `(*SubscriptionsClientListByTopicPager)` to `(*runtime.Pager[SubscriptionsClientListByTopicResponse])` +- Function `*NamespacesClient.ListAuthorizationRules` return value(s) have been changed from `(*NamespacesClientListAuthorizationRulesPager)` to `(*runtime.Pager[NamespacesClientListAuthorizationRulesResponse])` +- Function `*NamespacesClient.BeginCreateOrUpdate` return value(s) have been changed from `(NamespacesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[NamespacesClientCreateOrUpdateResponse], error)` +- Function `NewTopicsClient` return value(s) have been changed from `(*TopicsClient)` to `(*TopicsClient, error)` +- Function `NewQueuesClient` return value(s) have been changed from `(*QueuesClient)` to `(*QueuesClient, error)` +- Function `*QueuesClient.ListByNamespace` return value(s) have been changed from `(*QueuesClientListByNamespacePager)` to `(*runtime.Pager[QueuesClientListByNamespaceResponse])` +- Function `*TopicsClient.ListByNamespace` return value(s) have been changed from `(*TopicsClientListByNamespacePager)` to `(*runtime.Pager[TopicsClientListByNamespaceResponse])` +- Function `*DisasterRecoveryConfigsClient.List` return value(s) have been changed from `(*DisasterRecoveryConfigsClientListPager)` to `(*runtime.Pager[DisasterRecoveryConfigsClientListResponse])` +- Function `*MigrationConfigsClient.BeginCreateAndStartMigration` return value(s) have been changed from `(MigrationConfigsClientCreateAndStartMigrationPollerResponse, error)` to `(*armruntime.Poller[MigrationConfigsClientCreateAndStartMigrationResponse], error)` +- Function `*NamespacesClient.ListNetworkRuleSets` return value(s) have been changed from `(*NamespacesClientListNetworkRuleSetsPager)` to `(*runtime.Pager[NamespacesClientListNetworkRuleSetsResponse])` +- Function `NewPrivateEndpointConnectionsClient` return value(s) have been changed from `(*PrivateEndpointConnectionsClient)` to `(*PrivateEndpointConnectionsClient, error)` +- Function `*PrivateEndpointConnectionsClient.List` return value(s) have been changed from `(*PrivateEndpointConnectionsClientListPager)` to `(*runtime.Pager[PrivateEndpointConnectionsClientListResponse])` +- Function `NewNamespacesClient` return value(s) have been changed from `(*NamespacesClient)` to `(*NamespacesClient, error)` +- Function `*TopicsClient.ListAuthorizationRules` return value(s) have been changed from `(*TopicsClientListAuthorizationRulesPager)` to `(*runtime.Pager[TopicsClientListAuthorizationRulesResponse])` +- Function `NewOperationsClient` return value(s) have been changed from `(*OperationsClient)` to `(*OperationsClient, error)` +- Function `*PrivateEndpointConnectionsClient.BeginDelete` return value(s) have been changed from `(PrivateEndpointConnectionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)` +- Function `NewSubscriptionsClient` return value(s) have been changed from `(*SubscriptionsClient)` to `(*SubscriptionsClient, error)` +- Function `*QueuesClient.ListAuthorizationRules` return value(s) have been changed from `(*QueuesClientListAuthorizationRulesPager)` to `(*runtime.Pager[QueuesClientListAuthorizationRulesResponse])` +- Type of `Operation.Properties` has been changed from `map[string]interface{}` to `interface{}` +- Type of `ErrorAdditionalInfo.Info` has been changed from `map[string]interface{}` to `interface{}` +- Function `*NamespacesClientListPager.NextPage` has been removed +- Function `KeyType.ToPtr` has been removed +- Function `*MigrationConfigsClientCreateAndStartMigrationPoller.Poll` has been removed +- Function `ProvisioningStateDR.ToPtr` has been removed +- Function `*MigrationConfigsClientCreateAndStartMigrationPoller.FinalResponse` has been removed +- Function `UnavailableReason.ToPtr` has been removed +- Function `*DisasterRecoveryConfigsClientListAuthorizationRulesPager.NextPage` has been removed +- Function `*NamespacesClientDeletePollerResponse.Resume` has been removed +- Function `EntityStatus.ToPtr` has been removed +- Function `FilterType.ToPtr` has been removed +- Function `*RulesClientListBySubscriptionsPager.PageResponse` has been removed +- Function `PrivateEndpointConnectionsClientDeletePollerResponse.PollUntilDone` has been removed +- Function `*DisasterRecoveryConfigsClientListPager.PageResponse` has been removed +- Function `*NamespacesClientListByResourceGroupPager.NextPage` has been removed +- Function `*TopicsClientListAuthorizationRulesPager.NextPage` has been removed +- Function `*OperationsClientListPager.Err` has been removed +- Function `NamespacesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed +- Function `*NamespacesClientListNetworkRuleSetsPager.Err` has been removed +- Function `*MigrationConfigsClientCreateAndStartMigrationPollerResponse.Resume` has been removed +- Function `*MigrationConfigsClientCreateAndStartMigrationPoller.Done` has been removed +- Function `*QueuesClientListByNamespacePager.NextPage` has been removed +- Function `ManagedServiceIdentityType.ToPtr` has been removed +- Function `*NamespacesClientListNetworkRuleSetsPager.PageResponse` has been removed +- Function `*DisasterRecoveryConfigsClientListAuthorizationRulesPager.Err` has been removed +- Function `*NamespacesClientListPager.Err` has been removed +- Function `*SubscriptionsClientListByTopicPager.PageResponse` has been removed +- Function `AccessRights.ToPtr` has been removed +- Function `*MigrationConfigsClientCreateAndStartMigrationPoller.ResumeToken` has been removed +- Function `*NamespacesClientDeletePoller.Poll` has been removed +- Function `*QueuesClientListByNamespacePager.PageResponse` has been removed +- Function `*DisasterRecoveryConfigsClientListPager.NextPage` has been removed +- Function `*NamespacesClientCreateOrUpdatePoller.Done` has been removed +- Function `RoleDisasterRecovery.ToPtr` has been removed +- Function `*TopicsClientListByNamespacePager.NextPage` has been removed +- Function `*MigrationConfigsClientListPager.PageResponse` has been removed +- Function `*RulesClientListBySubscriptionsPager.Err` has been removed +- Function `PublicNetworkAccessFlag.ToPtr` has been removed +- Function `*SubscriptionsClientListByTopicPager.NextPage` has been removed +- Function `PrivateLinkConnectionStatus.ToPtr` has been removed +- Function `*NamespacesClientListNetworkRuleSetsPager.NextPage` has been removed +- Function `*NamespacesClientDeletePoller.ResumeToken` has been removed +- Function `*TopicsClientListByNamespacePager.PageResponse` has been removed +- Function `*NamespacesClientListAuthorizationRulesPager.NextPage` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.FinalResponse` has been removed +- Function `*NamespacesClientDeletePoller.FinalResponse` has been removed +- Function `*NamespacesClientListAuthorizationRulesPager.PageResponse` has been removed +- Function `*NamespacesClientDeletePoller.Done` has been removed +- Function `*SubscriptionsClientListByTopicPager.Err` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.Done` has been removed +- Function `*NamespacesClientListPager.PageResponse` has been removed +- Function `*NamespacesClientCreateOrUpdatePollerResponse.Resume` has been removed +- Function `*PrivateEndpointConnectionsClientListPager.Err` has been removed +- Function `*TopicsClientListAuthorizationRulesPager.PageResponse` has been removed +- Function `*QueuesClientListAuthorizationRulesPager.PageResponse` has been removed +- Function `*QueuesClientListAuthorizationRulesPager.NextPage` has been removed +- Function `DefaultAction.ToPtr` has been removed +- Function `*MigrationConfigsClientListPager.NextPage` has been removed +- Function `*QueuesClientListByNamespacePager.Err` has been removed +- Function `MigrationConfigsClientCreateAndStartMigrationPollerResponse.PollUntilDone` has been removed +- Function `*OperationsClientListPager.PageResponse` has been removed +- Function `*NamespacesClientCreateOrUpdatePoller.ResumeToken` has been removed +- Function `SKUName.ToPtr` has been removed +- Function `*NamespacesClientListAuthorizationRulesPager.Err` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.Poll` has been removed +- Function `EndPointProvisioningState.ToPtr` has been removed +- Function `*TopicsClientListByNamespacePager.Err` has been removed +- Function `*PrivateEndpointConnectionsClientListPager.PageResponse` has been removed +- Function `*NamespacesClientCreateOrUpdatePoller.FinalResponse` has been removed +- Function `NetworkRuleIPAction.ToPtr` has been removed +- Function `*DisasterRecoveryConfigsClientListAuthorizationRulesPager.PageResponse` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePollerResponse.Resume` has been removed +- Function `NamespacesClientDeletePollerResponse.PollUntilDone` has been removed +- Function `*PrivateEndpointConnectionsClientListPager.NextPage` has been removed +- Function `*DisasterRecoveryConfigsClientListPager.Err` has been removed +- Function `*OperationsClientListPager.NextPage` has been removed +- Function `*NamespacesClientListByResourceGroupPager.Err` has been removed +- Function `*TopicsClientListAuthorizationRulesPager.Err` has been removed +- Function `*QueuesClientListAuthorizationRulesPager.Err` has been removed +- Function `MigrationConfigurationName.ToPtr` has been removed +- Function `CreatedByType.ToPtr` has been removed +- Function `SKUTier.ToPtr` has been removed +- Function `*NamespacesClientListByResourceGroupPager.PageResponse` has been removed +- Function `*RulesClientListBySubscriptionsPager.NextPage` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.ResumeToken` has been removed +- Function `*MigrationConfigsClientListPager.Err` has been removed +- Function `*NamespacesClientCreateOrUpdatePoller.Poll` has been removed +- Struct `DisasterRecoveryConfigsClientCheckNameAvailabilityResult` has been removed +- Struct `DisasterRecoveryConfigsClientCreateOrUpdateResult` has been removed +- Struct `DisasterRecoveryConfigsClientGetAuthorizationRuleResult` has been removed +- Struct `DisasterRecoveryConfigsClientGetResult` has been removed +- Struct `DisasterRecoveryConfigsClientListAuthorizationRulesPager` has been removed +- Struct `DisasterRecoveryConfigsClientListAuthorizationRulesResult` has been removed +- Struct `DisasterRecoveryConfigsClientListKeysResult` has been removed +- Struct `DisasterRecoveryConfigsClientListPager` has been removed +- Struct `DisasterRecoveryConfigsClientListResult` has been removed +- Struct `MigrationConfigsClientCreateAndStartMigrationPoller` has been removed +- Struct `MigrationConfigsClientCreateAndStartMigrationPollerResponse` has been removed +- Struct `MigrationConfigsClientCreateAndStartMigrationResult` has been removed +- Struct `MigrationConfigsClientGetResult` has been removed +- Struct `MigrationConfigsClientListPager` has been removed +- Struct `MigrationConfigsClientListResult` has been removed +- Struct `NamespacesClientCheckNameAvailabilityResult` has been removed +- Struct `NamespacesClientCreateOrUpdateAuthorizationRuleResult` has been removed +- Struct `NamespacesClientCreateOrUpdateNetworkRuleSetResult` has been removed +- Struct `NamespacesClientCreateOrUpdatePoller` has been removed +- Struct `NamespacesClientCreateOrUpdatePollerResponse` has been removed +- Struct `NamespacesClientCreateOrUpdateResult` has been removed +- Struct `NamespacesClientDeletePoller` has been removed +- Struct `NamespacesClientDeletePollerResponse` has been removed +- Struct `NamespacesClientGetAuthorizationRuleResult` has been removed +- Struct `NamespacesClientGetNetworkRuleSetResult` has been removed +- Struct `NamespacesClientGetResult` has been removed +- Struct `NamespacesClientListAuthorizationRulesPager` has been removed +- Struct `NamespacesClientListAuthorizationRulesResult` has been removed +- Struct `NamespacesClientListByResourceGroupPager` has been removed +- Struct `NamespacesClientListByResourceGroupResult` has been removed +- Struct `NamespacesClientListKeysResult` has been removed +- Struct `NamespacesClientListNetworkRuleSetsPager` has been removed +- Struct `NamespacesClientListNetworkRuleSetsResult` has been removed +- Struct `NamespacesClientListPager` has been removed +- Struct `NamespacesClientListResult` has been removed +- Struct `NamespacesClientRegenerateKeysResult` has been removed +- Struct `NamespacesClientUpdateResult` has been removed +- Struct `OperationsClientListPager` has been removed +- Struct `OperationsClientListResult` has been removed +- Struct `PrivateEndpointConnectionsClientCreateOrUpdateResult` has been removed +- Struct `PrivateEndpointConnectionsClientDeletePoller` has been removed +- Struct `PrivateEndpointConnectionsClientDeletePollerResponse` has been removed +- Struct `PrivateEndpointConnectionsClientGetResult` has been removed +- Struct `PrivateEndpointConnectionsClientListPager` has been removed +- Struct `PrivateEndpointConnectionsClientListResult` has been removed +- Struct `PrivateLinkResourcesClientGetResult` has been removed +- Struct `QueuesClientCreateOrUpdateAuthorizationRuleResult` has been removed +- Struct `QueuesClientCreateOrUpdateResult` has been removed +- Struct `QueuesClientGetAuthorizationRuleResult` has been removed +- Struct `QueuesClientGetResult` has been removed +- Struct `QueuesClientListAuthorizationRulesPager` has been removed +- Struct `QueuesClientListAuthorizationRulesResult` has been removed +- Struct `QueuesClientListByNamespacePager` has been removed +- Struct `QueuesClientListByNamespaceResult` has been removed +- Struct `QueuesClientListKeysResult` has been removed +- Struct `QueuesClientRegenerateKeysResult` has been removed +- Struct `RulesClientCreateOrUpdateResult` has been removed +- Struct `RulesClientGetResult` has been removed +- Struct `RulesClientListBySubscriptionsPager` has been removed +- Struct `RulesClientListBySubscriptionsResult` has been removed +- Struct `SubscriptionsClientCreateOrUpdateResult` has been removed +- Struct `SubscriptionsClientGetResult` has been removed +- Struct `SubscriptionsClientListByTopicPager` has been removed +- Struct `SubscriptionsClientListByTopicResult` has been removed +- Struct `TopicsClientCreateOrUpdateAuthorizationRuleResult` has been removed +- Struct `TopicsClientCreateOrUpdateResult` has been removed +- Struct `TopicsClientGetAuthorizationRuleResult` has been removed +- Struct `TopicsClientGetResult` has been removed +- Struct `TopicsClientListAuthorizationRulesPager` has been removed +- Struct `TopicsClientListAuthorizationRulesResult` has been removed +- Struct `TopicsClientListByNamespacePager` has been removed +- Struct `TopicsClientListByNamespaceResult` has been removed +- Struct `TopicsClientListKeysResult` has been removed +- Struct `TopicsClientRegenerateKeysResult` has been removed +- Field `DisasterRecoveryConfigsClientListResult` of struct `DisasterRecoveryConfigsClientListResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientListResponse` has been removed +- Field `QueuesClientListAuthorizationRulesResult` of struct `QueuesClientListAuthorizationRulesResponse` has been removed +- Field `RawResponse` of struct `QueuesClientListAuthorizationRulesResponse` has been removed +- Field `TopicsClientCreateOrUpdateAuthorizationRuleResult` of struct `TopicsClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `TopicsClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `RulesClientGetResult` of struct `RulesClientGetResponse` has been removed +- Field `RawResponse` of struct `RulesClientGetResponse` has been removed +- Field `DisasterRecoveryConfigsClientCheckNameAvailabilityResult` of struct `DisasterRecoveryConfigsClientCheckNameAvailabilityResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientCheckNameAvailabilityResponse` has been removed +- Field `DisasterRecoveryConfigsClientListAuthorizationRulesResult` of struct `DisasterRecoveryConfigsClientListAuthorizationRulesResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientListAuthorizationRulesResponse` has been removed +- Field `TopicsClientListAuthorizationRulesResult` of struct `TopicsClientListAuthorizationRulesResponse` has been removed +- Field `RawResponse` of struct `TopicsClientListAuthorizationRulesResponse` has been removed +- Field `NamespacesClientUpdateResult` of struct `NamespacesClientUpdateResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientUpdateResponse` has been removed +- Field `DisasterRecoveryConfigsClientGetAuthorizationRuleResult` of struct `DisasterRecoveryConfigsClientGetAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientGetAuthorizationRuleResponse` has been removed +- Field `QueuesClientRegenerateKeysResult` of struct `QueuesClientRegenerateKeysResponse` has been removed +- Field `RawResponse` of struct `QueuesClientRegenerateKeysResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientDeleteResponse` has been removed +- Field `RawResponse` of struct `MigrationConfigsClientCompleteMigrationResponse` has been removed +- Field `RulesClientCreateOrUpdateResult` of struct `RulesClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `RulesClientCreateOrUpdateResponse` has been removed +- Field `NamespacesClientGetNetworkRuleSetResult` of struct `NamespacesClientGetNetworkRuleSetResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientGetNetworkRuleSetResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientDeleteAuthorizationRuleResponse` has been removed +- Field `TopicsClientGetAuthorizationRuleResult` of struct `TopicsClientGetAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `TopicsClientGetAuthorizationRuleResponse` has been removed +- Field `PrivateEndpointConnectionsClientListResult` of struct `PrivateEndpointConnectionsClientListResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientListResponse` has been removed +- Field `NamespacesClientCreateOrUpdateNetworkRuleSetResult` of struct `NamespacesClientCreateOrUpdateNetworkRuleSetResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientCreateOrUpdateNetworkRuleSetResponse` has been removed +- Field `NamespacesClientListNetworkRuleSetsResult` of struct `NamespacesClientListNetworkRuleSetsResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListNetworkRuleSetsResponse` has been removed +- Field `NamespacesClientRegenerateKeysResult` of struct `NamespacesClientRegenerateKeysResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientRegenerateKeysResponse` has been removed +- Field `OperationsClientListResult` of struct `OperationsClientListResponse` has been removed +- Field `RawResponse` of struct `OperationsClientListResponse` has been removed +- Field `SubscriptionsClientCreateOrUpdateResult` of struct `SubscriptionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `SubscriptionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `MigrationConfigsClientRevertResponse` has been removed +- Field `RawResponse` of struct `QueuesClientDeleteResponse` has been removed +- Field `QueuesClientCreateOrUpdateResult` of struct `QueuesClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `QueuesClientCreateOrUpdateResponse` has been removed +- Field `TopicsClientRegenerateKeysResult` of struct `TopicsClientRegenerateKeysResponse` has been removed +- Field `RawResponse` of struct `TopicsClientRegenerateKeysResponse` has been removed +- Field `PrivateEndpointConnectionsClientCreateOrUpdateResult` of struct `PrivateEndpointConnectionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `RulesClientDeleteResponse` has been removed +- Field `TopicsClientListByNamespaceResult` of struct `TopicsClientListByNamespaceResponse` has been removed +- Field `RawResponse` of struct `TopicsClientListByNamespaceResponse` has been removed +- Field `NamespacesClientGetResult` of struct `NamespacesClientGetResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientGetResponse` has been removed +- Field `NamespacesClientCheckNameAvailabilityResult` of struct `NamespacesClientCheckNameAvailabilityResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientCheckNameAvailabilityResponse` has been removed +- Field `QueuesClientGetResult` of struct `QueuesClientGetResponse` has been removed +- Field `RawResponse` of struct `QueuesClientGetResponse` has been removed +- Field `NamespacesClientCreateOrUpdateResult` of struct `NamespacesClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientCreateOrUpdateResponse` has been removed +- Field `NamespacesClientCreateOrUpdateAuthorizationRuleResult` of struct `NamespacesClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `QueuesClientCreateOrUpdateAuthorizationRuleResult` of struct `QueuesClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `QueuesClientCreateOrUpdateAuthorizationRuleResponse` has been removed +- Field `PrivateLinkResourcesClientGetResult` of struct `PrivateLinkResourcesClientGetResponse` has been removed +- Field `RawResponse` of struct `PrivateLinkResourcesClientGetResponse` has been removed +- Field `RawResponse` of struct `TopicsClientDeleteResponse` has been removed +- Field `RawResponse` of struct `TopicsClientDeleteAuthorizationRuleResponse` has been removed +- Field `SubscriptionsClientGetResult` of struct `SubscriptionsClientGetResponse` has been removed +- Field `RawResponse` of struct `SubscriptionsClientGetResponse` has been removed +- Field `MigrationConfigsClientCreateAndStartMigrationResult` of struct `MigrationConfigsClientCreateAndStartMigrationResponse` has been removed +- Field `RawResponse` of struct `MigrationConfigsClientCreateAndStartMigrationResponse` has been removed +- Field `NamespacesClientListKeysResult` of struct `NamespacesClientListKeysResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListKeysResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientBreakPairingResponse` has been removed +- Field `NamespacesClientListResult` of struct `NamespacesClientListResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListResponse` has been removed +- Field `DisasterRecoveryConfigsClientListKeysResult` of struct `DisasterRecoveryConfigsClientListKeysResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientListKeysResponse` has been removed +- Field `TopicsClientCreateOrUpdateResult` of struct `TopicsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `TopicsClientCreateOrUpdateResponse` has been removed +- Field `PrivateEndpointConnectionsClientGetResult` of struct `PrivateEndpointConnectionsClientGetResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientGetResponse` has been removed +- Field `RawResponse` of struct `QueuesClientDeleteAuthorizationRuleResponse` has been removed +- Field `NamespacesClientListByResourceGroupResult` of struct `NamespacesClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientFailOverResponse` has been removed +- Field `TopicsClientGetResult` of struct `TopicsClientGetResponse` has been removed +- Field `RawResponse` of struct `TopicsClientGetResponse` has been removed +- Field `QueuesClientGetAuthorizationRuleResult` of struct `QueuesClientGetAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `QueuesClientGetAuthorizationRuleResponse` has been removed +- Field `SubscriptionsClientListByTopicResult` of struct `SubscriptionsClientListByTopicResponse` has been removed +- Field `RawResponse` of struct `SubscriptionsClientListByTopicResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientDeleteResponse` has been removed +- Field `RawResponse` of struct `SubscriptionsClientDeleteResponse` has been removed +- Field `RawResponse` of struct `MigrationConfigsClientDeleteResponse` has been removed +- Field `RulesClientListBySubscriptionsResult` of struct `RulesClientListBySubscriptionsResponse` has been removed +- Field `RawResponse` of struct `RulesClientListBySubscriptionsResponse` has been removed +- Field `NamespacesClientGetAuthorizationRuleResult` of struct `NamespacesClientGetAuthorizationRuleResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientGetAuthorizationRuleResponse` has been removed +- Field `NamespacesClientListAuthorizationRulesResult` of struct `NamespacesClientListAuthorizationRulesResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientListAuthorizationRulesResponse` has been removed +- Field `TopicsClientListKeysResult` of struct `TopicsClientListKeysResponse` has been removed +- Field `RawResponse` of struct `TopicsClientListKeysResponse` has been removed +- Field `DisasterRecoveryConfigsClientGetResult` of struct `DisasterRecoveryConfigsClientGetResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientGetResponse` has been removed +- Field `RawResponse` of struct `NamespacesClientDeleteResponse` has been removed +- Field `DisasterRecoveryConfigsClientCreateOrUpdateResult` of struct `DisasterRecoveryConfigsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `DisasterRecoveryConfigsClientCreateOrUpdateResponse` has been removed +- Field `MigrationConfigsClientListResult` of struct `MigrationConfigsClientListResponse` has been removed +- Field `RawResponse` of struct `MigrationConfigsClientListResponse` has been removed +- Field `MigrationConfigsClientGetResult` of struct `MigrationConfigsClientGetResponse` has been removed +- Field `RawResponse` of struct `MigrationConfigsClientGetResponse` has been removed +- Field `QueuesClientListByNamespaceResult` of struct `QueuesClientListByNamespaceResponse` has been removed +- Field `RawResponse` of struct `QueuesClientListByNamespaceResponse` has been removed +- Field `QueuesClientListKeysResult` of struct `QueuesClientListKeysResponse` has been removed +- Field `RawResponse` of struct `QueuesClientListKeysResponse` has been removed + +### Features Added + +- New anonymous field `MigrationConfigListResult` in struct `MigrationConfigsClientListResponse` +- New anonymous field `SBTopic` in struct `TopicsClientCreateOrUpdateResponse` +- New anonymous field `SBNamespace` in struct `NamespacesClientCreateOrUpdateResponse` +- New anonymous field `CheckNameAvailabilityResult` in struct `NamespacesClientCheckNameAvailabilityResponse` +- New anonymous field `ArmDisasterRecoveryListResult` in struct `DisasterRecoveryConfigsClientListResponse` +- New anonymous field `SBQueueListResult` in struct `QueuesClientListByNamespaceResponse` +- New anonymous field `SBAuthorizationRule` in struct `QueuesClientCreateOrUpdateAuthorizationRuleResponse` +- New anonymous field `SBTopicListResult` in struct `TopicsClientListByNamespaceResponse` +- New anonymous field `SBAuthorizationRule` in struct `TopicsClientGetAuthorizationRuleResponse` +- New anonymous field `SBAuthorizationRuleListResult` in struct `NamespacesClientListAuthorizationRulesResponse` +- New field `ResumeToken` in struct `NamespacesClientBeginDeleteOptions` +- New anonymous field `SBNamespace` in struct `NamespacesClientGetResponse` +- New anonymous field `NetworkRuleSet` in struct `NamespacesClientCreateOrUpdateNetworkRuleSetResponse` +- New anonymous field `AccessKeys` in struct `NamespacesClientListKeysResponse` +- New anonymous field `SBAuthorizationRuleListResult` in struct `DisasterRecoveryConfigsClientListAuthorizationRulesResponse` +- New anonymous field `SBQueue` in struct `QueuesClientGetResponse` +- New anonymous field `SBAuthorizationRuleListResult` in struct `TopicsClientListAuthorizationRulesResponse` +- New anonymous field `Rule` in struct `RulesClientGetResponse` +- New anonymous field `AccessKeys` in struct `TopicsClientRegenerateKeysResponse` +- New field `ResumeToken` in struct `NamespacesClientBeginCreateOrUpdateOptions` +- New anonymous field `ArmDisasterRecovery` in struct `DisasterRecoveryConfigsClientGetResponse` +- New anonymous field `SBQueue` in struct `QueuesClientCreateOrUpdateResponse` +- New anonymous field `SBSubscription` in struct `SubscriptionsClientGetResponse` +- New anonymous field `SBSubscription` in struct `SubscriptionsClientCreateOrUpdateResponse` +- New anonymous field `SBNamespace` in struct `NamespacesClientUpdateResponse` +- New field `ResumeToken` in struct `MigrationConfigsClientBeginCreateAndStartMigrationOptions` +- New anonymous field `SBAuthorizationRule` in struct `DisasterRecoveryConfigsClientGetAuthorizationRuleResponse` +- New anonymous field `MigrationConfigProperties` in struct `MigrationConfigsClientCreateAndStartMigrationResponse` +- New anonymous field `SBAuthorizationRule` in struct `NamespacesClientCreateOrUpdateAuthorizationRuleResponse` +- New field `ResumeToken` in struct `PrivateEndpointConnectionsClientBeginDeleteOptions` +- New anonymous field `SBAuthorizationRuleListResult` in struct `QueuesClientListAuthorizationRulesResponse` +- New anonymous field `PrivateLinkResourcesListResult` in struct `PrivateLinkResourcesClientGetResponse` +- New anonymous field `NetworkRuleSet` in struct `NamespacesClientGetNetworkRuleSetResponse` +- New anonymous field `SBAuthorizationRule` in struct `QueuesClientGetAuthorizationRuleResponse` +- New anonymous field `SBNamespaceListResult` in struct `NamespacesClientListByResourceGroupResponse` +- New anonymous field `OperationListResult` in struct `OperationsClientListResponse` +- New anonymous field `AccessKeys` in struct `DisasterRecoveryConfigsClientListKeysResponse` +- New anonymous field `CheckNameAvailabilityResult` in struct `DisasterRecoveryConfigsClientCheckNameAvailabilityResponse` +- New anonymous field `PrivateEndpointConnection` in struct `PrivateEndpointConnectionsClientCreateOrUpdateResponse` +- New anonymous field `PrivateEndpointConnection` in struct `PrivateEndpointConnectionsClientGetResponse` +- New anonymous field `AccessKeys` in struct `NamespacesClientRegenerateKeysResponse` +- New anonymous field `Rule` in struct `RulesClientCreateOrUpdateResponse` +- New anonymous field `NetworkRuleSetListResult` in struct `NamespacesClientListNetworkRuleSetsResponse` +- New anonymous field `RuleListResult` in struct `RulesClientListBySubscriptionsResponse` +- New anonymous field `SBNamespaceListResult` in struct `NamespacesClientListResponse` +- New anonymous field `AccessKeys` in struct `QueuesClientRegenerateKeysResponse` +- New anonymous field `SBTopic` in struct `TopicsClientGetResponse` +- New anonymous field `MigrationConfigProperties` in struct `MigrationConfigsClientGetResponse` +- New anonymous field `SBSubscriptionListResult` in struct `SubscriptionsClientListByTopicResponse` +- New anonymous field `PrivateEndpointConnectionListResult` in struct `PrivateEndpointConnectionsClientListResponse` +- New anonymous field `AccessKeys` in struct `TopicsClientListKeysResponse` +- New anonymous field `AccessKeys` in struct `QueuesClientListKeysResponse` +- New anonymous field `SBAuthorizationRule` in struct `TopicsClientCreateOrUpdateAuthorizationRuleResponse` +- New anonymous field `ArmDisasterRecovery` in struct `DisasterRecoveryConfigsClientCreateOrUpdateResponse` +- New anonymous field `SBAuthorizationRule` in struct `NamespacesClientGetAuthorizationRuleResponse` + + ## 0.3.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/servicebus/armservicebus/README.md b/sdk/resourcemanager/servicebus/armservicebus/README.md index dd5b8370e0ec..5284d56d832e 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/README.md +++ b/sdk/resourcemanager/servicebus/armservicebus/README.md @@ -11,7 +11,7 @@ The `armservicebus` module provides operations for working with Azure Service Bu ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Service Bus modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armservicebus.NewSubscriptionsClient(, cred, nil) +client, err := armservicebus.NewSubscriptionsClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armservicebus.NewSubscriptionsClient(, cred, &options) +client, err := armservicebus.NewSubscriptionsClient(, cred, &options) ``` ## More sample code diff --git a/sdk/resourcemanager/servicebus/armservicebus/autorest.md b/sdk/resourcemanager/servicebus/armservicebus/autorest.md index 0f5ac47ed1ae..4cf60c8f5e1d 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/autorest.md +++ b/sdk/resourcemanager/servicebus/armservicebus/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/servicebus/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/servicebus/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/ba65174ad2569e80fdb5838a1dddc26b8c0d6f3d/specification/servicebus/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/ba65174ad2569e80fdb5838a1dddc26b8c0d6f3d/specification/servicebus/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.1 +module-version: 0.4.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/servicebus/armservicebus/go.mod b/sdk/resourcemanager/servicebus/armservicebus/go.mod index 36b1bd38c24d..4a3e7845931b 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/go.mod +++ b/sdk/resourcemanager/servicebus/armservicebus/go.mod @@ -1,8 +1,21 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect ) diff --git a/sdk/resourcemanager/servicebus/armservicebus/go.sum b/sdk/resourcemanager/servicebus/armservicebus/go.sum index 2ce51d3b8174..56d1c32628ae 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/go.sum +++ b/sdk/resourcemanager/servicebus/armservicebus/go.sum @@ -1,18 +1,18 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 h1:8wVJL0HUP5yDFXvotdewORTw7Yu88JbreWN/mobSvsQ= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0 h1:bLRntPH25SkY1uZ/YZW+dmxNky9r1fAHvDFrzluo+4Q= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -32,21 +32,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -56,4 +51,3 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go index 9458b2bfacc7..cc53db7119bd 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,163 +17,208 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasList.json func ExampleDisasterRecoveryConfigsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasCreate.json func ExampleDisasterRecoveryConfigsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", "", armservicebus.ArmDisasterRecovery{ Properties: &armservicebus.ArmDisasterRecoveryProperties{ - AlternateName: to.StringPtr(""), - PartnerNamespace: to.StringPtr(""), + AlternateName: to.Ptr(""), + PartnerNamespace: to.Ptr(""), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasDelete.json func ExampleDisasterRecoveryConfigsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasGet.json func ExampleDisasterRecoveryConfigsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBEHAliasBreakPairing.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBEHAliasBreakPairing.json func ExampleDisasterRecoveryConfigsClient_BreakPairing() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.BreakPairing(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasFailOver.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasFailOver.json func ExampleDisasterRecoveryConfigsClient_FailOver() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.FailOver(ctx, "", "", "", &armservicebus.DisasterRecoveryConfigsClientFailOverOptions{Parameters: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.json func ExampleDisasterRecoveryConfigsClient_ListAuthorizationRules() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAuthorizationRules("", "", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.json func ExampleDisasterRecoveryConfigsClient_GetAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAuthorizationRule(ctx, "", "", @@ -181,19 +226,26 @@ func ExampleDisasterRecoveryConfigsClient_GetAuthorizationRule() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientGetAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.json func ExampleDisasterRecoveryConfigsClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListKeys(ctx, "", "", @@ -201,28 +253,37 @@ func ExampleDisasterRecoveryConfigsClient_ListKeys() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientListKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasCheckNameAvailability.json func ExampleDisasterRecoveryConfigsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + client, err := armservicebus.NewDisasterRecoveryConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CheckNameAvailability(ctx, "", "", armservicebus.CheckNameAvailability{ - Name: to.StringPtr(""), + Name: to.Ptr(""), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DisasterRecoveryConfigsClientCheckNameAvailabilityResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go index a8b75aa6930a..f23349da4ca0 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,129 +19,166 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationList.json func ExampleMigrationConfigsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewMigrationConfigsClient("", cred, nil) + client, err := armservicebus.NewMigrationConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json func ExampleMigrationConfigsClient_BeginCreateAndStartMigration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewMigrationConfigsClient("", cred, nil) + client, err := armservicebus.NewMigrationConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreateAndStartMigration(ctx, "", "", - armservicebus.MigrationConfigurationName("$default"), + armservicebus.MigrationConfigurationNameDefault, armservicebus.MigrationConfigProperties{ Properties: &armservicebus.MigrationConfigPropertiesProperties{ - PostMigrationName: to.StringPtr(""), - TargetNamespace: to.StringPtr(""), + PostMigrationName: to.Ptr(""), + TargetNamespace: to.Ptr(""), }, }, - nil) + &armservicebus.MigrationConfigsClientBeginCreateAndStartMigrationOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.MigrationConfigsClientCreateAndStartMigrationResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationDelete.json func ExampleMigrationConfigsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewMigrationConfigsClient("", cred, nil) + client, err := armservicebus.NewMigrationConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", - armservicebus.MigrationConfigurationName("$default"), + armservicebus.MigrationConfigurationNameDefault, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationGet.json func ExampleMigrationConfigsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewMigrationConfigsClient("", cred, nil) + client, err := armservicebus.NewMigrationConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", - armservicebus.MigrationConfigurationName("$default"), + armservicebus.MigrationConfigurationNameDefault, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.MigrationConfigsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.json func ExampleMigrationConfigsClient_CompleteMigration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewMigrationConfigsClient("", cred, nil) + client, err := armservicebus.NewMigrationConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.CompleteMigration(ctx, "", "", - armservicebus.MigrationConfigurationName("$default"), + armservicebus.MigrationConfigurationNameDefault, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationRevert.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationRevert.json func ExampleMigrationConfigsClient_Revert() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewMigrationConfigsClient("", cred, nil) + client, err := armservicebus.NewMigrationConfigsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Revert(ctx, "", "", - armservicebus.MigrationConfigurationName("$default"), + armservicebus.MigrationConfigurationNameDefault, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go index 78e6967d938a..0cfb4240d9a0 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,289 +19,353 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceList.json func ExampleNamespacesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceListByResourceGroup.json func ExampleNamespacesClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceCreate.json func ExampleNamespacesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreateOrUpdate(ctx, "", "", armservicebus.SBNamespace{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Tags: map[string]*string{ - "tag1": to.StringPtr("value1"), - "tag2": to.StringPtr("value2"), + "tag1": to.Ptr("value1"), + "tag2": to.Ptr("value2"), }, SKU: &armservicebus.SBSKU{ - Name: armservicebus.SKUNameStandard.ToPtr(), - Tier: armservicebus.SKUTierStandard.ToPtr(), + Name: to.Ptr(armservicebus.SKUNameStandard), + Tier: to.Ptr(armservicebus.SKUTierStandard), }, }, - nil) + &armservicebus.NamespacesClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceDelete.json func ExampleNamespacesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", - nil) + &armservicebus.NamespacesClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceGet.json func ExampleNamespacesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceUpdate.json func ExampleNamespacesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", armservicebus.SBNamespaceUpdateParameters{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Tags: map[string]*string{ - "tag3": to.StringPtr("value3"), - "tag4": to.StringPtr("value4"), + "tag3": to.Ptr("value3"), + "tag4": to.Ptr("value4"), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.json func ExampleNamespacesClient_CreateOrUpdateNetworkRuleSet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateNetworkRuleSet(ctx, "", "", armservicebus.NetworkRuleSet{ Properties: &armservicebus.NetworkRuleSetProperties{ - DefaultAction: armservicebus.DefaultAction("Deny").ToPtr(), + DefaultAction: to.Ptr(armservicebus.DefaultActionDeny), IPRules: []*armservicebus.NWRuleSetIPRules{ { - Action: armservicebus.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }, { - Action: armservicebus.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }, { - Action: armservicebus.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }, { - Action: armservicebus.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }, { - Action: armservicebus.NetworkRuleIPAction("Allow").ToPtr(), - IPMask: to.StringPtr(""), + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr(""), }}, VirtualNetworkRules: []*armservicebus.NWRuleSetVirtualNetworkRules{ { - IgnoreMissingVnetServiceEndpoint: to.BoolPtr(true), + IgnoreMissingVnetServiceEndpoint: to.Ptr(true), Subnet: &armservicebus.Subnet{ - ID: to.StringPtr(""), + ID: to.Ptr(""), }, }, { - IgnoreMissingVnetServiceEndpoint: to.BoolPtr(false), + IgnoreMissingVnetServiceEndpoint: to.Ptr(false), Subnet: &armservicebus.Subnet{ - ID: to.StringPtr(""), + ID: to.Ptr(""), }, }, { - IgnoreMissingVnetServiceEndpoint: to.BoolPtr(false), + IgnoreMissingVnetServiceEndpoint: to.Ptr(false), Subnet: &armservicebus.Subnet{ - ID: to.StringPtr(""), + ID: to.Ptr(""), }, }}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientCreateOrUpdateNetworkRuleSetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.json func ExampleNamespacesClient_GetNetworkRuleSet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetNetworkRuleSet(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientGetNetworkRuleSetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json func ExampleNamespacesClient_ListNetworkRuleSets() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListNetworkRuleSets("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleListAll.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleListAll.json func ExampleNamespacesClient_ListAuthorizationRules() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAuthorizationRules("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json func ExampleNamespacesClient_CreateOrUpdateAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateAuthorizationRule(ctx, "", "", @@ -309,110 +373,146 @@ func ExampleNamespacesClient_CreateOrUpdateAuthorizationRule() { armservicebus.SBAuthorizationRule{ Properties: &armservicebus.SBAuthorizationRuleProperties{ Rights: []*armservicebus.AccessRights{ - armservicebus.AccessRightsListen.ToPtr(), - armservicebus.AccessRightsSend.ToPtr()}, + to.Ptr(armservicebus.AccessRightsListen), + to.Ptr(armservicebus.AccessRightsSend)}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientCreateOrUpdateAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleDelete.json func ExampleNamespacesClient_DeleteAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAuthorizationRule(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleGet.json func ExampleNamespacesClient_GetAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAuthorizationRule(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientGetAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json func ExampleNamespacesClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListKeys(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientListKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.json func ExampleNamespacesClient_RegenerateKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.RegenerateKeys(ctx, "", "", "", armservicebus.RegenerateAccessKeyParameters{ - KeyType: armservicebus.KeyTypePrimaryKey.ToPtr(), + KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientRegenerateKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceCheckNameAvailability.json func ExampleNamespacesClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewNamespacesClient("", cred, nil) + client, err := armservicebus.NewNamespacesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CheckNameAvailability(ctx, armservicebus.CheckNameAvailability{ - Name: to.StringPtr(""), + Name: to.Ptr(""), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.NamespacesClientCheckNameAvailabilityResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go index a800e33dd16f..b8a176463441 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,25 +16,29 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/SBOperations_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/SBOperations_List.json func ExampleOperationsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewOperationsClient(cred, nil) + client, err := armservicebus.NewOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go index f33c27465606..a91433154475 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,39 +19,48 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionList.json func ExamplePrivateEndpointConnectionsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armservicebus.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionCreate.json func ExamplePrivateEndpointConnectionsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armservicebus.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", @@ -59,59 +68,75 @@ func ExamplePrivateEndpointConnectionsClient_CreateOrUpdate() { armservicebus.PrivateEndpointConnection{ Properties: &armservicebus.PrivateEndpointConnectionProperties{ PrivateEndpoint: &armservicebus.PrivateEndpoint{ - ID: to.StringPtr(""), + ID: to.Ptr(""), }, PrivateLinkServiceConnectionState: &armservicebus.ConnectionState{ - Description: to.StringPtr(""), - Status: armservicebus.PrivateLinkConnectionStatus("Rejected").ToPtr(), + Description: to.Ptr(""), + Status: to.Ptr(armservicebus.PrivateLinkConnectionStatusRejected), }, - ProvisioningState: armservicebus.EndPointProvisioningState("Succeeded").ToPtr(), + ProvisioningState: to.Ptr(armservicebus.EndPointProvisioningStateSucceeded), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionDelete.json func ExamplePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armservicebus.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", "", - nil) + &armservicebus.PrivateEndpointConnectionsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionGet.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armservicebus.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privatelinkresources_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privatelinkresources_client_test.go index 742ab220dc07..4a91576deec5 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privatelinkresources_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privatelinkresources_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,20 +16,27 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateLinkResourcesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateLinkResourcesGet.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewPrivateLinkResourcesClient("", cred, nil) + client, err := armservicebus.NewPrivateLinkResourcesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateLinkResourcesClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go index 2553cb28313e..d947e7a2a1a3 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,40 +17,49 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleListAll.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleListAll.json func ExampleQueuesClient_ListAuthorizationRules() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAuthorizationRules("", "", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleCreate.json func ExampleQueuesClient_CreateOrUpdateAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateAuthorizationRule(ctx, "", "", @@ -59,25 +68,32 @@ func ExampleQueuesClient_CreateOrUpdateAuthorizationRule() { armservicebus.SBAuthorizationRule{ Properties: &armservicebus.SBAuthorizationRuleProperties{ Rights: []*armservicebus.AccessRights{ - armservicebus.AccessRightsListen.ToPtr(), - armservicebus.AccessRightsSend.ToPtr()}, + to.Ptr(armservicebus.AccessRightsListen), + to.Ptr(armservicebus.AccessRightsSend)}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueuesClientCreateOrUpdateAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleDelete.json func ExampleQueuesClient_DeleteAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAuthorizationRule(ctx, "", "", @@ -85,18 +101,24 @@ func ExampleQueuesClient_DeleteAuthorizationRule() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleGet.json func ExampleQueuesClient_GetAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAuthorizationRule(ctx, "", "", @@ -104,19 +126,26 @@ func ExampleQueuesClient_GetAuthorizationRule() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueuesClientGetAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleListKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleListKey.json func ExampleQueuesClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListKeys(ctx, "", "", @@ -124,118 +153,151 @@ func ExampleQueuesClient_ListKeys() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueuesClientListKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleRegenerateKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleRegenerateKey.json func ExampleQueuesClient_RegenerateKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.RegenerateKeys(ctx, "", "", "", "", armservicebus.RegenerateAccessKeyParameters{ - KeyType: armservicebus.KeyTypePrimaryKey.ToPtr(), + KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueuesClientRegenerateKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueListByNameSpace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueListByNameSpace.json func ExampleQueuesClient_ListByNamespace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByNamespace("", "", &armservicebus.QueuesClientListByNamespaceOptions{Skip: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueCreate.json func ExampleQueuesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", "", armservicebus.SBQueue{ Properties: &armservicebus.SBQueueProperties{ - EnablePartitioning: to.BoolPtr(true), + EnablePartitioning: to.Ptr(true), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueuesClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueDelete.json func ExampleQueuesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueGet.json func ExampleQueuesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewQueuesClient("", cred, nil) + client, err := armservicebus.NewQueuesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueuesClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go index e3876c58296c..52001fad4dca 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,14 +17,19 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Rules/RuleListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Rules/RuleListBySubscription.json func ExampleRulesClient_ListBySubscriptions() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewRulesClient("", cred, nil) + client, err := armservicebus.NewRulesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListBySubscriptions("", "", "", @@ -32,28 +37,32 @@ func ExampleRulesClient_ListBySubscriptions() { &armservicebus.RulesClientListBySubscriptionsOptions{Skip: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Rules/RuleCreate_CorrelationFilter.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Rules/RuleCreate_CorrelationFilter.json func ExampleRulesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewRulesClient("", cred, nil) + client, err := armservicebus.NewRulesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", @@ -64,27 +73,34 @@ func ExampleRulesClient_CreateOrUpdate() { Properties: &armservicebus.Ruleproperties{ CorrelationFilter: &armservicebus.CorrelationFilter{ Properties: map[string]*string{ - "topicHint": to.StringPtr("Crop"), + "topicHint": to.Ptr("Crop"), }, }, - FilterType: armservicebus.FilterTypeCorrelationFilter.ToPtr(), + FilterType: to.Ptr(armservicebus.FilterTypeCorrelationFilter), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.RulesClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Rules/RuleDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Rules/RuleDelete.json func ExampleRulesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewRulesClient("", cred, nil) + client, err := armservicebus.NewRulesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", @@ -93,18 +109,24 @@ func ExampleRulesClient_Delete() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Rules/RuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Rules/RuleGet.json func ExampleRulesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewRulesClient("", cred, nil) + client, err := armservicebus.NewRulesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", @@ -113,7 +135,9 @@ func ExampleRulesClient_Get() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.RulesClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go index 8773d8ac94c0..dca0da99b13c 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,42 +17,51 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Subscriptions/SBSubscriptionListByTopic.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Subscriptions/SBSubscriptionListByTopic.json func ExampleSubscriptionsClient_ListByTopic() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewSubscriptionsClient("", cred, nil) + client, err := armservicebus.NewSubscriptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByTopic("", "", "", &armservicebus.SubscriptionsClientListByTopicOptions{Skip: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Subscriptions/SBSubscriptionCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Subscriptions/SBSubscriptionCreate.json func ExampleSubscriptionsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewSubscriptionsClient("", cred, nil) + client, err := armservicebus.NewSubscriptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", @@ -60,24 +69,31 @@ func ExampleSubscriptionsClient_CreateOrUpdate() { "", armservicebus.SBSubscription{ Properties: &armservicebus.SBSubscriptionProperties{ - EnableBatchedOperations: to.BoolPtr(true), + EnableBatchedOperations: to.Ptr(true), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SubscriptionsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Subscriptions/SBSubscriptionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Subscriptions/SBSubscriptionDelete.json func ExampleSubscriptionsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewSubscriptionsClient("", cred, nil) + client, err := armservicebus.NewSubscriptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", @@ -85,18 +101,24 @@ func ExampleSubscriptionsClient_Delete() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Subscriptions/SBSubscriptionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Subscriptions/SBSubscriptionGet.json func ExampleSubscriptionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewSubscriptionsClient("", cred, nil) + client, err := armservicebus.NewSubscriptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", @@ -104,7 +126,9 @@ func ExampleSubscriptionsClient_Get() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SubscriptionsClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go index cb171cb548e1..e425abf709fd 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,40 +17,49 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" ) -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleListAll.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleListAll.json func ExampleTopicsClient_ListAuthorizationRules() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAuthorizationRules("", "", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleCreate.json func ExampleTopicsClient_CreateOrUpdateAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateAuthorizationRule(ctx, "", "", @@ -59,25 +68,32 @@ func ExampleTopicsClient_CreateOrUpdateAuthorizationRule() { armservicebus.SBAuthorizationRule{ Properties: &armservicebus.SBAuthorizationRuleProperties{ Rights: []*armservicebus.AccessRights{ - armservicebus.AccessRightsListen.ToPtr(), - armservicebus.AccessRightsSend.ToPtr()}, + to.Ptr(armservicebus.AccessRightsListen), + to.Ptr(armservicebus.AccessRightsSend)}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TopicsClientCreateOrUpdateAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleGet.json func ExampleTopicsClient_GetAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAuthorizationRule(ctx, "", "", @@ -85,19 +101,26 @@ func ExampleTopicsClient_GetAuthorizationRule() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TopicsClientGetAuthorizationRuleResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleDelete.json func ExampleTopicsClient_DeleteAuthorizationRule() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAuthorizationRule(ctx, "", "", @@ -105,18 +128,24 @@ func ExampleTopicsClient_DeleteAuthorizationRule() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleListKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleListKey.json func ExampleTopicsClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListKeys(ctx, "", "", @@ -124,118 +153,151 @@ func ExampleTopicsClient_ListKeys() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TopicsClientListKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleRegenerateKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleRegenerateKey.json func ExampleTopicsClient_RegenerateKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.RegenerateKeys(ctx, "", "", "", "", armservicebus.RegenerateAccessKeyParameters{ - KeyType: armservicebus.KeyTypePrimaryKey.ToPtr(), + KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TopicsClientRegenerateKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicListByNameSpace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicListByNameSpace.json func ExampleTopicsClient_ListByNamespace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByNamespace("", "", &armservicebus.TopicsClientListByNamespaceOptions{Skip: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicCreate.json func ExampleTopicsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", "", armservicebus.SBTopic{ Properties: &armservicebus.SBTopicProperties{ - EnableExpress: to.BoolPtr(true), + EnableExpress: to.Ptr(true), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TopicsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicDelete.json func ExampleTopicsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicGet.json func ExampleTopicsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armservicebus.NewTopicsClient("", cred, nil) + client, err := armservicebus.NewTopicsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TopicsClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go index 922518358eec..5a60e4b7d2f3 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armservicebus const ( moduleName = "armservicebus" - moduleVersion = "v0.3.1" + moduleVersion = "v0.4.0" ) type AccessRights string @@ -30,11 +30,6 @@ func PossibleAccessRightsValues() []AccessRights { } } -// ToPtr returns a *AccessRights pointing to the current value. -func (c AccessRights) ToPtr() *AccessRights { - return &c -} - // CreatedByType - The type of identity that created the resource. type CreatedByType string @@ -55,11 +50,6 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// ToPtr returns a *CreatedByType pointing to the current value. -func (c CreatedByType) ToPtr() *CreatedByType { - return &c -} - // DefaultAction - Default Action for Network Rule Set type DefaultAction string @@ -76,11 +66,6 @@ func PossibleDefaultActionValues() []DefaultAction { } } -// ToPtr returns a *DefaultAction pointing to the current value. -func (c DefaultAction) ToPtr() *DefaultAction { - return &c -} - // EndPointProvisioningState - Provisioning state of the Private Endpoint Connection. type EndPointProvisioningState string @@ -105,11 +90,6 @@ func PossibleEndPointProvisioningStateValues() []EndPointProvisioningState { } } -// ToPtr returns a *EndPointProvisioningState pointing to the current value. -func (c EndPointProvisioningState) ToPtr() *EndPointProvisioningState { - return &c -} - // EntityStatus - Entity status. type EntityStatus string @@ -140,11 +120,6 @@ func PossibleEntityStatusValues() []EntityStatus { } } -// ToPtr returns a *EntityStatus pointing to the current value. -func (c EntityStatus) ToPtr() *EntityStatus { - return &c -} - // FilterType - Rule filter types type FilterType string @@ -161,11 +136,6 @@ func PossibleFilterTypeValues() []FilterType { } } -// ToPtr returns a *FilterType pointing to the current value. -func (c FilterType) ToPtr() *FilterType { - return &c -} - // KeyType - The access key to regenerate. type KeyType string @@ -182,11 +152,6 @@ func PossibleKeyTypeValues() []KeyType { } } -// ToPtr returns a *KeyType pointing to the current value. -func (c KeyType) ToPtr() *KeyType { - return &c -} - // ManagedServiceIdentityType - Type of managed service identity. type ManagedServiceIdentityType string @@ -207,11 +172,6 @@ func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { } } -// ToPtr returns a *ManagedServiceIdentityType pointing to the current value. -func (c ManagedServiceIdentityType) ToPtr() *ManagedServiceIdentityType { - return &c -} - type MigrationConfigurationName string const ( @@ -225,11 +185,6 @@ func PossibleMigrationConfigurationNameValues() []MigrationConfigurationName { } } -// ToPtr returns a *MigrationConfigurationName pointing to the current value. -func (c MigrationConfigurationName) ToPtr() *MigrationConfigurationName { - return &c -} - // NetworkRuleIPAction - The IP Filter Action type NetworkRuleIPAction string @@ -244,11 +199,6 @@ func PossibleNetworkRuleIPActionValues() []NetworkRuleIPAction { } } -// ToPtr returns a *NetworkRuleIPAction pointing to the current value. -func (c NetworkRuleIPAction) ToPtr() *NetworkRuleIPAction { - return &c -} - // PrivateLinkConnectionStatus - Status of the connection. type PrivateLinkConnectionStatus string @@ -269,11 +219,6 @@ func PossiblePrivateLinkConnectionStatusValues() []PrivateLinkConnectionStatus { } } -// ToPtr returns a *PrivateLinkConnectionStatus pointing to the current value. -func (c PrivateLinkConnectionStatus) ToPtr() *PrivateLinkConnectionStatus { - return &c -} - // ProvisioningStateDR - Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or // 'Succeeded' or 'Failed' type ProvisioningStateDR string @@ -293,11 +238,6 @@ func PossibleProvisioningStateDRValues() []ProvisioningStateDR { } } -// ToPtr returns a *ProvisioningStateDR pointing to the current value. -func (c ProvisioningStateDR) ToPtr() *ProvisioningStateDR { - return &c -} - // PublicNetworkAccessFlag - This determines if traffic is allowed over public network. By default it is enabled. type PublicNetworkAccessFlag string @@ -314,11 +254,6 @@ func PossiblePublicNetworkAccessFlagValues() []PublicNetworkAccessFlag { } } -// ToPtr returns a *PublicNetworkAccessFlag pointing to the current value. -func (c PublicNetworkAccessFlag) ToPtr() *PublicNetworkAccessFlag { - return &c -} - // RoleDisasterRecovery - role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary' type RoleDisasterRecovery string @@ -337,11 +272,6 @@ func PossibleRoleDisasterRecoveryValues() []RoleDisasterRecovery { } } -// ToPtr returns a *RoleDisasterRecovery pointing to the current value. -func (c RoleDisasterRecovery) ToPtr() *RoleDisasterRecovery { - return &c -} - // SKUName - Name of this SKU. type SKUName string @@ -360,11 +290,6 @@ func PossibleSKUNameValues() []SKUName { } } -// ToPtr returns a *SKUName pointing to the current value. -func (c SKUName) ToPtr() *SKUName { - return &c -} - // SKUTier - The billing tier of this particular SKU. type SKUTier string @@ -383,11 +308,6 @@ func PossibleSKUTierValues() []SKUTier { } } -// ToPtr returns a *SKUTier pointing to the current value. -func (c SKUTier) ToPtr() *SKUTier { - return &c -} - // UnavailableReason - Specifies the reason for the unavailability of the service. type UnavailableReason string @@ -411,8 +331,3 @@ func PossibleUnavailableReasonValues() []UnavailableReason { UnavailableReasonTooManyNamespaceInCurrentSubscription, } } - -// ToPtr returns a *UnavailableReason pointing to the current value. -func (c UnavailableReason) ToPtr() *UnavailableReason { - return &c -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go index 6b8710d6b92e..e3fba028fa39 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type DisasterRecoveryConfigsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewDisasterRecoveryConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *DisasterRecoveryConfigsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewDisasterRecoveryConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DisasterRecoveryConfigsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &DisasterRecoveryConfigsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // BreakPairing - This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces @@ -69,7 +74,7 @@ func (client *DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, r if !runtime.HasStatusCode(resp, http.StatusOK) { return DisasterRecoveryConfigsClientBreakPairingResponse{}, runtime.NewResponseError(resp) } - return DisasterRecoveryConfigsClientBreakPairingResponse{RawResponse: resp}, nil + return DisasterRecoveryConfigsClientBreakPairingResponse{}, nil } // breakPairingCreateRequest creates the BreakPairing request. @@ -152,7 +157,7 @@ func (client *DisasterRecoveryConfigsClient) checkNameAvailabilityCreateRequest( // checkNameAvailabilityHandleResponse handles the CheckNameAvailability response. func (client *DisasterRecoveryConfigsClient) checkNameAvailabilityHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientCheckNameAvailabilityResponse, error) { - result := DisasterRecoveryConfigsClientCheckNameAvailabilityResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientCheckNameAvailabilityResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.CheckNameAvailabilityResult); err != nil { return DisasterRecoveryConfigsClientCheckNameAvailabilityResponse{}, err } @@ -214,7 +219,7 @@ func (client *DisasterRecoveryConfigsClient) createOrUpdateCreateRequest(ctx con // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *DisasterRecoveryConfigsClient) createOrUpdateHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientCreateOrUpdateResponse, error) { - result := DisasterRecoveryConfigsClientCreateOrUpdateResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ArmDisasterRecovery); err != nil { return DisasterRecoveryConfigsClientCreateOrUpdateResponse{}, err } @@ -240,7 +245,7 @@ func (client *DisasterRecoveryConfigsClient) Delete(ctx context.Context, resourc if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return DisasterRecoveryConfigsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return DisasterRecoveryConfigsClientDeleteResponse{RawResponse: resp}, nil + return DisasterRecoveryConfigsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -292,7 +297,7 @@ func (client *DisasterRecoveryConfigsClient) FailOver(ctx context.Context, resou if !runtime.HasStatusCode(resp, http.StatusOK) { return DisasterRecoveryConfigsClientFailOverResponse{}, runtime.NewResponseError(resp) } - return DisasterRecoveryConfigsClientFailOverResponse{RawResponse: resp}, nil + return DisasterRecoveryConfigsClientFailOverResponse{}, nil } // failOverCreateRequest creates the FailOver request. @@ -382,7 +387,7 @@ func (client *DisasterRecoveryConfigsClient) getCreateRequest(ctx context.Contex // getHandleResponse handles the Get response. func (client *DisasterRecoveryConfigsClient) getHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientGetResponse, error) { - result := DisasterRecoveryConfigsClientGetResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ArmDisasterRecovery); err != nil { return DisasterRecoveryConfigsClientGetResponse{}, err } @@ -448,7 +453,7 @@ func (client *DisasterRecoveryConfigsClient) getAuthorizationRuleCreateRequest(c // getAuthorizationRuleHandleResponse handles the GetAuthorizationRule response. func (client *DisasterRecoveryConfigsClient) getAuthorizationRuleHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientGetAuthorizationRuleResponse, error) { - result := DisasterRecoveryConfigsClientGetAuthorizationRuleResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientGetAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRule); err != nil { return DisasterRecoveryConfigsClientGetAuthorizationRuleResponse{}, err } @@ -461,16 +466,32 @@ func (client *DisasterRecoveryConfigsClient) getAuthorizationRuleHandleResponse( // namespaceName - The namespace name // options - DisasterRecoveryConfigsClientListOptions contains the optional parameters for the DisasterRecoveryConfigsClient.List // method. -func (client *DisasterRecoveryConfigsClient) List(resourceGroupName string, namespaceName string, options *DisasterRecoveryConfigsClientListOptions) *DisasterRecoveryConfigsClientListPager { - return &DisasterRecoveryConfigsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *DisasterRecoveryConfigsClient) List(resourceGroupName string, namespaceName string, options *DisasterRecoveryConfigsClientListOptions) *runtime.Pager[DisasterRecoveryConfigsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[DisasterRecoveryConfigsClientListResponse]{ + More: func(page DisasterRecoveryConfigsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp DisasterRecoveryConfigsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ArmDisasterRecoveryListResult.NextLink) + Fetcher: func(ctx context.Context, page *DisasterRecoveryConfigsClientListResponse) (DisasterRecoveryConfigsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return DisasterRecoveryConfigsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return DisasterRecoveryConfigsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DisasterRecoveryConfigsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -501,7 +522,7 @@ func (client *DisasterRecoveryConfigsClient) listCreateRequest(ctx context.Conte // listHandleResponse handles the List response. func (client *DisasterRecoveryConfigsClient) listHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientListResponse, error) { - result := DisasterRecoveryConfigsClientListResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ArmDisasterRecoveryListResult); err != nil { return DisasterRecoveryConfigsClientListResponse{}, err } @@ -515,16 +536,32 @@ func (client *DisasterRecoveryConfigsClient) listHandleResponse(resp *http.Respo // alias - The Disaster Recovery configuration name // options - DisasterRecoveryConfigsClientListAuthorizationRulesOptions contains the optional parameters for the DisasterRecoveryConfigsClient.ListAuthorizationRules // method. -func (client *DisasterRecoveryConfigsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientListAuthorizationRulesOptions) *DisasterRecoveryConfigsClientListAuthorizationRulesPager { - return &DisasterRecoveryConfigsClientListAuthorizationRulesPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, alias, options) +func (client *DisasterRecoveryConfigsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientListAuthorizationRulesOptions) *runtime.Pager[DisasterRecoveryConfigsClientListAuthorizationRulesResponse] { + return runtime.NewPager(runtime.PageProcessor[DisasterRecoveryConfigsClientListAuthorizationRulesResponse]{ + More: func(page DisasterRecoveryConfigsClientListAuthorizationRulesResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp DisasterRecoveryConfigsClientListAuthorizationRulesResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SBAuthorizationRuleListResult.NextLink) + Fetcher: func(ctx context.Context, page *DisasterRecoveryConfigsClientListAuthorizationRulesResponse) (DisasterRecoveryConfigsClientListAuthorizationRulesResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, alias, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return DisasterRecoveryConfigsClientListAuthorizationRulesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return DisasterRecoveryConfigsClientListAuthorizationRulesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DisasterRecoveryConfigsClientListAuthorizationRulesResponse{}, runtime.NewResponseError(resp) + } + return client.listAuthorizationRulesHandleResponse(resp) }, - } + }) } // listAuthorizationRulesCreateRequest creates the ListAuthorizationRules request. @@ -559,7 +596,7 @@ func (client *DisasterRecoveryConfigsClient) listAuthorizationRulesCreateRequest // listAuthorizationRulesHandleResponse handles the ListAuthorizationRules response. func (client *DisasterRecoveryConfigsClient) listAuthorizationRulesHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientListAuthorizationRulesResponse, error) { - result := DisasterRecoveryConfigsClientListAuthorizationRulesResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientListAuthorizationRulesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRuleListResult); err != nil { return DisasterRecoveryConfigsClientListAuthorizationRulesResponse{}, err } @@ -625,7 +662,7 @@ func (client *DisasterRecoveryConfigsClient) listKeysCreateRequest(ctx context.C // listKeysHandleResponse handles the ListKeys response. func (client *DisasterRecoveryConfigsClient) listKeysHandleResponse(resp *http.Response) (DisasterRecoveryConfigsClientListKeysResponse, error) { - result := DisasterRecoveryConfigsClientListKeysResponse{RawResponse: resp} + result := DisasterRecoveryConfigsClientListKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return DisasterRecoveryConfigsClientListKeysResponse{}, err } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go index 59ff7a2a4657..a3fdb72da1f5 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type MigrationConfigsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewMigrationConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *MigrationConfigsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewMigrationConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MigrationConfigsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &MigrationConfigsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CompleteMigration - This operation Completes Migration of entities by pointing the connection strings to Premium namespace @@ -71,7 +76,7 @@ func (client *MigrationConfigsClient) CompleteMigration(ctx context.Context, res if !runtime.HasStatusCode(resp, http.StatusOK) { return MigrationConfigsClientCompleteMigrationResponse{}, runtime.NewResponseError(resp) } - return MigrationConfigsClientCompleteMigrationResponse{RawResponse: resp}, nil + return MigrationConfigsClientCompleteMigrationResponse{}, nil } // completeMigrationCreateRequest creates the CompleteMigration request. @@ -113,22 +118,16 @@ func (client *MigrationConfigsClient) completeMigrationCreateRequest(ctx context // parameters - Parameters required to create Migration Configuration // options - MigrationConfigsClientBeginCreateAndStartMigrationOptions contains the optional parameters for the MigrationConfigsClient.BeginCreateAndStartMigration // method. -func (client *MigrationConfigsClient) BeginCreateAndStartMigration(ctx context.Context, resourceGroupName string, namespaceName string, configName MigrationConfigurationName, parameters MigrationConfigProperties, options *MigrationConfigsClientBeginCreateAndStartMigrationOptions) (MigrationConfigsClientCreateAndStartMigrationPollerResponse, error) { - resp, err := client.createAndStartMigration(ctx, resourceGroupName, namespaceName, configName, parameters, options) - if err != nil { - return MigrationConfigsClientCreateAndStartMigrationPollerResponse{}, err - } - result := MigrationConfigsClientCreateAndStartMigrationPollerResponse{ - RawResponse: resp, +func (client *MigrationConfigsClient) BeginCreateAndStartMigration(ctx context.Context, resourceGroupName string, namespaceName string, configName MigrationConfigurationName, parameters MigrationConfigProperties, options *MigrationConfigsClientBeginCreateAndStartMigrationOptions) (*armruntime.Poller[MigrationConfigsClientCreateAndStartMigrationResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createAndStartMigration(ctx, resourceGroupName, namespaceName, configName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[MigrationConfigsClientCreateAndStartMigrationResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[MigrationConfigsClientCreateAndStartMigrationResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("MigrationConfigsClient.CreateAndStartMigration", "", resp, client.pl) - if err != nil { - return MigrationConfigsClientCreateAndStartMigrationPollerResponse{}, err - } - result.Poller = &MigrationConfigsClientCreateAndStartMigrationPoller{ - pt: pt, - } - return result, nil } // CreateAndStartMigration - Creates Migration configuration and starts migration of entities from Standard to Premium namespace @@ -196,7 +195,7 @@ func (client *MigrationConfigsClient) Delete(ctx context.Context, resourceGroupN if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return MigrationConfigsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return MigrationConfigsClientDeleteResponse{RawResponse: resp}, nil + return MigrationConfigsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -282,7 +281,7 @@ func (client *MigrationConfigsClient) getCreateRequest(ctx context.Context, reso // getHandleResponse handles the Get response. func (client *MigrationConfigsClient) getHandleResponse(resp *http.Response) (MigrationConfigsClientGetResponse, error) { - result := MigrationConfigsClientGetResponse{RawResponse: resp} + result := MigrationConfigsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.MigrationConfigProperties); err != nil { return MigrationConfigsClientGetResponse{}, err } @@ -294,16 +293,32 @@ func (client *MigrationConfigsClient) getHandleResponse(resp *http.Response) (Mi // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - MigrationConfigsClientListOptions contains the optional parameters for the MigrationConfigsClient.List method. -func (client *MigrationConfigsClient) List(resourceGroupName string, namespaceName string, options *MigrationConfigsClientListOptions) *MigrationConfigsClientListPager { - return &MigrationConfigsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *MigrationConfigsClient) List(resourceGroupName string, namespaceName string, options *MigrationConfigsClientListOptions) *runtime.Pager[MigrationConfigsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[MigrationConfigsClientListResponse]{ + More: func(page MigrationConfigsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp MigrationConfigsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.MigrationConfigListResult.NextLink) + Fetcher: func(ctx context.Context, page *MigrationConfigsClientListResponse) (MigrationConfigsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return MigrationConfigsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return MigrationConfigsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return MigrationConfigsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -334,7 +349,7 @@ func (client *MigrationConfigsClient) listCreateRequest(ctx context.Context, res // listHandleResponse handles the List response. func (client *MigrationConfigsClient) listHandleResponse(resp *http.Response) (MigrationConfigsClientListResponse, error) { - result := MigrationConfigsClientListResponse{RawResponse: resp} + result := MigrationConfigsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.MigrationConfigListResult); err != nil { return MigrationConfigsClientListResponse{}, err } @@ -359,7 +374,7 @@ func (client *MigrationConfigsClient) Revert(ctx context.Context, resourceGroupN if !runtime.HasStatusCode(resp, http.StatusOK) { return MigrationConfigsClientRevertResponse{}, runtime.NewResponseError(resp) } - return MigrationConfigsClientRevertResponse{RawResponse: resp}, nil + return MigrationConfigsClientRevertResponse{}, nil } // revertCreateRequest creates the Revert request. diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models.go index 4c7b60358fc2..3dccd3450b93 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,7 @@ package armservicebus -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) +import "time" // AccessKeys - Namespace/ServiceBus Connection String type AccessKeys struct { @@ -82,14 +77,6 @@ type ArmDisasterRecoveryListResult struct { NextLink *string `json:"nextLink,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ArmDisasterRecoveryListResult. -func (a ArmDisasterRecoveryListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", a.NextLink) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - // ArmDisasterRecoveryProperties - Properties required to the Create Or Update Alias(Disaster Recovery configurations) type ArmDisasterRecoveryProperties struct { // Primary/Secondary eventhub namespace name, which is part of GEO DR pairing @@ -171,22 +158,6 @@ type CorrelationFilter struct { To *string `json:"to,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type CorrelationFilter. -func (c CorrelationFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "contentType", c.ContentType) - populate(objectMap, "correlationId", c.CorrelationID) - populate(objectMap, "label", c.Label) - populate(objectMap, "messageId", c.MessageID) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "replyTo", c.ReplyTo) - populate(objectMap, "replyToSessionId", c.ReplyToSessionID) - populate(objectMap, "requiresPreprocessing", c.RequiresPreprocessing) - populate(objectMap, "sessionId", c.SessionID) - populate(objectMap, "to", c.To) - return json.Marshal(objectMap) -} - // DisasterRecoveryConfigsClientBreakPairingOptions contains the optional parameters for the DisasterRecoveryConfigsClient.BreakPairing // method. type DisasterRecoveryConfigsClientBreakPairingOptions struct { @@ -258,19 +229,10 @@ type Encryption struct { RequireInfrastructureEncryption *bool `json:"requireInfrastructureEncryption,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type Encryption. -func (e Encryption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "keySource", e.KeySource) - populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) - populate(objectMap, "requireInfrastructureEncryption", e.RequireInfrastructureEncryption) - return json.Marshal(objectMap) -} - // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info map[string]interface{} `json:"info,omitempty" azure:"ro"` + Info interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -300,17 +262,6 @@ type ErrorResponseError struct { Target *string `json:"target,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ErrorResponseError. -func (e ErrorResponseError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalInfo", e.AdditionalInfo) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "message", e.Message) - populate(objectMap, "target", e.Target) - return json.Marshal(objectMap) -} - // FailoverProperties - Safe failover is to indicate the service should wait for pending replication to finish before switching // to the secondary. type FailoverProperties struct { @@ -340,16 +291,6 @@ type Identity struct { TenantID *string `json:"tenantId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Identity. -func (i Identity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", i.PrincipalID) - populate(objectMap, "tenantId", i.TenantID) - populate(objectMap, "type", i.Type) - populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) - return json.Marshal(objectMap) -} - // KeyVaultProperties - Properties to configure keyVault Properties type KeyVaultProperties struct { Identity *UserAssignedIdentityProperties `json:"identity,omitempty"` @@ -391,14 +332,6 @@ type MigrationConfigListResult struct { NextLink *string `json:"nextLink,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type MigrationConfigListResult. -func (m MigrationConfigListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", m.NextLink) - populate(objectMap, "value", m.Value) - return json.Marshal(objectMap) -} - // MigrationConfigProperties - Single item in List or Get Migration Config operation type MigrationConfigProperties struct { // Properties required to the Create Migration Configuration @@ -442,7 +375,8 @@ type MigrationConfigPropertiesProperties struct { // MigrationConfigsClientBeginCreateAndStartMigrationOptions contains the optional parameters for the MigrationConfigsClient.BeginCreateAndStartMigration // method. type MigrationConfigsClientBeginCreateAndStartMigrationOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // MigrationConfigsClientCompleteMigrationOptions contains the optional parameters for the MigrationConfigsClient.CompleteMigration @@ -492,12 +426,14 @@ type NWRuleSetVirtualNetworkRules struct { // NamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespacesClient.BeginCreateOrUpdate // method. type NamespacesClientBeginCreateOrUpdateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // NamespacesClientBeginDeleteOptions contains the optional parameters for the NamespacesClient.BeginDelete method. type NamespacesClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // NamespacesClientCheckNameAvailabilityOptions contains the optional parameters for the NamespacesClient.CheckNameAvailability @@ -608,14 +544,6 @@ type NetworkRuleSetListResult struct { Value []*NetworkRuleSet `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetListResult. -func (n NetworkRuleSetListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", n.NextLink) - populate(objectMap, "value", n.Value) - return json.Marshal(objectMap) -} - // NetworkRuleSetProperties - NetworkRuleSet properties type NetworkRuleSetProperties struct { // Default Action for Network Rule Set @@ -634,17 +562,6 @@ type NetworkRuleSetProperties struct { VirtualNetworkRules []*NWRuleSetVirtualNetworkRules `json:"virtualNetworkRules,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetProperties. -func (n NetworkRuleSetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "defaultAction", n.DefaultAction) - populate(objectMap, "ipRules", n.IPRules) - populate(objectMap, "publicNetworkAccess", n.PublicNetworkAccess) - populate(objectMap, "trustedServiceAccessEnabled", n.TrustedServiceAccessEnabled) - populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) - return json.Marshal(objectMap) -} - // Operation - A Service Bus REST API operation type Operation struct { // Display of the operation @@ -657,7 +574,7 @@ type Operation struct { Origin *string `json:"origin,omitempty"` // Properties of the operation - Properties map[string]interface{} `json:"properties,omitempty"` + Properties interface{} `json:"properties,omitempty"` // READ-ONLY; Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty" azure:"ro"` @@ -688,14 +605,6 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. type OperationsClientListOptions struct { // placeholder for future optional parameters @@ -737,14 +646,6 @@ type PrivateEndpointConnectionListResult struct { Value []*PrivateEndpointConnection `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. -func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - // PrivateEndpointConnectionProperties - Properties of the private endpoint connection resource. type PrivateEndpointConnectionProperties struct { // The Private Endpoint resource for this Connection. @@ -760,7 +661,8 @@ type PrivateEndpointConnectionProperties struct { // PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete // method. type PrivateEndpointConnectionsClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // PrivateEndpointConnectionsClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.CreateOrUpdate @@ -807,15 +709,6 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. -func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "groupId", p.GroupID) - populate(objectMap, "requiredMembers", p.RequiredMembers) - populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) - return json.Marshal(objectMap) -} - // PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method. type PrivateLinkResourcesClientGetOptions struct { // placeholder for future optional parameters @@ -830,14 +723,6 @@ type PrivateLinkResourcesListResult struct { Value []*PrivateLinkResource `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesListResult. -func (p PrivateLinkResourcesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - // ProxyResource - Common fields that are returned in the response for all Azure Resource Manager resources type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -951,17 +836,6 @@ type ResourceNamespacePatch struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ResourceNamespacePatch. -func (r ResourceNamespacePatch) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - // Rule - Description of Rule Resource. type Rule struct { // Properties of Rule resource @@ -992,14 +866,6 @@ type RuleListResult struct { Value []*Rule `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type RuleListResult. -func (r RuleListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", r.NextLink) - populate(objectMap, "value", r.Value) - return json.Marshal(objectMap) -} - // Ruleproperties - Description of Rule Resource. type Ruleproperties struct { // Represents the filter actions which are allowed for the transformation of a message that have been matched by a filter @@ -1071,27 +937,12 @@ type SBAuthorizationRuleListResult struct { Value []*SBAuthorizationRule `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SBAuthorizationRuleListResult. -func (s SBAuthorizationRuleListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // SBAuthorizationRuleProperties - AuthorizationRule properties. type SBAuthorizationRuleProperties struct { // REQUIRED; The rights associated with the rule. Rights []*AccessRights `json:"rights,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SBAuthorizationRuleProperties. -func (s SBAuthorizationRuleProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "rights", s.Rights) - return json.Marshal(objectMap) -} - // SBClientAffineProperties - Properties specific to client affine subscriptions. type SBClientAffineProperties struct { // Indicates the Client ID of the application that created the client-affine subscription. @@ -1134,21 +985,6 @@ type SBNamespace struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SBNamespace. -func (s SBNamespace) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) - populate(objectMap, "location", s.Location) - populate(objectMap, "name", s.Name) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "sku", s.SKU) - populate(objectMap, "systemData", s.SystemData) - populate(objectMap, "tags", s.Tags) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - // SBNamespaceListResult - The response of the List Namespace operation. type SBNamespaceListResult struct { // Link to the next set of results. Not empty if Value contains incomplete list of Namespaces. @@ -1158,14 +994,6 @@ type SBNamespaceListResult struct { Value []*SBNamespace `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SBNamespaceListResult. -func (s SBNamespaceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // SBNamespaceProperties - Properties of the namespace. type SBNamespaceProperties struct { // Alternate name for namespace @@ -1202,73 +1030,6 @@ type SBNamespaceProperties struct { UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SBNamespaceProperties. -func (s SBNamespaceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "alternateName", s.AlternateName) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "disableLocalAuth", s.DisableLocalAuth) - populate(objectMap, "encryption", s.Encryption) - populate(objectMap, "metricId", s.MetricID) - populate(objectMap, "privateEndpointConnections", s.PrivateEndpointConnections) - populate(objectMap, "provisioningState", s.ProvisioningState) - populate(objectMap, "serviceBusEndpoint", s.ServiceBusEndpoint) - populate(objectMap, "status", s.Status) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - populate(objectMap, "zoneRedundant", s.ZoneRedundant) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceProperties. -func (s *SBNamespaceProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "alternateName": - err = unpopulate(val, &s.AlternateName) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "disableLocalAuth": - err = unpopulate(val, &s.DisableLocalAuth) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, &s.Encryption) - delete(rawMsg, key) - case "metricId": - err = unpopulate(val, &s.MetricID) - delete(rawMsg, key) - case "privateEndpointConnections": - err = unpopulate(val, &s.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, &s.ProvisioningState) - delete(rawMsg, key) - case "serviceBusEndpoint": - err = unpopulate(val, &s.ServiceBusEndpoint) - delete(rawMsg, key) - case "status": - err = unpopulate(val, &s.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, &s.UpdatedAt) - delete(rawMsg, key) - case "zoneRedundant": - err = unpopulate(val, &s.ZoneRedundant) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // SBNamespaceUpdateParameters - Description of a namespace resource. type SBNamespaceUpdateParameters struct { // Properties of BYOK Identity description @@ -1296,20 +1057,6 @@ type SBNamespaceUpdateParameters struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SBNamespaceUpdateParameters. -func (s SBNamespaceUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) - populate(objectMap, "location", s.Location) - populate(objectMap, "name", s.Name) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "sku", s.SKU) - populate(objectMap, "tags", s.Tags) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - // SBNamespaceUpdateProperties - Properties of the namespace. type SBNamespaceUpdateProperties struct { // Alternate name for namespace @@ -1343,69 +1090,6 @@ type SBNamespaceUpdateProperties struct { UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SBNamespaceUpdateProperties. -func (s SBNamespaceUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "alternateName", s.AlternateName) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "disableLocalAuth", s.DisableLocalAuth) - populate(objectMap, "encryption", s.Encryption) - populate(objectMap, "metricId", s.MetricID) - populate(objectMap, "privateEndpointConnections", s.PrivateEndpointConnections) - populate(objectMap, "provisioningState", s.ProvisioningState) - populate(objectMap, "serviceBusEndpoint", s.ServiceBusEndpoint) - populate(objectMap, "status", s.Status) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceUpdateProperties. -func (s *SBNamespaceUpdateProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "alternateName": - err = unpopulate(val, &s.AlternateName) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "disableLocalAuth": - err = unpopulate(val, &s.DisableLocalAuth) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, &s.Encryption) - delete(rawMsg, key) - case "metricId": - err = unpopulate(val, &s.MetricID) - delete(rawMsg, key) - case "privateEndpointConnections": - err = unpopulate(val, &s.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, &s.ProvisioningState) - delete(rawMsg, key) - case "serviceBusEndpoint": - err = unpopulate(val, &s.ServiceBusEndpoint) - delete(rawMsg, key) - case "status": - err = unpopulate(val, &s.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, &s.UpdatedAt) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // SBQueue - Description of queue Resource. type SBQueue struct { // Queue Properties @@ -1436,14 +1120,6 @@ type SBQueueListResult struct { Value []*SBQueue `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SBQueueListResult. -func (s SBQueueListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // SBQueueProperties - The Queue Properties definition. type SBQueueProperties struct { // ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes. @@ -1518,117 +1194,6 @@ type SBQueueProperties struct { UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SBQueueProperties. -func (s SBQueueProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) - populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) - populate(objectMap, "countDetails", s.CountDetails) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "deadLetteringOnMessageExpiration", s.DeadLetteringOnMessageExpiration) - populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) - populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) - populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) - populate(objectMap, "enableExpress", s.EnableExpress) - populate(objectMap, "enablePartitioning", s.EnablePartitioning) - populate(objectMap, "forwardDeadLetteredMessagesTo", s.ForwardDeadLetteredMessagesTo) - populate(objectMap, "forwardTo", s.ForwardTo) - populate(objectMap, "lockDuration", s.LockDuration) - populate(objectMap, "maxDeliveryCount", s.MaxDeliveryCount) - populate(objectMap, "maxMessageSizeInKilobytes", s.MaxMessageSizeInKilobytes) - populate(objectMap, "maxSizeInMegabytes", s.MaxSizeInMegabytes) - populate(objectMap, "messageCount", s.MessageCount) - populate(objectMap, "requiresDuplicateDetection", s.RequiresDuplicateDetection) - populate(objectMap, "requiresSession", s.RequiresSession) - populate(objectMap, "sizeInBytes", s.SizeInBytes) - populate(objectMap, "status", s.Status) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBQueueProperties. -func (s *SBQueueProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "accessedAt": - err = unpopulateTimeRFC3339(val, &s.AccessedAt) - delete(rawMsg, key) - case "autoDeleteOnIdle": - err = unpopulate(val, &s.AutoDeleteOnIdle) - delete(rawMsg, key) - case "countDetails": - err = unpopulate(val, &s.CountDetails) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "deadLetteringOnMessageExpiration": - err = unpopulate(val, &s.DeadLetteringOnMessageExpiration) - delete(rawMsg, key) - case "defaultMessageTimeToLive": - err = unpopulate(val, &s.DefaultMessageTimeToLive) - delete(rawMsg, key) - case "duplicateDetectionHistoryTimeWindow": - err = unpopulate(val, &s.DuplicateDetectionHistoryTimeWindow) - delete(rawMsg, key) - case "enableBatchedOperations": - err = unpopulate(val, &s.EnableBatchedOperations) - delete(rawMsg, key) - case "enableExpress": - err = unpopulate(val, &s.EnableExpress) - delete(rawMsg, key) - case "enablePartitioning": - err = unpopulate(val, &s.EnablePartitioning) - delete(rawMsg, key) - case "forwardDeadLetteredMessagesTo": - err = unpopulate(val, &s.ForwardDeadLetteredMessagesTo) - delete(rawMsg, key) - case "forwardTo": - err = unpopulate(val, &s.ForwardTo) - delete(rawMsg, key) - case "lockDuration": - err = unpopulate(val, &s.LockDuration) - delete(rawMsg, key) - case "maxDeliveryCount": - err = unpopulate(val, &s.MaxDeliveryCount) - delete(rawMsg, key) - case "maxMessageSizeInKilobytes": - err = unpopulate(val, &s.MaxMessageSizeInKilobytes) - delete(rawMsg, key) - case "maxSizeInMegabytes": - err = unpopulate(val, &s.MaxSizeInMegabytes) - delete(rawMsg, key) - case "messageCount": - err = unpopulate(val, &s.MessageCount) - delete(rawMsg, key) - case "requiresDuplicateDetection": - err = unpopulate(val, &s.RequiresDuplicateDetection) - delete(rawMsg, key) - case "requiresSession": - err = unpopulate(val, &s.RequiresSession) - delete(rawMsg, key) - case "sizeInBytes": - err = unpopulate(val, &s.SizeInBytes) - delete(rawMsg, key) - case "status": - err = unpopulate(val, &s.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, &s.UpdatedAt) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // SBSKU - SKU of the namespace. type SBSKU struct { // REQUIRED; Name of this SKU. @@ -1671,14 +1236,6 @@ type SBSubscriptionListResult struct { Value []*SBSubscription `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SBSubscriptionListResult. -func (s SBSubscriptionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // SBSubscriptionProperties - Description of Subscription Resource. type SBSubscriptionProperties struct { // ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes. @@ -1741,105 +1298,6 @@ type SBSubscriptionProperties struct { UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SBSubscriptionProperties. -func (s SBSubscriptionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) - populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) - populate(objectMap, "clientAffineProperties", s.ClientAffineProperties) - populate(objectMap, "countDetails", s.CountDetails) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "deadLetteringOnFilterEvaluationExceptions", s.DeadLetteringOnFilterEvaluationExceptions) - populate(objectMap, "deadLetteringOnMessageExpiration", s.DeadLetteringOnMessageExpiration) - populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) - populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) - populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) - populate(objectMap, "forwardDeadLetteredMessagesTo", s.ForwardDeadLetteredMessagesTo) - populate(objectMap, "forwardTo", s.ForwardTo) - populate(objectMap, "isClientAffine", s.IsClientAffine) - populate(objectMap, "lockDuration", s.LockDuration) - populate(objectMap, "maxDeliveryCount", s.MaxDeliveryCount) - populate(objectMap, "messageCount", s.MessageCount) - populate(objectMap, "requiresSession", s.RequiresSession) - populate(objectMap, "status", s.Status) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBSubscriptionProperties. -func (s *SBSubscriptionProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "accessedAt": - err = unpopulateTimeRFC3339(val, &s.AccessedAt) - delete(rawMsg, key) - case "autoDeleteOnIdle": - err = unpopulate(val, &s.AutoDeleteOnIdle) - delete(rawMsg, key) - case "clientAffineProperties": - err = unpopulate(val, &s.ClientAffineProperties) - delete(rawMsg, key) - case "countDetails": - err = unpopulate(val, &s.CountDetails) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "deadLetteringOnFilterEvaluationExceptions": - err = unpopulate(val, &s.DeadLetteringOnFilterEvaluationExceptions) - delete(rawMsg, key) - case "deadLetteringOnMessageExpiration": - err = unpopulate(val, &s.DeadLetteringOnMessageExpiration) - delete(rawMsg, key) - case "defaultMessageTimeToLive": - err = unpopulate(val, &s.DefaultMessageTimeToLive) - delete(rawMsg, key) - case "duplicateDetectionHistoryTimeWindow": - err = unpopulate(val, &s.DuplicateDetectionHistoryTimeWindow) - delete(rawMsg, key) - case "enableBatchedOperations": - err = unpopulate(val, &s.EnableBatchedOperations) - delete(rawMsg, key) - case "forwardDeadLetteredMessagesTo": - err = unpopulate(val, &s.ForwardDeadLetteredMessagesTo) - delete(rawMsg, key) - case "forwardTo": - err = unpopulate(val, &s.ForwardTo) - delete(rawMsg, key) - case "isClientAffine": - err = unpopulate(val, &s.IsClientAffine) - delete(rawMsg, key) - case "lockDuration": - err = unpopulate(val, &s.LockDuration) - delete(rawMsg, key) - case "maxDeliveryCount": - err = unpopulate(val, &s.MaxDeliveryCount) - delete(rawMsg, key) - case "messageCount": - err = unpopulate(val, &s.MessageCount) - delete(rawMsg, key) - case "requiresSession": - err = unpopulate(val, &s.RequiresSession) - delete(rawMsg, key) - case "status": - err = unpopulate(val, &s.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, &s.UpdatedAt) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // SBTopic - Description of topic resource. type SBTopic struct { // Properties of topic resource. @@ -1870,14 +1328,6 @@ type SBTopicListResult struct { Value []*SBTopic `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SBTopicListResult. -func (s SBTopicListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // SBTopicProperties - The Topic Properties definition. type SBTopicProperties struct { // ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes. @@ -1936,97 +1386,6 @@ type SBTopicProperties struct { UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SBTopicProperties. -func (s SBTopicProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) - populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) - populate(objectMap, "countDetails", s.CountDetails) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) - populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) - populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) - populate(objectMap, "enableExpress", s.EnableExpress) - populate(objectMap, "enablePartitioning", s.EnablePartitioning) - populate(objectMap, "maxMessageSizeInKilobytes", s.MaxMessageSizeInKilobytes) - populate(objectMap, "maxSizeInMegabytes", s.MaxSizeInMegabytes) - populate(objectMap, "requiresDuplicateDetection", s.RequiresDuplicateDetection) - populate(objectMap, "sizeInBytes", s.SizeInBytes) - populate(objectMap, "status", s.Status) - populate(objectMap, "subscriptionCount", s.SubscriptionCount) - populate(objectMap, "supportOrdering", s.SupportOrdering) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBTopicProperties. -func (s *SBTopicProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "accessedAt": - err = unpopulateTimeRFC3339(val, &s.AccessedAt) - delete(rawMsg, key) - case "autoDeleteOnIdle": - err = unpopulate(val, &s.AutoDeleteOnIdle) - delete(rawMsg, key) - case "countDetails": - err = unpopulate(val, &s.CountDetails) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "defaultMessageTimeToLive": - err = unpopulate(val, &s.DefaultMessageTimeToLive) - delete(rawMsg, key) - case "duplicateDetectionHistoryTimeWindow": - err = unpopulate(val, &s.DuplicateDetectionHistoryTimeWindow) - delete(rawMsg, key) - case "enableBatchedOperations": - err = unpopulate(val, &s.EnableBatchedOperations) - delete(rawMsg, key) - case "enableExpress": - err = unpopulate(val, &s.EnableExpress) - delete(rawMsg, key) - case "enablePartitioning": - err = unpopulate(val, &s.EnablePartitioning) - delete(rawMsg, key) - case "maxMessageSizeInKilobytes": - err = unpopulate(val, &s.MaxMessageSizeInKilobytes) - delete(rawMsg, key) - case "maxSizeInMegabytes": - err = unpopulate(val, &s.MaxSizeInMegabytes) - delete(rawMsg, key) - case "requiresDuplicateDetection": - err = unpopulate(val, &s.RequiresDuplicateDetection) - delete(rawMsg, key) - case "sizeInBytes": - err = unpopulate(val, &s.SizeInBytes) - delete(rawMsg, key) - case "status": - err = unpopulate(val, &s.Status) - delete(rawMsg, key) - case "subscriptionCount": - err = unpopulate(val, &s.SubscriptionCount) - delete(rawMsg, key) - case "supportOrdering": - err = unpopulate(val, &s.SupportOrdering) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, &s.UpdatedAt) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // SQLFilter - Represents a filter which is a composition of an expression and an action that is executed in the pub/sub pipeline. type SQLFilter struct { // This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20. @@ -2103,53 +1462,6 @@ type SystemData struct { LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // TopicsClientCreateOrUpdateAuthorizationRuleOptions contains the optional parameters for the TopicsClient.CreateOrUpdateAuthorizationRule // method. type TopicsClientCreateOrUpdateAuthorizationRuleOptions struct { @@ -2226,17 +1538,6 @@ type TrackedResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TrackedResource. -func (t TrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "location", t.Location) - populate(objectMap, "name", t.Name) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - // UserAssignedIdentity - Recognized Dictionary value. type UserAssignedIdentity struct { // READ-ONLY; Client Id of user assigned identity @@ -2250,20 +1551,3 @@ type UserAssignedIdentityProperties struct { // ARM ID of user Identity selected for encryption UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, v interface{}) error { - if data == nil { - return nil - } - return json.Unmarshal(data, v) -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models_serde.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models_serde.go new file mode 100644 index 000000000000..3475c03a0122 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models_serde.go @@ -0,0 +1,730 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armservicebus + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type ArmDisasterRecoveryListResult. +func (a ArmDisasterRecoveryListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type CorrelationFilter. +func (c CorrelationFilter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "contentType", c.ContentType) + populate(objectMap, "correlationId", c.CorrelationID) + populate(objectMap, "label", c.Label) + populate(objectMap, "messageId", c.MessageID) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "replyTo", c.ReplyTo) + populate(objectMap, "replyToSessionId", c.ReplyToSessionID) + populate(objectMap, "requiresPreprocessing", c.RequiresPreprocessing) + populate(objectMap, "sessionId", c.SessionID) + populate(objectMap, "to", c.To) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Encryption. +func (e Encryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "keySource", e.KeySource) + populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) + populate(objectMap, "requireInfrastructureEncryption", e.RequireInfrastructureEncryption) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorResponseError. +func (e ErrorResponseError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Identity. +func (i Identity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "principalId", i.PrincipalID) + populate(objectMap, "tenantId", i.TenantID) + populate(objectMap, "type", i.Type) + populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type MigrationConfigListResult. +func (m MigrationConfigListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetListResult. +func (n NetworkRuleSetListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", n.NextLink) + populate(objectMap, "value", n.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetProperties. +func (n NetworkRuleSetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "defaultAction", n.DefaultAction) + populate(objectMap, "ipRules", n.IPRules) + populate(objectMap, "publicNetworkAccess", n.PublicNetworkAccess) + populate(objectMap, "trustedServiceAccessEnabled", n.TrustedServiceAccessEnabled) + populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. +func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. +func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "groupId", p.GroupID) + populate(objectMap, "requiredMembers", p.RequiredMembers) + populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesListResult. +func (p PrivateLinkResourcesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ResourceNamespacePatch. +func (r ResourceNamespacePatch) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", r.ID) + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type RuleListResult. +func (r RuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SBAuthorizationRuleListResult. +func (s SBAuthorizationRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SBAuthorizationRuleProperties. +func (s SBAuthorizationRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "rights", s.Rights) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespace. +func (s SBNamespace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", s.ID) + populate(objectMap, "identity", s.Identity) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "sku", s.SKU) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespaceListResult. +func (s SBNamespaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespaceProperties. +func (s SBNamespaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "alternateName", s.AlternateName) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "disableLocalAuth", s.DisableLocalAuth) + populate(objectMap, "encryption", s.Encryption) + populate(objectMap, "metricId", s.MetricID) + populate(objectMap, "privateEndpointConnections", s.PrivateEndpointConnections) + populate(objectMap, "provisioningState", s.ProvisioningState) + populate(objectMap, "serviceBusEndpoint", s.ServiceBusEndpoint) + populate(objectMap, "status", s.Status) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + populate(objectMap, "zoneRedundant", s.ZoneRedundant) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceProperties. +func (s *SBNamespaceProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "alternateName": + err = unpopulate(val, &s.AlternateName) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "disableLocalAuth": + err = unpopulate(val, &s.DisableLocalAuth) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, &s.Encryption) + delete(rawMsg, key) + case "metricId": + err = unpopulate(val, &s.MetricID) + delete(rawMsg, key) + case "privateEndpointConnections": + err = unpopulate(val, &s.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, &s.ProvisioningState) + delete(rawMsg, key) + case "serviceBusEndpoint": + err = unpopulate(val, &s.ServiceBusEndpoint) + delete(rawMsg, key) + case "status": + err = unpopulate(val, &s.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, &s.UpdatedAt) + delete(rawMsg, key) + case "zoneRedundant": + err = unpopulate(val, &s.ZoneRedundant) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespaceUpdateParameters. +func (s SBNamespaceUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", s.ID) + populate(objectMap, "identity", s.Identity) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "sku", s.SKU) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespaceUpdateProperties. +func (s SBNamespaceUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "alternateName", s.AlternateName) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "disableLocalAuth", s.DisableLocalAuth) + populate(objectMap, "encryption", s.Encryption) + populate(objectMap, "metricId", s.MetricID) + populate(objectMap, "privateEndpointConnections", s.PrivateEndpointConnections) + populate(objectMap, "provisioningState", s.ProvisioningState) + populate(objectMap, "serviceBusEndpoint", s.ServiceBusEndpoint) + populate(objectMap, "status", s.Status) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceUpdateProperties. +func (s *SBNamespaceUpdateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "alternateName": + err = unpopulate(val, &s.AlternateName) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "disableLocalAuth": + err = unpopulate(val, &s.DisableLocalAuth) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, &s.Encryption) + delete(rawMsg, key) + case "metricId": + err = unpopulate(val, &s.MetricID) + delete(rawMsg, key) + case "privateEndpointConnections": + err = unpopulate(val, &s.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, &s.ProvisioningState) + delete(rawMsg, key) + case "serviceBusEndpoint": + err = unpopulate(val, &s.ServiceBusEndpoint) + delete(rawMsg, key) + case "status": + err = unpopulate(val, &s.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, &s.UpdatedAt) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBQueueListResult. +func (s SBQueueListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SBQueueProperties. +func (s SBQueueProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) + populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) + populate(objectMap, "countDetails", s.CountDetails) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "deadLetteringOnMessageExpiration", s.DeadLetteringOnMessageExpiration) + populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) + populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) + populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) + populate(objectMap, "enableExpress", s.EnableExpress) + populate(objectMap, "enablePartitioning", s.EnablePartitioning) + populate(objectMap, "forwardDeadLetteredMessagesTo", s.ForwardDeadLetteredMessagesTo) + populate(objectMap, "forwardTo", s.ForwardTo) + populate(objectMap, "lockDuration", s.LockDuration) + populate(objectMap, "maxDeliveryCount", s.MaxDeliveryCount) + populate(objectMap, "maxMessageSizeInKilobytes", s.MaxMessageSizeInKilobytes) + populate(objectMap, "maxSizeInMegabytes", s.MaxSizeInMegabytes) + populate(objectMap, "messageCount", s.MessageCount) + populate(objectMap, "requiresDuplicateDetection", s.RequiresDuplicateDetection) + populate(objectMap, "requiresSession", s.RequiresSession) + populate(objectMap, "sizeInBytes", s.SizeInBytes) + populate(objectMap, "status", s.Status) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBQueueProperties. +func (s *SBQueueProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "accessedAt": + err = unpopulateTimeRFC3339(val, &s.AccessedAt) + delete(rawMsg, key) + case "autoDeleteOnIdle": + err = unpopulate(val, &s.AutoDeleteOnIdle) + delete(rawMsg, key) + case "countDetails": + err = unpopulate(val, &s.CountDetails) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "deadLetteringOnMessageExpiration": + err = unpopulate(val, &s.DeadLetteringOnMessageExpiration) + delete(rawMsg, key) + case "defaultMessageTimeToLive": + err = unpopulate(val, &s.DefaultMessageTimeToLive) + delete(rawMsg, key) + case "duplicateDetectionHistoryTimeWindow": + err = unpopulate(val, &s.DuplicateDetectionHistoryTimeWindow) + delete(rawMsg, key) + case "enableBatchedOperations": + err = unpopulate(val, &s.EnableBatchedOperations) + delete(rawMsg, key) + case "enableExpress": + err = unpopulate(val, &s.EnableExpress) + delete(rawMsg, key) + case "enablePartitioning": + err = unpopulate(val, &s.EnablePartitioning) + delete(rawMsg, key) + case "forwardDeadLetteredMessagesTo": + err = unpopulate(val, &s.ForwardDeadLetteredMessagesTo) + delete(rawMsg, key) + case "forwardTo": + err = unpopulate(val, &s.ForwardTo) + delete(rawMsg, key) + case "lockDuration": + err = unpopulate(val, &s.LockDuration) + delete(rawMsg, key) + case "maxDeliveryCount": + err = unpopulate(val, &s.MaxDeliveryCount) + delete(rawMsg, key) + case "maxMessageSizeInKilobytes": + err = unpopulate(val, &s.MaxMessageSizeInKilobytes) + delete(rawMsg, key) + case "maxSizeInMegabytes": + err = unpopulate(val, &s.MaxSizeInMegabytes) + delete(rawMsg, key) + case "messageCount": + err = unpopulate(val, &s.MessageCount) + delete(rawMsg, key) + case "requiresDuplicateDetection": + err = unpopulate(val, &s.RequiresDuplicateDetection) + delete(rawMsg, key) + case "requiresSession": + err = unpopulate(val, &s.RequiresSession) + delete(rawMsg, key) + case "sizeInBytes": + err = unpopulate(val, &s.SizeInBytes) + delete(rawMsg, key) + case "status": + err = unpopulate(val, &s.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, &s.UpdatedAt) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBSubscriptionListResult. +func (s SBSubscriptionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SBSubscriptionProperties. +func (s SBSubscriptionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) + populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) + populate(objectMap, "clientAffineProperties", s.ClientAffineProperties) + populate(objectMap, "countDetails", s.CountDetails) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "deadLetteringOnFilterEvaluationExceptions", s.DeadLetteringOnFilterEvaluationExceptions) + populate(objectMap, "deadLetteringOnMessageExpiration", s.DeadLetteringOnMessageExpiration) + populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) + populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) + populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) + populate(objectMap, "forwardDeadLetteredMessagesTo", s.ForwardDeadLetteredMessagesTo) + populate(objectMap, "forwardTo", s.ForwardTo) + populate(objectMap, "isClientAffine", s.IsClientAffine) + populate(objectMap, "lockDuration", s.LockDuration) + populate(objectMap, "maxDeliveryCount", s.MaxDeliveryCount) + populate(objectMap, "messageCount", s.MessageCount) + populate(objectMap, "requiresSession", s.RequiresSession) + populate(objectMap, "status", s.Status) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBSubscriptionProperties. +func (s *SBSubscriptionProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "accessedAt": + err = unpopulateTimeRFC3339(val, &s.AccessedAt) + delete(rawMsg, key) + case "autoDeleteOnIdle": + err = unpopulate(val, &s.AutoDeleteOnIdle) + delete(rawMsg, key) + case "clientAffineProperties": + err = unpopulate(val, &s.ClientAffineProperties) + delete(rawMsg, key) + case "countDetails": + err = unpopulate(val, &s.CountDetails) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "deadLetteringOnFilterEvaluationExceptions": + err = unpopulate(val, &s.DeadLetteringOnFilterEvaluationExceptions) + delete(rawMsg, key) + case "deadLetteringOnMessageExpiration": + err = unpopulate(val, &s.DeadLetteringOnMessageExpiration) + delete(rawMsg, key) + case "defaultMessageTimeToLive": + err = unpopulate(val, &s.DefaultMessageTimeToLive) + delete(rawMsg, key) + case "duplicateDetectionHistoryTimeWindow": + err = unpopulate(val, &s.DuplicateDetectionHistoryTimeWindow) + delete(rawMsg, key) + case "enableBatchedOperations": + err = unpopulate(val, &s.EnableBatchedOperations) + delete(rawMsg, key) + case "forwardDeadLetteredMessagesTo": + err = unpopulate(val, &s.ForwardDeadLetteredMessagesTo) + delete(rawMsg, key) + case "forwardTo": + err = unpopulate(val, &s.ForwardTo) + delete(rawMsg, key) + case "isClientAffine": + err = unpopulate(val, &s.IsClientAffine) + delete(rawMsg, key) + case "lockDuration": + err = unpopulate(val, &s.LockDuration) + delete(rawMsg, key) + case "maxDeliveryCount": + err = unpopulate(val, &s.MaxDeliveryCount) + delete(rawMsg, key) + case "messageCount": + err = unpopulate(val, &s.MessageCount) + delete(rawMsg, key) + case "requiresSession": + err = unpopulate(val, &s.RequiresSession) + delete(rawMsg, key) + case "status": + err = unpopulate(val, &s.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, &s.UpdatedAt) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBTopicListResult. +func (s SBTopicListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SBTopicProperties. +func (s SBTopicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) + populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) + populate(objectMap, "countDetails", s.CountDetails) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) + populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) + populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) + populate(objectMap, "enableExpress", s.EnableExpress) + populate(objectMap, "enablePartitioning", s.EnablePartitioning) + populate(objectMap, "maxMessageSizeInKilobytes", s.MaxMessageSizeInKilobytes) + populate(objectMap, "maxSizeInMegabytes", s.MaxSizeInMegabytes) + populate(objectMap, "requiresDuplicateDetection", s.RequiresDuplicateDetection) + populate(objectMap, "sizeInBytes", s.SizeInBytes) + populate(objectMap, "status", s.Status) + populate(objectMap, "subscriptionCount", s.SubscriptionCount) + populate(objectMap, "supportOrdering", s.SupportOrdering) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBTopicProperties. +func (s *SBTopicProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "accessedAt": + err = unpopulateTimeRFC3339(val, &s.AccessedAt) + delete(rawMsg, key) + case "autoDeleteOnIdle": + err = unpopulate(val, &s.AutoDeleteOnIdle) + delete(rawMsg, key) + case "countDetails": + err = unpopulate(val, &s.CountDetails) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "defaultMessageTimeToLive": + err = unpopulate(val, &s.DefaultMessageTimeToLive) + delete(rawMsg, key) + case "duplicateDetectionHistoryTimeWindow": + err = unpopulate(val, &s.DuplicateDetectionHistoryTimeWindow) + delete(rawMsg, key) + case "enableBatchedOperations": + err = unpopulate(val, &s.EnableBatchedOperations) + delete(rawMsg, key) + case "enableExpress": + err = unpopulate(val, &s.EnableExpress) + delete(rawMsg, key) + case "enablePartitioning": + err = unpopulate(val, &s.EnablePartitioning) + delete(rawMsg, key) + case "maxMessageSizeInKilobytes": + err = unpopulate(val, &s.MaxMessageSizeInKilobytes) + delete(rawMsg, key) + case "maxSizeInMegabytes": + err = unpopulate(val, &s.MaxSizeInMegabytes) + delete(rawMsg, key) + case "requiresDuplicateDetection": + err = unpopulate(val, &s.RequiresDuplicateDetection) + delete(rawMsg, key) + case "sizeInBytes": + err = unpopulate(val, &s.SizeInBytes) + delete(rawMsg, key) + case "status": + err = unpopulate(val, &s.Status) + delete(rawMsg, key) + case "subscriptionCount": + err = unpopulate(val, &s.SubscriptionCount) + delete(rawMsg, key) + case "supportOrdering": + err = unpopulate(val, &s.SupportOrdering) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, &s.UpdatedAt) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TrackedResource. +func (t TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, v interface{}) error { + if data == nil { + return nil + } + return json.Unmarshal(data, v) +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go index 7207e28eaa66..d633eed7cef8 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type NamespacesClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewNamespacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *NamespacesClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewNamespacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NamespacesClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &NamespacesClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CheckNameAvailability - Check the give namespace name availability. @@ -90,7 +95,7 @@ func (client *NamespacesClient) checkNameAvailabilityCreateRequest(ctx context.C // checkNameAvailabilityHandleResponse handles the CheckNameAvailability response. func (client *NamespacesClient) checkNameAvailabilityHandleResponse(resp *http.Response) (NamespacesClientCheckNameAvailabilityResponse, error) { - result := NamespacesClientCheckNameAvailabilityResponse{RawResponse: resp} + result := NamespacesClientCheckNameAvailabilityResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.CheckNameAvailabilityResult); err != nil { return NamespacesClientCheckNameAvailabilityResponse{}, err } @@ -105,22 +110,16 @@ func (client *NamespacesClient) checkNameAvailabilityHandleResponse(resp *http.R // parameters - Parameters supplied to create a namespace resource. // options - NamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespacesClient.BeginCreateOrUpdate // method. -func (client *NamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters SBNamespace, options *NamespacesClientBeginCreateOrUpdateOptions) (NamespacesClientCreateOrUpdatePollerResponse, error) { - resp, err := client.createOrUpdate(ctx, resourceGroupName, namespaceName, parameters, options) - if err != nil { - return NamespacesClientCreateOrUpdatePollerResponse{}, err - } - result := NamespacesClientCreateOrUpdatePollerResponse{ - RawResponse: resp, +func (client *NamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters SBNamespace, options *NamespacesClientBeginCreateOrUpdateOptions) (*armruntime.Poller[NamespacesClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, namespaceName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[NamespacesClientCreateOrUpdateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[NamespacesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("NamespacesClient.CreateOrUpdate", "", resp, client.pl) - if err != nil { - return NamespacesClientCreateOrUpdatePollerResponse{}, err - } - result.Poller = &NamespacesClientCreateOrUpdatePoller{ - pt: pt, - } - return result, nil } // CreateOrUpdate - Creates or updates a service namespace. Once created, this namespace's resource manifest is immutable. @@ -222,7 +221,7 @@ func (client *NamespacesClient) createOrUpdateAuthorizationRuleCreateRequest(ctx // createOrUpdateAuthorizationRuleHandleResponse handles the CreateOrUpdateAuthorizationRule response. func (client *NamespacesClient) createOrUpdateAuthorizationRuleHandleResponse(resp *http.Response) (NamespacesClientCreateOrUpdateAuthorizationRuleResponse, error) { - result := NamespacesClientCreateOrUpdateAuthorizationRuleResponse{RawResponse: resp} + result := NamespacesClientCreateOrUpdateAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRule); err != nil { return NamespacesClientCreateOrUpdateAuthorizationRuleResponse{}, err } @@ -279,7 +278,7 @@ func (client *NamespacesClient) createOrUpdateNetworkRuleSetCreateRequest(ctx co // createOrUpdateNetworkRuleSetHandleResponse handles the CreateOrUpdateNetworkRuleSet response. func (client *NamespacesClient) createOrUpdateNetworkRuleSetHandleResponse(resp *http.Response) (NamespacesClientCreateOrUpdateNetworkRuleSetResponse, error) { - result := NamespacesClientCreateOrUpdateNetworkRuleSetResponse{RawResponse: resp} + result := NamespacesClientCreateOrUpdateNetworkRuleSetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.NetworkRuleSet); err != nil { return NamespacesClientCreateOrUpdateNetworkRuleSetResponse{}, err } @@ -291,22 +290,16 @@ func (client *NamespacesClient) createOrUpdateNetworkRuleSetHandleResponse(resp // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - NamespacesClientBeginDeleteOptions contains the optional parameters for the NamespacesClient.BeginDelete method. -func (client *NamespacesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientBeginDeleteOptions) (NamespacesClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, options) - if err != nil { - return NamespacesClientDeletePollerResponse{}, err +func (client *NamespacesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientBeginDeleteOptions) (*armruntime.Poller[NamespacesClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[NamespacesClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[NamespacesClientDeleteResponse](options.ResumeToken, client.pl, nil) } - result := NamespacesClientDeletePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("NamespacesClient.Delete", "", resp, client.pl) - if err != nil { - return NamespacesClientDeletePollerResponse{}, err - } - result.Poller = &NamespacesClientDeletePoller{ - pt: pt, - } - return result, nil } // Delete - Deletes an existing namespace. This operation also removes all associated resources under the namespace. @@ -371,7 +364,7 @@ func (client *NamespacesClient) DeleteAuthorizationRule(ctx context.Context, res if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return NamespacesClientDeleteAuthorizationRuleResponse{}, runtime.NewResponseError(resp) } - return NamespacesClientDeleteAuthorizationRuleResponse{RawResponse: resp}, nil + return NamespacesClientDeleteAuthorizationRuleResponse{}, nil } // deleteAuthorizationRuleCreateRequest creates the DeleteAuthorizationRule request. @@ -452,7 +445,7 @@ func (client *NamespacesClient) getCreateRequest(ctx context.Context, resourceGr // getHandleResponse handles the Get response. func (client *NamespacesClient) getHandleResponse(resp *http.Response) (NamespacesClientGetResponse, error) { - result := NamespacesClientGetResponse{RawResponse: resp} + result := NamespacesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBNamespace); err != nil { return NamespacesClientGetResponse{}, err } @@ -513,7 +506,7 @@ func (client *NamespacesClient) getAuthorizationRuleCreateRequest(ctx context.Co // getAuthorizationRuleHandleResponse handles the GetAuthorizationRule response. func (client *NamespacesClient) getAuthorizationRuleHandleResponse(resp *http.Response) (NamespacesClientGetAuthorizationRuleResponse, error) { - result := NamespacesClientGetAuthorizationRuleResponse{RawResponse: resp} + result := NamespacesClientGetAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRule); err != nil { return NamespacesClientGetAuthorizationRuleResponse{}, err } @@ -569,7 +562,7 @@ func (client *NamespacesClient) getNetworkRuleSetCreateRequest(ctx context.Conte // getNetworkRuleSetHandleResponse handles the GetNetworkRuleSet response. func (client *NamespacesClient) getNetworkRuleSetHandleResponse(resp *http.Response) (NamespacesClientGetNetworkRuleSetResponse, error) { - result := NamespacesClientGetNetworkRuleSetResponse{RawResponse: resp} + result := NamespacesClientGetNetworkRuleSetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.NetworkRuleSet); err != nil { return NamespacesClientGetNetworkRuleSetResponse{}, err } @@ -579,16 +572,32 @@ func (client *NamespacesClient) getNetworkRuleSetHandleResponse(resp *http.Respo // List - Gets all the available namespaces within the subscription, irrespective of the resource groups. // If the operation fails it returns an *azcore.ResponseError type. // options - NamespacesClientListOptions contains the optional parameters for the NamespacesClient.List method. -func (client *NamespacesClient) List(options *NamespacesClientListOptions) *NamespacesClientListPager { - return &NamespacesClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *NamespacesClient) List(options *NamespacesClientListOptions) *runtime.Pager[NamespacesClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[NamespacesClientListResponse]{ + More: func(page NamespacesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp NamespacesClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SBNamespaceListResult.NextLink) + Fetcher: func(ctx context.Context, page *NamespacesClientListResponse) (NamespacesClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return NamespacesClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return NamespacesClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return NamespacesClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -611,7 +620,7 @@ func (client *NamespacesClient) listCreateRequest(ctx context.Context, options * // listHandleResponse handles the List response. func (client *NamespacesClient) listHandleResponse(resp *http.Response) (NamespacesClientListResponse, error) { - result := NamespacesClientListResponse{RawResponse: resp} + result := NamespacesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBNamespaceListResult); err != nil { return NamespacesClientListResponse{}, err } @@ -624,16 +633,32 @@ func (client *NamespacesClient) listHandleResponse(resp *http.Response) (Namespa // namespaceName - The namespace name // options - NamespacesClientListAuthorizationRulesOptions contains the optional parameters for the NamespacesClient.ListAuthorizationRules // method. -func (client *NamespacesClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, options *NamespacesClientListAuthorizationRulesOptions) *NamespacesClientListAuthorizationRulesPager { - return &NamespacesClientListAuthorizationRulesPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *NamespacesClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, options *NamespacesClientListAuthorizationRulesOptions) *runtime.Pager[NamespacesClientListAuthorizationRulesResponse] { + return runtime.NewPager(runtime.PageProcessor[NamespacesClientListAuthorizationRulesResponse]{ + More: func(page NamespacesClientListAuthorizationRulesResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp NamespacesClientListAuthorizationRulesResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SBAuthorizationRuleListResult.NextLink) + Fetcher: func(ctx context.Context, page *NamespacesClientListAuthorizationRulesResponse) (NamespacesClientListAuthorizationRulesResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return NamespacesClientListAuthorizationRulesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return NamespacesClientListAuthorizationRulesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return NamespacesClientListAuthorizationRulesResponse{}, runtime.NewResponseError(resp) + } + return client.listAuthorizationRulesHandleResponse(resp) }, - } + }) } // listAuthorizationRulesCreateRequest creates the ListAuthorizationRules request. @@ -664,7 +689,7 @@ func (client *NamespacesClient) listAuthorizationRulesCreateRequest(ctx context. // listAuthorizationRulesHandleResponse handles the ListAuthorizationRules response. func (client *NamespacesClient) listAuthorizationRulesHandleResponse(resp *http.Response) (NamespacesClientListAuthorizationRulesResponse, error) { - result := NamespacesClientListAuthorizationRulesResponse{RawResponse: resp} + result := NamespacesClientListAuthorizationRulesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRuleListResult); err != nil { return NamespacesClientListAuthorizationRulesResponse{}, err } @@ -676,16 +701,32 @@ func (client *NamespacesClient) listAuthorizationRulesHandleResponse(resp *http. // resourceGroupName - Name of the Resource group within the Azure subscription. // options - NamespacesClientListByResourceGroupOptions contains the optional parameters for the NamespacesClient.ListByResourceGroup // method. -func (client *NamespacesClient) ListByResourceGroup(resourceGroupName string, options *NamespacesClientListByResourceGroupOptions) *NamespacesClientListByResourceGroupPager { - return &NamespacesClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *NamespacesClient) ListByResourceGroup(resourceGroupName string, options *NamespacesClientListByResourceGroupOptions) *runtime.Pager[NamespacesClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[NamespacesClientListByResourceGroupResponse]{ + More: func(page NamespacesClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp NamespacesClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SBNamespaceListResult.NextLink) + Fetcher: func(ctx context.Context, page *NamespacesClientListByResourceGroupResponse) (NamespacesClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return NamespacesClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return NamespacesClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return NamespacesClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -712,7 +753,7 @@ func (client *NamespacesClient) listByResourceGroupCreateRequest(ctx context.Con // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *NamespacesClient) listByResourceGroupHandleResponse(resp *http.Response) (NamespacesClientListByResourceGroupResponse, error) { - result := NamespacesClientListByResourceGroupResponse{RawResponse: resp} + result := NamespacesClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBNamespaceListResult); err != nil { return NamespacesClientListByResourceGroupResponse{}, err } @@ -772,7 +813,7 @@ func (client *NamespacesClient) listKeysCreateRequest(ctx context.Context, resou // listKeysHandleResponse handles the ListKeys response. func (client *NamespacesClient) listKeysHandleResponse(resp *http.Response) (NamespacesClientListKeysResponse, error) { - result := NamespacesClientListKeysResponse{RawResponse: resp} + result := NamespacesClientListKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return NamespacesClientListKeysResponse{}, err } @@ -785,16 +826,32 @@ func (client *NamespacesClient) listKeysHandleResponse(resp *http.Response) (Nam // namespaceName - The namespace name // options - NamespacesClientListNetworkRuleSetsOptions contains the optional parameters for the NamespacesClient.ListNetworkRuleSets // method. -func (client *NamespacesClient) ListNetworkRuleSets(resourceGroupName string, namespaceName string, options *NamespacesClientListNetworkRuleSetsOptions) *NamespacesClientListNetworkRuleSetsPager { - return &NamespacesClientListNetworkRuleSetsPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listNetworkRuleSetsCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *NamespacesClient) ListNetworkRuleSets(resourceGroupName string, namespaceName string, options *NamespacesClientListNetworkRuleSetsOptions) *runtime.Pager[NamespacesClientListNetworkRuleSetsResponse] { + return runtime.NewPager(runtime.PageProcessor[NamespacesClientListNetworkRuleSetsResponse]{ + More: func(page NamespacesClientListNetworkRuleSetsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp NamespacesClientListNetworkRuleSetsResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.NetworkRuleSetListResult.NextLink) + Fetcher: func(ctx context.Context, page *NamespacesClientListNetworkRuleSetsResponse) (NamespacesClientListNetworkRuleSetsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listNetworkRuleSetsCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return NamespacesClientListNetworkRuleSetsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return NamespacesClientListNetworkRuleSetsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return NamespacesClientListNetworkRuleSetsResponse{}, runtime.NewResponseError(resp) + } + return client.listNetworkRuleSetsHandleResponse(resp) }, - } + }) } // listNetworkRuleSetsCreateRequest creates the ListNetworkRuleSets request. @@ -825,7 +882,7 @@ func (client *NamespacesClient) listNetworkRuleSetsCreateRequest(ctx context.Con // listNetworkRuleSetsHandleResponse handles the ListNetworkRuleSets response. func (client *NamespacesClient) listNetworkRuleSetsHandleResponse(resp *http.Response) (NamespacesClientListNetworkRuleSetsResponse, error) { - result := NamespacesClientListNetworkRuleSetsResponse{RawResponse: resp} + result := NamespacesClientListNetworkRuleSetsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.NetworkRuleSetListResult); err != nil { return NamespacesClientListNetworkRuleSetsResponse{}, err } @@ -887,7 +944,7 @@ func (client *NamespacesClient) regenerateKeysCreateRequest(ctx context.Context, // regenerateKeysHandleResponse handles the RegenerateKeys response. func (client *NamespacesClient) regenerateKeysHandleResponse(resp *http.Response) (NamespacesClientRegenerateKeysResponse, error) { - result := NamespacesClientRegenerateKeysResponse{RawResponse: resp} + result := NamespacesClientRegenerateKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return NamespacesClientRegenerateKeysResponse{}, err } @@ -944,7 +1001,7 @@ func (client *NamespacesClient) updateCreateRequest(ctx context.Context, resourc // updateHandleResponse handles the Update response. func (client *NamespacesClient) updateHandleResponse(resp *http.Response) (NamespacesClientUpdateResponse, error) { - result := NamespacesClientUpdateResponse{RawResponse: resp} + result := NamespacesClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBNamespace); err != nil { return NamespacesClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go index 84453c7da0e5..54983e3ab2fe 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,34 +29,54 @@ type OperationsClient struct { // NewOperationsClient creates a new instance of OperationsClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &OperationsClient{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // List - Lists all of the available ServiceBus REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *OperationsClientListPager { - return &OperationsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ + More: func(page OperationsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp OperationsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.OperationListResult.NextLink) + Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return OperationsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return OperationsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return OperationsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -74,7 +95,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { - result := OperationsClientListResponse{RawResponse: resp} + result := OperationsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_pagers.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_pagers.go deleted file mode 100644 index f80ee88a5b04..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_pagers.go +++ /dev/null @@ -1,827 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// DisasterRecoveryConfigsClientListAuthorizationRulesPager provides operations for iterating over paged responses. -type DisasterRecoveryConfigsClientListAuthorizationRulesPager struct { - client *DisasterRecoveryConfigsClient - current DisasterRecoveryConfigsClientListAuthorizationRulesResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, DisasterRecoveryConfigsClientListAuthorizationRulesResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *DisasterRecoveryConfigsClientListAuthorizationRulesPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *DisasterRecoveryConfigsClientListAuthorizationRulesPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SBAuthorizationRuleListResult.NextLink == nil || len(*p.current.SBAuthorizationRuleListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAuthorizationRulesHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current DisasterRecoveryConfigsClientListAuthorizationRulesResponse page. -func (p *DisasterRecoveryConfigsClientListAuthorizationRulesPager) PageResponse() DisasterRecoveryConfigsClientListAuthorizationRulesResponse { - return p.current -} - -// DisasterRecoveryConfigsClientListPager provides operations for iterating over paged responses. -type DisasterRecoveryConfigsClientListPager struct { - client *DisasterRecoveryConfigsClient - current DisasterRecoveryConfigsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, DisasterRecoveryConfigsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *DisasterRecoveryConfigsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *DisasterRecoveryConfigsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ArmDisasterRecoveryListResult.NextLink == nil || len(*p.current.ArmDisasterRecoveryListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current DisasterRecoveryConfigsClientListResponse page. -func (p *DisasterRecoveryConfigsClientListPager) PageResponse() DisasterRecoveryConfigsClientListResponse { - return p.current -} - -// MigrationConfigsClientListPager provides operations for iterating over paged responses. -type MigrationConfigsClientListPager struct { - client *MigrationConfigsClient - current MigrationConfigsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, MigrationConfigsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *MigrationConfigsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *MigrationConfigsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.MigrationConfigListResult.NextLink == nil || len(*p.current.MigrationConfigListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current MigrationConfigsClientListResponse page. -func (p *MigrationConfigsClientListPager) PageResponse() MigrationConfigsClientListResponse { - return p.current -} - -// NamespacesClientListAuthorizationRulesPager provides operations for iterating over paged responses. -type NamespacesClientListAuthorizationRulesPager struct { - client *NamespacesClient - current NamespacesClientListAuthorizationRulesResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, NamespacesClientListAuthorizationRulesResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *NamespacesClientListAuthorizationRulesPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *NamespacesClientListAuthorizationRulesPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SBAuthorizationRuleListResult.NextLink == nil || len(*p.current.SBAuthorizationRuleListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAuthorizationRulesHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current NamespacesClientListAuthorizationRulesResponse page. -func (p *NamespacesClientListAuthorizationRulesPager) PageResponse() NamespacesClientListAuthorizationRulesResponse { - return p.current -} - -// NamespacesClientListByResourceGroupPager provides operations for iterating over paged responses. -type NamespacesClientListByResourceGroupPager struct { - client *NamespacesClient - current NamespacesClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, NamespacesClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *NamespacesClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *NamespacesClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SBNamespaceListResult.NextLink == nil || len(*p.current.SBNamespaceListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current NamespacesClientListByResourceGroupResponse page. -func (p *NamespacesClientListByResourceGroupPager) PageResponse() NamespacesClientListByResourceGroupResponse { - return p.current -} - -// NamespacesClientListNetworkRuleSetsPager provides operations for iterating over paged responses. -type NamespacesClientListNetworkRuleSetsPager struct { - client *NamespacesClient - current NamespacesClientListNetworkRuleSetsResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, NamespacesClientListNetworkRuleSetsResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *NamespacesClientListNetworkRuleSetsPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *NamespacesClientListNetworkRuleSetsPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.NetworkRuleSetListResult.NextLink == nil || len(*p.current.NetworkRuleSetListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listNetworkRuleSetsHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current NamespacesClientListNetworkRuleSetsResponse page. -func (p *NamespacesClientListNetworkRuleSetsPager) PageResponse() NamespacesClientListNetworkRuleSetsResponse { - return p.current -} - -// NamespacesClientListPager provides operations for iterating over paged responses. -type NamespacesClientListPager struct { - client *NamespacesClient - current NamespacesClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, NamespacesClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *NamespacesClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *NamespacesClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SBNamespaceListResult.NextLink == nil || len(*p.current.SBNamespaceListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current NamespacesClientListResponse page. -func (p *NamespacesClientListPager) PageResponse() NamespacesClientListResponse { - return p.current -} - -// OperationsClientListPager provides operations for iterating over paged responses. -type OperationsClientListPager struct { - client *OperationsClient - current OperationsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, OperationsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *OperationsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *OperationsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.OperationListResult.NextLink == nil || len(*p.current.OperationListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current OperationsClientListResponse page. -func (p *OperationsClientListPager) PageResponse() OperationsClientListResponse { - return p.current -} - -// PrivateEndpointConnectionsClientListPager provides operations for iterating over paged responses. -type PrivateEndpointConnectionsClientListPager struct { - client *PrivateEndpointConnectionsClient - current PrivateEndpointConnectionsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, PrivateEndpointConnectionsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *PrivateEndpointConnectionsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *PrivateEndpointConnectionsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.PrivateEndpointConnectionListResult.NextLink == nil || len(*p.current.PrivateEndpointConnectionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current PrivateEndpointConnectionsClientListResponse page. -func (p *PrivateEndpointConnectionsClientListPager) PageResponse() PrivateEndpointConnectionsClientListResponse { - return p.current -} - -// QueuesClientListAuthorizationRulesPager provides operations for iterating over paged responses. -type QueuesClientListAuthorizationRulesPager struct { - client *QueuesClient - current QueuesClientListAuthorizationRulesResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, QueuesClientListAuthorizationRulesResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *QueuesClientListAuthorizationRulesPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *QueuesClientListAuthorizationRulesPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SBAuthorizationRuleListResult.NextLink == nil || len(*p.current.SBAuthorizationRuleListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAuthorizationRulesHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current QueuesClientListAuthorizationRulesResponse page. -func (p *QueuesClientListAuthorizationRulesPager) PageResponse() QueuesClientListAuthorizationRulesResponse { - return p.current -} - -// QueuesClientListByNamespacePager provides operations for iterating over paged responses. -type QueuesClientListByNamespacePager struct { - client *QueuesClient - current QueuesClientListByNamespaceResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, QueuesClientListByNamespaceResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *QueuesClientListByNamespacePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *QueuesClientListByNamespacePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SBQueueListResult.NextLink == nil || len(*p.current.SBQueueListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByNamespaceHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current QueuesClientListByNamespaceResponse page. -func (p *QueuesClientListByNamespacePager) PageResponse() QueuesClientListByNamespaceResponse { - return p.current -} - -// RulesClientListBySubscriptionsPager provides operations for iterating over paged responses. -type RulesClientListBySubscriptionsPager struct { - client *RulesClient - current RulesClientListBySubscriptionsResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, RulesClientListBySubscriptionsResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *RulesClientListBySubscriptionsPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *RulesClientListBySubscriptionsPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.RuleListResult.NextLink == nil || len(*p.current.RuleListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBySubscriptionsHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current RulesClientListBySubscriptionsResponse page. -func (p *RulesClientListBySubscriptionsPager) PageResponse() RulesClientListBySubscriptionsResponse { - return p.current -} - -// SubscriptionsClientListByTopicPager provides operations for iterating over paged responses. -type SubscriptionsClientListByTopicPager struct { - client *SubscriptionsClient - current SubscriptionsClientListByTopicResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, SubscriptionsClientListByTopicResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *SubscriptionsClientListByTopicPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *SubscriptionsClientListByTopicPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SBSubscriptionListResult.NextLink == nil || len(*p.current.SBSubscriptionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByTopicHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current SubscriptionsClientListByTopicResponse page. -func (p *SubscriptionsClientListByTopicPager) PageResponse() SubscriptionsClientListByTopicResponse { - return p.current -} - -// TopicsClientListAuthorizationRulesPager provides operations for iterating over paged responses. -type TopicsClientListAuthorizationRulesPager struct { - client *TopicsClient - current TopicsClientListAuthorizationRulesResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, TopicsClientListAuthorizationRulesResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *TopicsClientListAuthorizationRulesPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *TopicsClientListAuthorizationRulesPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SBAuthorizationRuleListResult.NextLink == nil || len(*p.current.SBAuthorizationRuleListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAuthorizationRulesHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current TopicsClientListAuthorizationRulesResponse page. -func (p *TopicsClientListAuthorizationRulesPager) PageResponse() TopicsClientListAuthorizationRulesResponse { - return p.current -} - -// TopicsClientListByNamespacePager provides operations for iterating over paged responses. -type TopicsClientListByNamespacePager struct { - client *TopicsClient - current TopicsClientListByNamespaceResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, TopicsClientListByNamespaceResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *TopicsClientListByNamespacePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *TopicsClientListByNamespacePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SBTopicListResult.NextLink == nil || len(*p.current.SBTopicListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByNamespaceHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current TopicsClientListByNamespaceResponse page. -func (p *TopicsClientListByNamespacePager) PageResponse() TopicsClientListByNamespaceResponse { - return p.current -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_pollers.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_pollers.go deleted file mode 100644 index 1623c900348a..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_pollers.go +++ /dev/null @@ -1,187 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "net/http" -) - -// MigrationConfigsClientCreateAndStartMigrationPoller provides polling facilities until the operation reaches a terminal state. -type MigrationConfigsClientCreateAndStartMigrationPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *MigrationConfigsClientCreateAndStartMigrationPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *MigrationConfigsClientCreateAndStartMigrationPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final MigrationConfigsClientCreateAndStartMigrationResponse will be returned. -func (p *MigrationConfigsClientCreateAndStartMigrationPoller) FinalResponse(ctx context.Context) (MigrationConfigsClientCreateAndStartMigrationResponse, error) { - respType := MigrationConfigsClientCreateAndStartMigrationResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.MigrationConfigProperties) - if err != nil { - return MigrationConfigsClientCreateAndStartMigrationResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *MigrationConfigsClientCreateAndStartMigrationPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// NamespacesClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state. -type NamespacesClientCreateOrUpdatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *NamespacesClientCreateOrUpdatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *NamespacesClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final NamespacesClientCreateOrUpdateResponse will be returned. -func (p *NamespacesClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (NamespacesClientCreateOrUpdateResponse, error) { - respType := NamespacesClientCreateOrUpdateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.SBNamespace) - if err != nil { - return NamespacesClientCreateOrUpdateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *NamespacesClientCreateOrUpdatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// NamespacesClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type NamespacesClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *NamespacesClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *NamespacesClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final NamespacesClientDeleteResponse will be returned. -func (p *NamespacesClientDeletePoller) FinalResponse(ctx context.Context) (NamespacesClientDeleteResponse, error) { - respType := NamespacesClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return NamespacesClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *NamespacesClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// PrivateEndpointConnectionsClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type PrivateEndpointConnectionsClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *PrivateEndpointConnectionsClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *PrivateEndpointConnectionsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final PrivateEndpointConnectionsClientDeleteResponse will be returned. -func (p *PrivateEndpointConnectionsClientDeletePoller) FinalResponse(ctx context.Context) (PrivateEndpointConnectionsClientDeleteResponse, error) { - respType := PrivateEndpointConnectionsClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return PrivateEndpointConnectionsClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *PrivateEndpointConnectionsClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go index c462c148bbd9..966a02a5efd6 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type PrivateEndpointConnectionsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateEndpointConnectionsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &PrivateEndpointConnectionsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates or updates PrivateEndpointConnections of service namespace. @@ -105,7 +110,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *PrivateEndpointConnectionsClient) createOrUpdateHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientCreateOrUpdateResponse, error) { - result := PrivateEndpointConnectionsClientCreateOrUpdateResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnection); err != nil { return PrivateEndpointConnectionsClientCreateOrUpdateResponse{}, err } @@ -119,22 +124,16 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateHandleResponse(res // privateEndpointConnectionName - The PrivateEndpointConnection name // options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete // method. -func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (PrivateEndpointConnectionsClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, privateEndpointConnectionName, options) - if err != nil { - return PrivateEndpointConnectionsClientDeletePollerResponse{}, err - } - result := PrivateEndpointConnectionsClientDeletePollerResponse{ - RawResponse: resp, +func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, privateEndpointConnectionName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[PrivateEndpointConnectionsClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[PrivateEndpointConnectionsClientDeleteResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("PrivateEndpointConnectionsClient.Delete", "", resp, client.pl) - if err != nil { - return PrivateEndpointConnectionsClientDeletePollerResponse{}, err - } - result.Poller = &PrivateEndpointConnectionsClientDeletePoller{ - pt: pt, - } - return result, nil } // Delete - Deletes an existing Private Endpoint Connection. @@ -238,7 +237,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con // getHandleResponse handles the Get response. func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientGetResponse, error) { - result := PrivateEndpointConnectionsClientGetResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnection); err != nil { return PrivateEndpointConnectionsClientGetResponse{}, err } @@ -251,16 +250,32 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // namespaceName - The namespace name // options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List // method. -func (client *PrivateEndpointConnectionsClient) List(resourceGroupName string, namespaceName string, options *PrivateEndpointConnectionsClientListOptions) *PrivateEndpointConnectionsClientListPager { - return &PrivateEndpointConnectionsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *PrivateEndpointConnectionsClient) List(resourceGroupName string, namespaceName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[PrivateEndpointConnectionsClientListResponse]{ + More: func(page PrivateEndpointConnectionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp PrivateEndpointConnectionsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.PrivateEndpointConnectionListResult.NextLink) + Fetcher: func(ctx context.Context, page *PrivateEndpointConnectionsClientListResponse) (PrivateEndpointConnectionsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return PrivateEndpointConnectionsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return PrivateEndpointConnectionsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return PrivateEndpointConnectionsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -291,7 +306,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co // listHandleResponse handles the List response. func (client *PrivateEndpointConnectionsClient) listHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientListResponse, error) { - result := PrivateEndpointConnectionsClientListResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnectionListResult); err != nil { return PrivateEndpointConnectionsClientListResponse{}, err } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privatelinkresources_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privatelinkresources_client.go index 5b828af6faf6..82f84e38854f 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privatelinkresources_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privatelinkresources_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type PrivateLinkResourcesClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateLinkResourcesClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &PrivateLinkResourcesClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // Get - Gets lists of resources that supports Privatelinks. @@ -99,7 +104,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, // getHandleResponse handles the Get response. func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) (PrivateLinkResourcesClientGetResponse, error) { - result := PrivateLinkResourcesClientGetResponse{RawResponse: resp} + result := PrivateLinkResourcesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateLinkResourcesListResult); err != nil { return PrivateLinkResourcesClientGetResponse{}, err } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go index 7ba6188444bf..7e6315e41715 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type QueuesClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewQueuesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *QueuesClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewQueuesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QueuesClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &QueuesClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates or updates a Service Bus queue. This operation is idempotent. @@ -105,7 +110,7 @@ func (client *QueuesClient) createOrUpdateCreateRequest(ctx context.Context, res // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *QueuesClient) createOrUpdateHandleResponse(resp *http.Response) (QueuesClientCreateOrUpdateResponse, error) { - result := QueuesClientCreateOrUpdateResponse{RawResponse: resp} + result := QueuesClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBQueue); err != nil { return QueuesClientCreateOrUpdateResponse{}, err } @@ -172,7 +177,7 @@ func (client *QueuesClient) createOrUpdateAuthorizationRuleCreateRequest(ctx con // createOrUpdateAuthorizationRuleHandleResponse handles the CreateOrUpdateAuthorizationRule response. func (client *QueuesClient) createOrUpdateAuthorizationRuleHandleResponse(resp *http.Response) (QueuesClientCreateOrUpdateAuthorizationRuleResponse, error) { - result := QueuesClientCreateOrUpdateAuthorizationRuleResponse{RawResponse: resp} + result := QueuesClientCreateOrUpdateAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRule); err != nil { return QueuesClientCreateOrUpdateAuthorizationRuleResponse{}, err } @@ -197,7 +202,7 @@ func (client *QueuesClient) Delete(ctx context.Context, resourceGroupName string if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return QueuesClientDeleteResponse{}, runtime.NewResponseError(resp) } - return QueuesClientDeleteResponse{RawResponse: resp}, nil + return QueuesClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -250,7 +255,7 @@ func (client *QueuesClient) DeleteAuthorizationRule(ctx context.Context, resourc if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return QueuesClientDeleteAuthorizationRuleResponse{}, runtime.NewResponseError(resp) } - return QueuesClientDeleteAuthorizationRuleResponse{RawResponse: resp}, nil + return QueuesClientDeleteAuthorizationRuleResponse{}, nil } // deleteAuthorizationRuleCreateRequest creates the DeleteAuthorizationRule request. @@ -340,7 +345,7 @@ func (client *QueuesClient) getCreateRequest(ctx context.Context, resourceGroupN // getHandleResponse handles the Get response. func (client *QueuesClient) getHandleResponse(resp *http.Response) (QueuesClientGetResponse, error) { - result := QueuesClientGetResponse{RawResponse: resp} + result := QueuesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBQueue); err != nil { return QueuesClientGetResponse{}, err } @@ -406,7 +411,7 @@ func (client *QueuesClient) getAuthorizationRuleCreateRequest(ctx context.Contex // getAuthorizationRuleHandleResponse handles the GetAuthorizationRule response. func (client *QueuesClient) getAuthorizationRuleHandleResponse(resp *http.Response) (QueuesClientGetAuthorizationRuleResponse, error) { - result := QueuesClientGetAuthorizationRuleResponse{RawResponse: resp} + result := QueuesClientGetAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRule); err != nil { return QueuesClientGetAuthorizationRuleResponse{}, err } @@ -420,16 +425,32 @@ func (client *QueuesClient) getAuthorizationRuleHandleResponse(resp *http.Respon // queueName - The queue name. // options - QueuesClientListAuthorizationRulesOptions contains the optional parameters for the QueuesClient.ListAuthorizationRules // method. -func (client *QueuesClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, queueName string, options *QueuesClientListAuthorizationRulesOptions) *QueuesClientListAuthorizationRulesPager { - return &QueuesClientListAuthorizationRulesPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, queueName, options) +func (client *QueuesClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, queueName string, options *QueuesClientListAuthorizationRulesOptions) *runtime.Pager[QueuesClientListAuthorizationRulesResponse] { + return runtime.NewPager(runtime.PageProcessor[QueuesClientListAuthorizationRulesResponse]{ + More: func(page QueuesClientListAuthorizationRulesResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp QueuesClientListAuthorizationRulesResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SBAuthorizationRuleListResult.NextLink) + Fetcher: func(ctx context.Context, page *QueuesClientListAuthorizationRulesResponse) (QueuesClientListAuthorizationRulesResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, queueName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return QueuesClientListAuthorizationRulesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return QueuesClientListAuthorizationRulesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return QueuesClientListAuthorizationRulesResponse{}, runtime.NewResponseError(resp) + } + return client.listAuthorizationRulesHandleResponse(resp) }, - } + }) } // listAuthorizationRulesCreateRequest creates the ListAuthorizationRules request. @@ -464,7 +485,7 @@ func (client *QueuesClient) listAuthorizationRulesCreateRequest(ctx context.Cont // listAuthorizationRulesHandleResponse handles the ListAuthorizationRules response. func (client *QueuesClient) listAuthorizationRulesHandleResponse(resp *http.Response) (QueuesClientListAuthorizationRulesResponse, error) { - result := QueuesClientListAuthorizationRulesResponse{RawResponse: resp} + result := QueuesClientListAuthorizationRulesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRuleListResult); err != nil { return QueuesClientListAuthorizationRulesResponse{}, err } @@ -476,16 +497,32 @@ func (client *QueuesClient) listAuthorizationRulesHandleResponse(resp *http.Resp // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - QueuesClientListByNamespaceOptions contains the optional parameters for the QueuesClient.ListByNamespace method. -func (client *QueuesClient) ListByNamespace(resourceGroupName string, namespaceName string, options *QueuesClientListByNamespaceOptions) *QueuesClientListByNamespacePager { - return &QueuesClientListByNamespacePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByNamespaceCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *QueuesClient) ListByNamespace(resourceGroupName string, namespaceName string, options *QueuesClientListByNamespaceOptions) *runtime.Pager[QueuesClientListByNamespaceResponse] { + return runtime.NewPager(runtime.PageProcessor[QueuesClientListByNamespaceResponse]{ + More: func(page QueuesClientListByNamespaceResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp QueuesClientListByNamespaceResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SBQueueListResult.NextLink) + Fetcher: func(ctx context.Context, page *QueuesClientListByNamespaceResponse) (QueuesClientListByNamespaceResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByNamespaceCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return QueuesClientListByNamespaceResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return QueuesClientListByNamespaceResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return QueuesClientListByNamespaceResponse{}, runtime.NewResponseError(resp) + } + return client.listByNamespaceHandleResponse(resp) }, - } + }) } // listByNamespaceCreateRequest creates the ListByNamespace request. @@ -522,7 +559,7 @@ func (client *QueuesClient) listByNamespaceCreateRequest(ctx context.Context, re // listByNamespaceHandleResponse handles the ListByNamespace response. func (client *QueuesClient) listByNamespaceHandleResponse(resp *http.Response) (QueuesClientListByNamespaceResponse, error) { - result := QueuesClientListByNamespaceResponse{RawResponse: resp} + result := QueuesClientListByNamespaceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBQueueListResult); err != nil { return QueuesClientListByNamespaceResponse{}, err } @@ -587,7 +624,7 @@ func (client *QueuesClient) listKeysCreateRequest(ctx context.Context, resourceG // listKeysHandleResponse handles the ListKeys response. func (client *QueuesClient) listKeysHandleResponse(resp *http.Response) (QueuesClientListKeysResponse, error) { - result := QueuesClientListKeysResponse{RawResponse: resp} + result := QueuesClientListKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return QueuesClientListKeysResponse{}, err } @@ -653,7 +690,7 @@ func (client *QueuesClient) regenerateKeysCreateRequest(ctx context.Context, res // regenerateKeysHandleResponse handles the RegenerateKeys response. func (client *QueuesClient) regenerateKeysHandleResponse(resp *http.Response) (QueuesClientRegenerateKeysResponse, error) { - result := QueuesClientRegenerateKeysResponse{RawResponse: resp} + result := QueuesClientRegenerateKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return QueuesClientRegenerateKeysResponse{}, err } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_response_types.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_response_types.go index 34b8ddd368b3..2435c03710ca 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_response_types.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,871 +8,332 @@ package armservicebus -import ( - "context" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "net/http" - "time" -) - // DisasterRecoveryConfigsClientBreakPairingResponse contains the response from method DisasterRecoveryConfigsClient.BreakPairing. type DisasterRecoveryConfigsClientBreakPairingResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // DisasterRecoveryConfigsClientCheckNameAvailabilityResponse contains the response from method DisasterRecoveryConfigsClient.CheckNameAvailability. type DisasterRecoveryConfigsClientCheckNameAvailabilityResponse struct { - DisasterRecoveryConfigsClientCheckNameAvailabilityResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientCheckNameAvailabilityResult contains the result from method DisasterRecoveryConfigsClient.CheckNameAvailability. -type DisasterRecoveryConfigsClientCheckNameAvailabilityResult struct { CheckNameAvailabilityResult } // DisasterRecoveryConfigsClientCreateOrUpdateResponse contains the response from method DisasterRecoveryConfigsClient.CreateOrUpdate. type DisasterRecoveryConfigsClientCreateOrUpdateResponse struct { - DisasterRecoveryConfigsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientCreateOrUpdateResult contains the result from method DisasterRecoveryConfigsClient.CreateOrUpdate. -type DisasterRecoveryConfigsClientCreateOrUpdateResult struct { ArmDisasterRecovery } // DisasterRecoveryConfigsClientDeleteResponse contains the response from method DisasterRecoveryConfigsClient.Delete. type DisasterRecoveryConfigsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // DisasterRecoveryConfigsClientFailOverResponse contains the response from method DisasterRecoveryConfigsClient.FailOver. type DisasterRecoveryConfigsClientFailOverResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // DisasterRecoveryConfigsClientGetAuthorizationRuleResponse contains the response from method DisasterRecoveryConfigsClient.GetAuthorizationRule. type DisasterRecoveryConfigsClientGetAuthorizationRuleResponse struct { - DisasterRecoveryConfigsClientGetAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientGetAuthorizationRuleResult contains the result from method DisasterRecoveryConfigsClient.GetAuthorizationRule. -type DisasterRecoveryConfigsClientGetAuthorizationRuleResult struct { SBAuthorizationRule } // DisasterRecoveryConfigsClientGetResponse contains the response from method DisasterRecoveryConfigsClient.Get. type DisasterRecoveryConfigsClientGetResponse struct { - DisasterRecoveryConfigsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientGetResult contains the result from method DisasterRecoveryConfigsClient.Get. -type DisasterRecoveryConfigsClientGetResult struct { ArmDisasterRecovery } // DisasterRecoveryConfigsClientListAuthorizationRulesResponse contains the response from method DisasterRecoveryConfigsClient.ListAuthorizationRules. type DisasterRecoveryConfigsClientListAuthorizationRulesResponse struct { - DisasterRecoveryConfigsClientListAuthorizationRulesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientListAuthorizationRulesResult contains the result from method DisasterRecoveryConfigsClient.ListAuthorizationRules. -type DisasterRecoveryConfigsClientListAuthorizationRulesResult struct { SBAuthorizationRuleListResult } // DisasterRecoveryConfigsClientListKeysResponse contains the response from method DisasterRecoveryConfigsClient.ListKeys. type DisasterRecoveryConfigsClientListKeysResponse struct { - DisasterRecoveryConfigsClientListKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientListKeysResult contains the result from method DisasterRecoveryConfigsClient.ListKeys. -type DisasterRecoveryConfigsClientListKeysResult struct { AccessKeys } // DisasterRecoveryConfigsClientListResponse contains the response from method DisasterRecoveryConfigsClient.List. type DisasterRecoveryConfigsClientListResponse struct { - DisasterRecoveryConfigsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DisasterRecoveryConfigsClientListResult contains the result from method DisasterRecoveryConfigsClient.List. -type DisasterRecoveryConfigsClientListResult struct { ArmDisasterRecoveryListResult } // MigrationConfigsClientCompleteMigrationResponse contains the response from method MigrationConfigsClient.CompleteMigration. type MigrationConfigsClientCompleteMigrationResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// MigrationConfigsClientCreateAndStartMigrationPollerResponse contains the response from method MigrationConfigsClient.CreateAndStartMigration. -type MigrationConfigsClientCreateAndStartMigrationPollerResponse struct { - // Poller contains an initialized poller. - Poller *MigrationConfigsClientCreateAndStartMigrationPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l MigrationConfigsClientCreateAndStartMigrationPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (MigrationConfigsClientCreateAndStartMigrationResponse, error) { - respType := MigrationConfigsClientCreateAndStartMigrationResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.MigrationConfigProperties) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a MigrationConfigsClientCreateAndStartMigrationPollerResponse from the provided client and resume token. -func (l *MigrationConfigsClientCreateAndStartMigrationPollerResponse) Resume(ctx context.Context, client *MigrationConfigsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("MigrationConfigsClient.CreateAndStartMigration", token, client.pl) - if err != nil { - return err - } - poller := &MigrationConfigsClientCreateAndStartMigrationPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil + // placeholder for future response values } // MigrationConfigsClientCreateAndStartMigrationResponse contains the response from method MigrationConfigsClient.CreateAndStartMigration. type MigrationConfigsClientCreateAndStartMigrationResponse struct { - MigrationConfigsClientCreateAndStartMigrationResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// MigrationConfigsClientCreateAndStartMigrationResult contains the result from method MigrationConfigsClient.CreateAndStartMigration. -type MigrationConfigsClientCreateAndStartMigrationResult struct { MigrationConfigProperties } // MigrationConfigsClientDeleteResponse contains the response from method MigrationConfigsClient.Delete. type MigrationConfigsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // MigrationConfigsClientGetResponse contains the response from method MigrationConfigsClient.Get. type MigrationConfigsClientGetResponse struct { - MigrationConfigsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// MigrationConfigsClientGetResult contains the result from method MigrationConfigsClient.Get. -type MigrationConfigsClientGetResult struct { MigrationConfigProperties } // MigrationConfigsClientListResponse contains the response from method MigrationConfigsClient.List. type MigrationConfigsClientListResponse struct { - MigrationConfigsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// MigrationConfigsClientListResult contains the result from method MigrationConfigsClient.List. -type MigrationConfigsClientListResult struct { MigrationConfigListResult } // MigrationConfigsClientRevertResponse contains the response from method MigrationConfigsClient.Revert. type MigrationConfigsClientRevertResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // NamespacesClientCheckNameAvailabilityResponse contains the response from method NamespacesClient.CheckNameAvailability. type NamespacesClientCheckNameAvailabilityResponse struct { - NamespacesClientCheckNameAvailabilityResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientCheckNameAvailabilityResult contains the result from method NamespacesClient.CheckNameAvailability. -type NamespacesClientCheckNameAvailabilityResult struct { CheckNameAvailabilityResult } // NamespacesClientCreateOrUpdateAuthorizationRuleResponse contains the response from method NamespacesClient.CreateOrUpdateAuthorizationRule. type NamespacesClientCreateOrUpdateAuthorizationRuleResponse struct { - NamespacesClientCreateOrUpdateAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientCreateOrUpdateAuthorizationRuleResult contains the result from method NamespacesClient.CreateOrUpdateAuthorizationRule. -type NamespacesClientCreateOrUpdateAuthorizationRuleResult struct { SBAuthorizationRule } // NamespacesClientCreateOrUpdateNetworkRuleSetResponse contains the response from method NamespacesClient.CreateOrUpdateNetworkRuleSet. type NamespacesClientCreateOrUpdateNetworkRuleSetResponse struct { - NamespacesClientCreateOrUpdateNetworkRuleSetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientCreateOrUpdateNetworkRuleSetResult contains the result from method NamespacesClient.CreateOrUpdateNetworkRuleSet. -type NamespacesClientCreateOrUpdateNetworkRuleSetResult struct { NetworkRuleSet } -// NamespacesClientCreateOrUpdatePollerResponse contains the response from method NamespacesClient.CreateOrUpdate. -type NamespacesClientCreateOrUpdatePollerResponse struct { - // Poller contains an initialized poller. - Poller *NamespacesClientCreateOrUpdatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l NamespacesClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (NamespacesClientCreateOrUpdateResponse, error) { - respType := NamespacesClientCreateOrUpdateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.SBNamespace) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a NamespacesClientCreateOrUpdatePollerResponse from the provided client and resume token. -func (l *NamespacesClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *NamespacesClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("NamespacesClient.CreateOrUpdate", token, client.pl) - if err != nil { - return err - } - poller := &NamespacesClientCreateOrUpdatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // NamespacesClientCreateOrUpdateResponse contains the response from method NamespacesClient.CreateOrUpdate. type NamespacesClientCreateOrUpdateResponse struct { - NamespacesClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientCreateOrUpdateResult contains the result from method NamespacesClient.CreateOrUpdate. -type NamespacesClientCreateOrUpdateResult struct { SBNamespace } // NamespacesClientDeleteAuthorizationRuleResponse contains the response from method NamespacesClient.DeleteAuthorizationRule. type NamespacesClientDeleteAuthorizationRuleResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientDeletePollerResponse contains the response from method NamespacesClient.Delete. -type NamespacesClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *NamespacesClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l NamespacesClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (NamespacesClientDeleteResponse, error) { - respType := NamespacesClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a NamespacesClientDeletePollerResponse from the provided client and resume token. -func (l *NamespacesClientDeletePollerResponse) Resume(ctx context.Context, client *NamespacesClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("NamespacesClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &NamespacesClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil + // placeholder for future response values } // NamespacesClientDeleteResponse contains the response from method NamespacesClient.Delete. type NamespacesClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // NamespacesClientGetAuthorizationRuleResponse contains the response from method NamespacesClient.GetAuthorizationRule. type NamespacesClientGetAuthorizationRuleResponse struct { - NamespacesClientGetAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientGetAuthorizationRuleResult contains the result from method NamespacesClient.GetAuthorizationRule. -type NamespacesClientGetAuthorizationRuleResult struct { SBAuthorizationRule } // NamespacesClientGetNetworkRuleSetResponse contains the response from method NamespacesClient.GetNetworkRuleSet. type NamespacesClientGetNetworkRuleSetResponse struct { - NamespacesClientGetNetworkRuleSetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientGetNetworkRuleSetResult contains the result from method NamespacesClient.GetNetworkRuleSet. -type NamespacesClientGetNetworkRuleSetResult struct { NetworkRuleSet } // NamespacesClientGetResponse contains the response from method NamespacesClient.Get. type NamespacesClientGetResponse struct { - NamespacesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientGetResult contains the result from method NamespacesClient.Get. -type NamespacesClientGetResult struct { SBNamespace } // NamespacesClientListAuthorizationRulesResponse contains the response from method NamespacesClient.ListAuthorizationRules. type NamespacesClientListAuthorizationRulesResponse struct { - NamespacesClientListAuthorizationRulesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListAuthorizationRulesResult contains the result from method NamespacesClient.ListAuthorizationRules. -type NamespacesClientListAuthorizationRulesResult struct { SBAuthorizationRuleListResult } // NamespacesClientListByResourceGroupResponse contains the response from method NamespacesClient.ListByResourceGroup. type NamespacesClientListByResourceGroupResponse struct { - NamespacesClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListByResourceGroupResult contains the result from method NamespacesClient.ListByResourceGroup. -type NamespacesClientListByResourceGroupResult struct { SBNamespaceListResult } // NamespacesClientListKeysResponse contains the response from method NamespacesClient.ListKeys. type NamespacesClientListKeysResponse struct { - NamespacesClientListKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListKeysResult contains the result from method NamespacesClient.ListKeys. -type NamespacesClientListKeysResult struct { AccessKeys } // NamespacesClientListNetworkRuleSetsResponse contains the response from method NamespacesClient.ListNetworkRuleSets. type NamespacesClientListNetworkRuleSetsResponse struct { - NamespacesClientListNetworkRuleSetsResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListNetworkRuleSetsResult contains the result from method NamespacesClient.ListNetworkRuleSets. -type NamespacesClientListNetworkRuleSetsResult struct { NetworkRuleSetListResult } // NamespacesClientListResponse contains the response from method NamespacesClient.List. type NamespacesClientListResponse struct { - NamespacesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientListResult contains the result from method NamespacesClient.List. -type NamespacesClientListResult struct { SBNamespaceListResult } // NamespacesClientRegenerateKeysResponse contains the response from method NamespacesClient.RegenerateKeys. type NamespacesClientRegenerateKeysResponse struct { - NamespacesClientRegenerateKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientRegenerateKeysResult contains the result from method NamespacesClient.RegenerateKeys. -type NamespacesClientRegenerateKeysResult struct { AccessKeys } // NamespacesClientUpdateResponse contains the response from method NamespacesClient.Update. type NamespacesClientUpdateResponse struct { - NamespacesClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// NamespacesClientUpdateResult contains the result from method NamespacesClient.Update. -type NamespacesClientUpdateResult struct { SBNamespace } // OperationsClientListResponse contains the response from method OperationsClient.List. type OperationsClientListResponse struct { - OperationsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// OperationsClientListResult contains the result from method OperationsClient.List. -type OperationsClientListResult struct { OperationListResult } // PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.CreateOrUpdate. type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct { - PrivateEndpointConnectionsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientCreateOrUpdateResult contains the result from method PrivateEndpointConnectionsClient.CreateOrUpdate. -type PrivateEndpointConnectionsClientCreateOrUpdateResult struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientDeletePollerResponse contains the response from method PrivateEndpointConnectionsClient.Delete. -type PrivateEndpointConnectionsClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *PrivateEndpointConnectionsClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l PrivateEndpointConnectionsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (PrivateEndpointConnectionsClientDeleteResponse, error) { - respType := PrivateEndpointConnectionsClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a PrivateEndpointConnectionsClientDeletePollerResponse from the provided client and resume token. -func (l *PrivateEndpointConnectionsClientDeletePollerResponse) Resume(ctx context.Context, client *PrivateEndpointConnectionsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("PrivateEndpointConnectionsClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &PrivateEndpointConnectionsClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. type PrivateEndpointConnectionsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get. type PrivateEndpointConnectionsClientGetResponse struct { - PrivateEndpointConnectionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientGetResult contains the result from method PrivateEndpointConnectionsClient.Get. -type PrivateEndpointConnectionsClientGetResult struct { PrivateEndpointConnection } // PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.List. type PrivateEndpointConnectionsClientListResponse struct { - PrivateEndpointConnectionsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientListResult contains the result from method PrivateEndpointConnectionsClient.List. -type PrivateEndpointConnectionsClientListResult struct { PrivateEndpointConnectionListResult } // PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get. type PrivateLinkResourcesClientGetResponse struct { - PrivateLinkResourcesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateLinkResourcesClientGetResult contains the result from method PrivateLinkResourcesClient.Get. -type PrivateLinkResourcesClientGetResult struct { PrivateLinkResourcesListResult } // QueuesClientCreateOrUpdateAuthorizationRuleResponse contains the response from method QueuesClient.CreateOrUpdateAuthorizationRule. type QueuesClientCreateOrUpdateAuthorizationRuleResponse struct { - QueuesClientCreateOrUpdateAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueuesClientCreateOrUpdateAuthorizationRuleResult contains the result from method QueuesClient.CreateOrUpdateAuthorizationRule. -type QueuesClientCreateOrUpdateAuthorizationRuleResult struct { SBAuthorizationRule } // QueuesClientCreateOrUpdateResponse contains the response from method QueuesClient.CreateOrUpdate. type QueuesClientCreateOrUpdateResponse struct { - QueuesClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueuesClientCreateOrUpdateResult contains the result from method QueuesClient.CreateOrUpdate. -type QueuesClientCreateOrUpdateResult struct { SBQueue } // QueuesClientDeleteAuthorizationRuleResponse contains the response from method QueuesClient.DeleteAuthorizationRule. type QueuesClientDeleteAuthorizationRuleResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // QueuesClientDeleteResponse contains the response from method QueuesClient.Delete. type QueuesClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // QueuesClientGetAuthorizationRuleResponse contains the response from method QueuesClient.GetAuthorizationRule. type QueuesClientGetAuthorizationRuleResponse struct { - QueuesClientGetAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueuesClientGetAuthorizationRuleResult contains the result from method QueuesClient.GetAuthorizationRule. -type QueuesClientGetAuthorizationRuleResult struct { SBAuthorizationRule } // QueuesClientGetResponse contains the response from method QueuesClient.Get. type QueuesClientGetResponse struct { - QueuesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueuesClientGetResult contains the result from method QueuesClient.Get. -type QueuesClientGetResult struct { SBQueue } // QueuesClientListAuthorizationRulesResponse contains the response from method QueuesClient.ListAuthorizationRules. type QueuesClientListAuthorizationRulesResponse struct { - QueuesClientListAuthorizationRulesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueuesClientListAuthorizationRulesResult contains the result from method QueuesClient.ListAuthorizationRules. -type QueuesClientListAuthorizationRulesResult struct { SBAuthorizationRuleListResult } // QueuesClientListByNamespaceResponse contains the response from method QueuesClient.ListByNamespace. type QueuesClientListByNamespaceResponse struct { - QueuesClientListByNamespaceResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueuesClientListByNamespaceResult contains the result from method QueuesClient.ListByNamespace. -type QueuesClientListByNamespaceResult struct { SBQueueListResult } // QueuesClientListKeysResponse contains the response from method QueuesClient.ListKeys. type QueuesClientListKeysResponse struct { - QueuesClientListKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueuesClientListKeysResult contains the result from method QueuesClient.ListKeys. -type QueuesClientListKeysResult struct { AccessKeys } // QueuesClientRegenerateKeysResponse contains the response from method QueuesClient.RegenerateKeys. type QueuesClientRegenerateKeysResponse struct { - QueuesClientRegenerateKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueuesClientRegenerateKeysResult contains the result from method QueuesClient.RegenerateKeys. -type QueuesClientRegenerateKeysResult struct { AccessKeys } // RulesClientCreateOrUpdateResponse contains the response from method RulesClient.CreateOrUpdate. type RulesClientCreateOrUpdateResponse struct { - RulesClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// RulesClientCreateOrUpdateResult contains the result from method RulesClient.CreateOrUpdate. -type RulesClientCreateOrUpdateResult struct { Rule } // RulesClientDeleteResponse contains the response from method RulesClient.Delete. type RulesClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // RulesClientGetResponse contains the response from method RulesClient.Get. type RulesClientGetResponse struct { - RulesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// RulesClientGetResult contains the result from method RulesClient.Get. -type RulesClientGetResult struct { Rule } // RulesClientListBySubscriptionsResponse contains the response from method RulesClient.ListBySubscriptions. type RulesClientListBySubscriptionsResponse struct { - RulesClientListBySubscriptionsResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// RulesClientListBySubscriptionsResult contains the result from method RulesClient.ListBySubscriptions. -type RulesClientListBySubscriptionsResult struct { RuleListResult } // SubscriptionsClientCreateOrUpdateResponse contains the response from method SubscriptionsClient.CreateOrUpdate. type SubscriptionsClientCreateOrUpdateResponse struct { - SubscriptionsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SubscriptionsClientCreateOrUpdateResult contains the result from method SubscriptionsClient.CreateOrUpdate. -type SubscriptionsClientCreateOrUpdateResult struct { SBSubscription } // SubscriptionsClientDeleteResponse contains the response from method SubscriptionsClient.Delete. type SubscriptionsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // SubscriptionsClientGetResponse contains the response from method SubscriptionsClient.Get. type SubscriptionsClientGetResponse struct { - SubscriptionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SubscriptionsClientGetResult contains the result from method SubscriptionsClient.Get. -type SubscriptionsClientGetResult struct { SBSubscription } // SubscriptionsClientListByTopicResponse contains the response from method SubscriptionsClient.ListByTopic. type SubscriptionsClientListByTopicResponse struct { - SubscriptionsClientListByTopicResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SubscriptionsClientListByTopicResult contains the result from method SubscriptionsClient.ListByTopic. -type SubscriptionsClientListByTopicResult struct { SBSubscriptionListResult } // TopicsClientCreateOrUpdateAuthorizationRuleResponse contains the response from method TopicsClient.CreateOrUpdateAuthorizationRule. type TopicsClientCreateOrUpdateAuthorizationRuleResponse struct { - TopicsClientCreateOrUpdateAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TopicsClientCreateOrUpdateAuthorizationRuleResult contains the result from method TopicsClient.CreateOrUpdateAuthorizationRule. -type TopicsClientCreateOrUpdateAuthorizationRuleResult struct { SBAuthorizationRule } // TopicsClientCreateOrUpdateResponse contains the response from method TopicsClient.CreateOrUpdate. type TopicsClientCreateOrUpdateResponse struct { - TopicsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TopicsClientCreateOrUpdateResult contains the result from method TopicsClient.CreateOrUpdate. -type TopicsClientCreateOrUpdateResult struct { SBTopic } // TopicsClientDeleteAuthorizationRuleResponse contains the response from method TopicsClient.DeleteAuthorizationRule. type TopicsClientDeleteAuthorizationRuleResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // TopicsClientDeleteResponse contains the response from method TopicsClient.Delete. type TopicsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // TopicsClientGetAuthorizationRuleResponse contains the response from method TopicsClient.GetAuthorizationRule. type TopicsClientGetAuthorizationRuleResponse struct { - TopicsClientGetAuthorizationRuleResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TopicsClientGetAuthorizationRuleResult contains the result from method TopicsClient.GetAuthorizationRule. -type TopicsClientGetAuthorizationRuleResult struct { SBAuthorizationRule } // TopicsClientGetResponse contains the response from method TopicsClient.Get. type TopicsClientGetResponse struct { - TopicsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TopicsClientGetResult contains the result from method TopicsClient.Get. -type TopicsClientGetResult struct { SBTopic } // TopicsClientListAuthorizationRulesResponse contains the response from method TopicsClient.ListAuthorizationRules. type TopicsClientListAuthorizationRulesResponse struct { - TopicsClientListAuthorizationRulesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TopicsClientListAuthorizationRulesResult contains the result from method TopicsClient.ListAuthorizationRules. -type TopicsClientListAuthorizationRulesResult struct { SBAuthorizationRuleListResult } // TopicsClientListByNamespaceResponse contains the response from method TopicsClient.ListByNamespace. type TopicsClientListByNamespaceResponse struct { - TopicsClientListByNamespaceResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TopicsClientListByNamespaceResult contains the result from method TopicsClient.ListByNamespace. -type TopicsClientListByNamespaceResult struct { SBTopicListResult } // TopicsClientListKeysResponse contains the response from method TopicsClient.ListKeys. type TopicsClientListKeysResponse struct { - TopicsClientListKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TopicsClientListKeysResult contains the result from method TopicsClient.ListKeys. -type TopicsClientListKeysResult struct { AccessKeys } // TopicsClientRegenerateKeysResponse contains the response from method TopicsClient.RegenerateKeys. type TopicsClientRegenerateKeysResponse struct { - TopicsClientRegenerateKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TopicsClientRegenerateKeysResult contains the result from method TopicsClient.RegenerateKeys. -type TopicsClientRegenerateKeysResult struct { AccessKeys } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go index d0ff6089b2e7..a8c69db8ec0c 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type RulesClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *RulesClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RulesClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &RulesClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates a new rule and updates an existing rule @@ -115,7 +120,7 @@ func (client *RulesClient) createOrUpdateCreateRequest(ctx context.Context, reso // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *RulesClient) createOrUpdateHandleResponse(resp *http.Response) (RulesClientCreateOrUpdateResponse, error) { - result := RulesClientCreateOrUpdateResponse{RawResponse: resp} + result := RulesClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Rule); err != nil { return RulesClientCreateOrUpdateResponse{}, err } @@ -142,7 +147,7 @@ func (client *RulesClient) Delete(ctx context.Context, resourceGroupName string, if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return RulesClientDeleteResponse{}, runtime.NewResponseError(resp) } - return RulesClientDeleteResponse{RawResponse: resp}, nil + return RulesClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -246,7 +251,7 @@ func (client *RulesClient) getCreateRequest(ctx context.Context, resourceGroupNa // getHandleResponse handles the Get response. func (client *RulesClient) getHandleResponse(resp *http.Response) (RulesClientGetResponse, error) { - result := RulesClientGetResponse{RawResponse: resp} + result := RulesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Rule); err != nil { return RulesClientGetResponse{}, err } @@ -261,16 +266,32 @@ func (client *RulesClient) getHandleResponse(resp *http.Response) (RulesClientGe // subscriptionName - The subscription name. // options - RulesClientListBySubscriptionsOptions contains the optional parameters for the RulesClient.ListBySubscriptions // method. -func (client *RulesClient) ListBySubscriptions(resourceGroupName string, namespaceName string, topicName string, subscriptionName string, options *RulesClientListBySubscriptionsOptions) *RulesClientListBySubscriptionsPager { - return &RulesClientListBySubscriptionsPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBySubscriptionsCreateRequest(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, options) +func (client *RulesClient) ListBySubscriptions(resourceGroupName string, namespaceName string, topicName string, subscriptionName string, options *RulesClientListBySubscriptionsOptions) *runtime.Pager[RulesClientListBySubscriptionsResponse] { + return runtime.NewPager(runtime.PageProcessor[RulesClientListBySubscriptionsResponse]{ + More: func(page RulesClientListBySubscriptionsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp RulesClientListBySubscriptionsResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.RuleListResult.NextLink) + Fetcher: func(ctx context.Context, page *RulesClientListBySubscriptionsResponse) (RulesClientListBySubscriptionsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionsCreateRequest(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return RulesClientListBySubscriptionsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return RulesClientListBySubscriptionsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return RulesClientListBySubscriptionsResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionsHandleResponse(resp) }, - } + }) } // listBySubscriptionsCreateRequest creates the ListBySubscriptions request. @@ -315,7 +336,7 @@ func (client *RulesClient) listBySubscriptionsCreateRequest(ctx context.Context, // listBySubscriptionsHandleResponse handles the ListBySubscriptions response. func (client *RulesClient) listBySubscriptionsHandleResponse(resp *http.Response) (RulesClientListBySubscriptionsResponse, error) { - result := RulesClientListBySubscriptionsResponse{RawResponse: resp} + result := RulesClientListBySubscriptionsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.RuleListResult); err != nil { return RulesClientListBySubscriptionsResponse{}, err } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go index 9d9b764ab552..4abd4ba9a6ed 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type SubscriptionsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *SubscriptionsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SubscriptionsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &SubscriptionsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates a topic subscription. @@ -111,7 +116,7 @@ func (client *SubscriptionsClient) createOrUpdateCreateRequest(ctx context.Conte // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *SubscriptionsClient) createOrUpdateHandleResponse(resp *http.Response) (SubscriptionsClientCreateOrUpdateResponse, error) { - result := SubscriptionsClientCreateOrUpdateResponse{RawResponse: resp} + result := SubscriptionsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBSubscription); err != nil { return SubscriptionsClientCreateOrUpdateResponse{}, err } @@ -137,7 +142,7 @@ func (client *SubscriptionsClient) Delete(ctx context.Context, resourceGroupName if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return SubscriptionsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return SubscriptionsClientDeleteResponse{RawResponse: resp}, nil + return SubscriptionsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -232,7 +237,7 @@ func (client *SubscriptionsClient) getCreateRequest(ctx context.Context, resourc // getHandleResponse handles the Get response. func (client *SubscriptionsClient) getHandleResponse(resp *http.Response) (SubscriptionsClientGetResponse, error) { - result := SubscriptionsClientGetResponse{RawResponse: resp} + result := SubscriptionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBSubscription); err != nil { return SubscriptionsClientGetResponse{}, err } @@ -246,16 +251,32 @@ func (client *SubscriptionsClient) getHandleResponse(resp *http.Response) (Subsc // topicName - The topic name. // options - SubscriptionsClientListByTopicOptions contains the optional parameters for the SubscriptionsClient.ListByTopic // method. -func (client *SubscriptionsClient) ListByTopic(resourceGroupName string, namespaceName string, topicName string, options *SubscriptionsClientListByTopicOptions) *SubscriptionsClientListByTopicPager { - return &SubscriptionsClientListByTopicPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByTopicCreateRequest(ctx, resourceGroupName, namespaceName, topicName, options) +func (client *SubscriptionsClient) ListByTopic(resourceGroupName string, namespaceName string, topicName string, options *SubscriptionsClientListByTopicOptions) *runtime.Pager[SubscriptionsClientListByTopicResponse] { + return runtime.NewPager(runtime.PageProcessor[SubscriptionsClientListByTopicResponse]{ + More: func(page SubscriptionsClientListByTopicResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp SubscriptionsClientListByTopicResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SBSubscriptionListResult.NextLink) + Fetcher: func(ctx context.Context, page *SubscriptionsClientListByTopicResponse) (SubscriptionsClientListByTopicResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByTopicCreateRequest(ctx, resourceGroupName, namespaceName, topicName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return SubscriptionsClientListByTopicResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SubscriptionsClientListByTopicResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SubscriptionsClientListByTopicResponse{}, runtime.NewResponseError(resp) + } + return client.listByTopicHandleResponse(resp) }, - } + }) } // listByTopicCreateRequest creates the ListByTopic request. @@ -296,7 +317,7 @@ func (client *SubscriptionsClient) listByTopicCreateRequest(ctx context.Context, // listByTopicHandleResponse handles the ListByTopic response. func (client *SubscriptionsClient) listByTopicHandleResponse(resp *http.Response) (SubscriptionsClientListByTopicResponse, error) { - result := SubscriptionsClientListByTopicResponse{RawResponse: resp} + result := SubscriptionsClientListByTopicResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBSubscriptionListResult); err != nil { return SubscriptionsClientListByTopicResponse{}, err } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_time_rfc3339.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_time_rfc3339.go index 60e2f5792ac7..668f72d74ad8 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_time_rfc3339.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go index 70416c5acc26..7fb9a8f14054 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type TopicsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewTopicsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *TopicsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewTopicsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TopicsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &TopicsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates a topic in the specified namespace. @@ -105,7 +110,7 @@ func (client *TopicsClient) createOrUpdateCreateRequest(ctx context.Context, res // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *TopicsClient) createOrUpdateHandleResponse(resp *http.Response) (TopicsClientCreateOrUpdateResponse, error) { - result := TopicsClientCreateOrUpdateResponse{RawResponse: resp} + result := TopicsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBTopic); err != nil { return TopicsClientCreateOrUpdateResponse{}, err } @@ -172,7 +177,7 @@ func (client *TopicsClient) createOrUpdateAuthorizationRuleCreateRequest(ctx con // createOrUpdateAuthorizationRuleHandleResponse handles the CreateOrUpdateAuthorizationRule response. func (client *TopicsClient) createOrUpdateAuthorizationRuleHandleResponse(resp *http.Response) (TopicsClientCreateOrUpdateAuthorizationRuleResponse, error) { - result := TopicsClientCreateOrUpdateAuthorizationRuleResponse{RawResponse: resp} + result := TopicsClientCreateOrUpdateAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRule); err != nil { return TopicsClientCreateOrUpdateAuthorizationRuleResponse{}, err } @@ -197,7 +202,7 @@ func (client *TopicsClient) Delete(ctx context.Context, resourceGroupName string if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return TopicsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return TopicsClientDeleteResponse{RawResponse: resp}, nil + return TopicsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -250,7 +255,7 @@ func (client *TopicsClient) DeleteAuthorizationRule(ctx context.Context, resourc if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return TopicsClientDeleteAuthorizationRuleResponse{}, runtime.NewResponseError(resp) } - return TopicsClientDeleteAuthorizationRuleResponse{RawResponse: resp}, nil + return TopicsClientDeleteAuthorizationRuleResponse{}, nil } // deleteAuthorizationRuleCreateRequest creates the DeleteAuthorizationRule request. @@ -340,7 +345,7 @@ func (client *TopicsClient) getCreateRequest(ctx context.Context, resourceGroupN // getHandleResponse handles the Get response. func (client *TopicsClient) getHandleResponse(resp *http.Response) (TopicsClientGetResponse, error) { - result := TopicsClientGetResponse{RawResponse: resp} + result := TopicsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBTopic); err != nil { return TopicsClientGetResponse{}, err } @@ -406,7 +411,7 @@ func (client *TopicsClient) getAuthorizationRuleCreateRequest(ctx context.Contex // getAuthorizationRuleHandleResponse handles the GetAuthorizationRule response. func (client *TopicsClient) getAuthorizationRuleHandleResponse(resp *http.Response) (TopicsClientGetAuthorizationRuleResponse, error) { - result := TopicsClientGetAuthorizationRuleResponse{RawResponse: resp} + result := TopicsClientGetAuthorizationRuleResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRule); err != nil { return TopicsClientGetAuthorizationRuleResponse{}, err } @@ -420,16 +425,32 @@ func (client *TopicsClient) getAuthorizationRuleHandleResponse(resp *http.Respon // topicName - The topic name. // options - TopicsClientListAuthorizationRulesOptions contains the optional parameters for the TopicsClient.ListAuthorizationRules // method. -func (client *TopicsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, topicName string, options *TopicsClientListAuthorizationRulesOptions) *TopicsClientListAuthorizationRulesPager { - return &TopicsClientListAuthorizationRulesPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, topicName, options) +func (client *TopicsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, topicName string, options *TopicsClientListAuthorizationRulesOptions) *runtime.Pager[TopicsClientListAuthorizationRulesResponse] { + return runtime.NewPager(runtime.PageProcessor[TopicsClientListAuthorizationRulesResponse]{ + More: func(page TopicsClientListAuthorizationRulesResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp TopicsClientListAuthorizationRulesResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SBAuthorizationRuleListResult.NextLink) + Fetcher: func(ctx context.Context, page *TopicsClientListAuthorizationRulesResponse) (TopicsClientListAuthorizationRulesResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAuthorizationRulesCreateRequest(ctx, resourceGroupName, namespaceName, topicName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return TopicsClientListAuthorizationRulesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return TopicsClientListAuthorizationRulesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return TopicsClientListAuthorizationRulesResponse{}, runtime.NewResponseError(resp) + } + return client.listAuthorizationRulesHandleResponse(resp) }, - } + }) } // listAuthorizationRulesCreateRequest creates the ListAuthorizationRules request. @@ -464,7 +485,7 @@ func (client *TopicsClient) listAuthorizationRulesCreateRequest(ctx context.Cont // listAuthorizationRulesHandleResponse handles the ListAuthorizationRules response. func (client *TopicsClient) listAuthorizationRulesHandleResponse(resp *http.Response) (TopicsClientListAuthorizationRulesResponse, error) { - result := TopicsClientListAuthorizationRulesResponse{RawResponse: resp} + result := TopicsClientListAuthorizationRulesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBAuthorizationRuleListResult); err != nil { return TopicsClientListAuthorizationRulesResponse{}, err } @@ -476,16 +497,32 @@ func (client *TopicsClient) listAuthorizationRulesHandleResponse(resp *http.Resp // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - TopicsClientListByNamespaceOptions contains the optional parameters for the TopicsClient.ListByNamespace method. -func (client *TopicsClient) ListByNamespace(resourceGroupName string, namespaceName string, options *TopicsClientListByNamespaceOptions) *TopicsClientListByNamespacePager { - return &TopicsClientListByNamespacePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByNamespaceCreateRequest(ctx, resourceGroupName, namespaceName, options) +func (client *TopicsClient) ListByNamespace(resourceGroupName string, namespaceName string, options *TopicsClientListByNamespaceOptions) *runtime.Pager[TopicsClientListByNamespaceResponse] { + return runtime.NewPager(runtime.PageProcessor[TopicsClientListByNamespaceResponse]{ + More: func(page TopicsClientListByNamespaceResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp TopicsClientListByNamespaceResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SBTopicListResult.NextLink) + Fetcher: func(ctx context.Context, page *TopicsClientListByNamespaceResponse) (TopicsClientListByNamespaceResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByNamespaceCreateRequest(ctx, resourceGroupName, namespaceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return TopicsClientListByNamespaceResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return TopicsClientListByNamespaceResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return TopicsClientListByNamespaceResponse{}, runtime.NewResponseError(resp) + } + return client.listByNamespaceHandleResponse(resp) }, - } + }) } // listByNamespaceCreateRequest creates the ListByNamespace request. @@ -522,7 +559,7 @@ func (client *TopicsClient) listByNamespaceCreateRequest(ctx context.Context, re // listByNamespaceHandleResponse handles the ListByNamespace response. func (client *TopicsClient) listByNamespaceHandleResponse(resp *http.Response) (TopicsClientListByNamespaceResponse, error) { - result := TopicsClientListByNamespaceResponse{RawResponse: resp} + result := TopicsClientListByNamespaceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SBTopicListResult); err != nil { return TopicsClientListByNamespaceResponse{}, err } @@ -587,7 +624,7 @@ func (client *TopicsClient) listKeysCreateRequest(ctx context.Context, resourceG // listKeysHandleResponse handles the ListKeys response. func (client *TopicsClient) listKeysHandleResponse(resp *http.Response) (TopicsClientListKeysResponse, error) { - result := TopicsClientListKeysResponse{RawResponse: resp} + result := TopicsClientListKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return TopicsClientListKeysResponse{}, err } @@ -653,7 +690,7 @@ func (client *TopicsClient) regenerateKeysCreateRequest(ctx context.Context, res // regenerateKeysHandleResponse handles the RegenerateKeys response. func (client *TopicsClient) regenerateKeysHandleResponse(resp *http.Response) (TopicsClientRegenerateKeysResponse, error) { - result := TopicsClientRegenerateKeysResponse{RawResponse: resp} + result := TopicsClientRegenerateKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccessKeys); err != nil { return TopicsClientRegenerateKeysResponse{}, err }