diff --git a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml
index 5f44e91e893d..10afe77ab8bf 100644
--- a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml
+++ b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml
@@ -11,9 +11,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -42,9 +54,21 @@
DnsForwardingRulesetName
+
+ DnsResolverDomainListName
+
DnsResolverName
+
+ DnsResolverPolicyName
+
+
+ DnsResolverPolicyVirtualNetworkLinkName
+
+
+ DnsSecurityRuleName
+
ForwardingRuleName
@@ -72,15 +96,67 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ProxyResource
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ProxyResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -88,15 +164,33 @@
Name
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource
@@ -116,9 +210,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData
@@ -145,22 +239,638 @@
- CreatedAt
+ CreatedAt
+
+
+ CreatedBy
+
+
+ CreatedByType
+
+
+ LastModifiedAt
+
+
+ LastModifiedBy
+
+
+ LastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Etag
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+ ResourceGuid
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Etag
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Etag
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties
+
+
+
+
+
+
+
+
+
+
+
+ Domain
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Domain
+
+
+ ProvisioningState
+
+
+ ResourceGuid
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ SystemDataCreatedAt
- CreatedBy
+ SystemDataCreatedBy
- CreatedByType
+ SystemDataCreatedByType
- LastModifiedAt
+ SystemDataLastModifiedAt
- LastModifiedBy
+ SystemDataLastModifiedBy
- LastModifiedByType
+ SystemDataLastModifiedByType
+
+
+ Etag
@@ -168,27 +878,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyListResult
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyListResult
-
-
-
-
+
- Name
-
-
- Location
+ NextLink
@@ -196,9 +900,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags
@@ -218,33 +922,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties
-
-
-
-
+
-
+
- Code
-
-
- Message
+ ProvisioningState
- Target
+ ResourceGuid
@@ -252,9 +950,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink
@@ -264,6 +962,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -277,6 +993,24 @@
Name
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
Etag
@@ -286,9 +1020,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkListResult
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkListResult
@@ -308,9 +1042,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags
@@ -330,12 +1064,37 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties
+
+
+
@@ -346,6 +1105,9 @@
+
+ DnsResolverState
+
ProvisioningState
@@ -358,9 +1120,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule
@@ -370,6 +1132,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -383,6 +1163,24 @@
Name
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
Etag
@@ -392,9 +1190,37 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ActionType
+
+
+ BlockResponseCode
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleListResult
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleListResult
@@ -414,9 +1240,37 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DnsSecurityRuleState
+
+
+ Priority
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags
@@ -436,33 +1290,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties
-
+
-
+
-
+
- DnsResolverState
+ DnsSecurityRuleState
- ProvisioningState
+ Priority
- ResourceGuid
+ ProvisioningState
@@ -470,15 +1324,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -489,6 +1361,24 @@
Name
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
Etag
@@ -498,9 +1388,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleListResult
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleListResult
@@ -520,9 +1410,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties
@@ -542,9 +1432,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata
@@ -564,9 +1454,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties
@@ -598,9 +1488,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata
@@ -620,9 +1510,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint
@@ -632,6 +1522,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -645,6 +1553,24 @@
Name
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
Etag
@@ -654,9 +1580,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointListResult
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointListResult
@@ -676,9 +1602,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags
@@ -698,9 +1624,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties
@@ -726,9 +1652,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration
@@ -754,9 +1680,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint
@@ -766,6 +1692,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -779,6 +1723,24 @@
Name
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
Etag
@@ -788,9 +1750,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointListResult
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointListResult
@@ -810,9 +1772,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags
@@ -832,9 +1794,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties
@@ -860,9 +1822,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceListResult
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceListResult
@@ -882,9 +1844,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer
@@ -910,9 +1872,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetListResult
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetListResult
@@ -932,15 +1894,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -951,6 +1931,24 @@
Name
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
Etag
@@ -960,9 +1958,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkListResult
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkListResult
@@ -982,9 +1980,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata
@@ -1004,9 +2002,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties
@@ -1026,9 +2024,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata
- Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata
diff --git a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1
index 5f018fbe227a..1cca5ee40fec 100644
--- a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1
+++ b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1
@@ -1,7 +1,7 @@
@{
GUID = '88e239b3-f615-4018-adf3-f0952a0f46a8'
RootModule = './Az.DnsResolver.psm1'
- ModuleVersion = '0.2.1'
+ ModuleVersion = '0.2.9'
CompatiblePSEditions = 'Core', 'Desktop'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
@@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.DnsResolver.private.dll'
FormatsToProcess = './Az.DnsResolver.format.ps1xml'
- FunctionsToExport = 'Get-AzDnsForwardingRuleset', 'Get-AzDnsForwardingRulesetForwardingRule', 'Get-AzDnsForwardingRulesetVirtualNetworkLink', 'Get-AzDnsResolver', 'Get-AzDnsResolverInboundEndpoint', 'Get-AzDnsResolverOutboundEndpoint', 'New-AzDnsForwardingRuleset', 'New-AzDnsForwardingRulesetForwardingRule', 'New-AzDnsForwardingRulesetVirtualNetworkLink', 'New-AzDnsResolver', 'New-AzDnsResolverInboundEndpoint', 'New-AzDnsResolverIPConfigurationObject', 'New-AzDnsResolverOutboundEndpoint', 'New-AzDnsResolverTargetDnsServerObject', 'Remove-AzDnsForwardingRuleset', 'Remove-AzDnsForwardingRulesetForwardingRule', 'Remove-AzDnsForwardingRulesetVirtualNetworkLink', 'Remove-AzDnsResolver', 'Remove-AzDnsResolverInboundEndpoint', 'Remove-AzDnsResolverOutboundEndpoint', 'Update-AzDnsForwardingRuleset', 'Update-AzDnsForwardingRulesetForwardingRule', 'Update-AzDnsForwardingRulesetVirtualNetworkLink', 'Update-AzDnsResolver', 'Update-AzDnsResolverInboundEndpoint', 'Update-AzDnsResolverOutboundEndpoint', '*'
+ FunctionsToExport = 'Get-AzDnsForwardingRuleset', 'Get-AzDnsForwardingRulesetForwardingRule', 'Get-AzDnsForwardingRulesetVirtualNetworkLink', 'Get-AzDnsResolver', 'Get-AzDnsResolverDomainList', 'Get-AzDnsResolverInboundEndpoint', 'Get-AzDnsResolverOutboundEndpoint', 'Get-AzDnsResolverPolicy', 'Get-AzDnsResolverPolicyDnsSecurityRule', 'Get-AzDnsResolverPolicyVirtualNetworkLink', 'New-AzDnsForwardingRuleset', 'New-AzDnsForwardingRulesetForwardingRule', 'New-AzDnsForwardingRulesetVirtualNetworkLink', 'New-AzDnsResolver', 'New-AzDnsResolverDomainList', 'New-AzDnsResolverInboundEndpoint', 'New-AzDnsResolverIPConfigurationObject', 'New-AzDnsResolverOutboundEndpoint', 'New-AzDnsResolverPolicy', 'New-AzDnsResolverPolicyDnsSecurityRule', 'New-AzDnsResolverPolicyVirtualNetworkLink', 'New-AzDnsResolverTargetDnsServerObject', 'Remove-AzDnsForwardingRuleset', 'Remove-AzDnsForwardingRulesetForwardingRule', 'Remove-AzDnsForwardingRulesetVirtualNetworkLink', 'Remove-AzDnsResolver', 'Remove-AzDnsResolverDomainList', 'Remove-AzDnsResolverInboundEndpoint', 'Remove-AzDnsResolverOutboundEndpoint', 'Remove-AzDnsResolverPolicy', 'Remove-AzDnsResolverPolicyDnsSecurityRule', 'Remove-AzDnsResolverPolicyVirtualNetworkLink', 'Update-AzDnsForwardingRuleset', 'Update-AzDnsForwardingRulesetForwardingRule', 'Update-AzDnsForwardingRulesetVirtualNetworkLink', 'Update-AzDnsResolver', 'Update-AzDnsResolverDomainList', 'Update-AzDnsResolverInboundEndpoint', 'Update-AzDnsResolverOutboundEndpoint', 'Update-AzDnsResolverPolicy', 'Update-AzDnsResolverPolicyDnsSecurityRule', 'Update-AzDnsResolverPolicyVirtualNetworkLink', '*'
AliasesToExport = '*'
PrivateData = @{
PSData = @{
diff --git a/src/DnsResolver/DnsResolver.Autorest/README.md b/src/DnsResolver/DnsResolver.Autorest/README.md
index d93edb2e4a4f..9784ee68e3cd 100644
--- a/src/DnsResolver/DnsResolver.Autorest/README.md
+++ b/src/DnsResolver/DnsResolver.Autorest/README.md
@@ -67,13 +67,14 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest
``` yaml
-commit: 37072829f795ce840b8085035e8adf4721602f34
+commit: 6286ea80b3ac7eecfc2f230d65b2034a656f10bf
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- - $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/dnsresolver.json
+ - $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dnsresolver.json
+ - $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dnsresolverpolicy.json
-module-version: 0.2.1
+module-version: 0.2.9
title: DnsResolver
subject-prefix: DnsResolver
@@ -88,7 +89,23 @@ use-extension:
directive:
- where:
- subject: ForwardingRule|VirtualNetworkLink
+ subject: DnsResolverPolicyVirtualNetworkLink
+ set:
+ subject-prefix: ''
+ - where:
+ subject: DnsResolverPolicy
+ set:
+ subject-prefix: ''
+ - where:
+ subject: DnsResolverDomainList
+ set:
+ subject-prefix: ''
+ - where:
+ subject: DnsSecurityRule
+ set:
+ subject-prefix: 'DnsResolverPolicy'
+ - where:
+ subject: ^(ForwardingRule|VirtualNetworkLink)$
set:
subject-prefix: DnsForwardingRuleset
- where:
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json
index 9a5507651a41..f77a12a5b62e 100644
--- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json
@@ -1,6 +1,6 @@
{
"resourceType": "dnsForwardingRulesets/forwardingRules",
- "apiVersion": "2022-07-01",
+ "apiVersion": "2023-07-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
},
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json
index 5b97c00ecfb3..5caee06682fc 100644
--- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json
@@ -1,6 +1,6 @@
{
"resourceType": "dnsForwardingRulesets/virtualNetworkLinks",
- "apiVersion": "2022-07-01",
+ "apiVersion": "2023-07-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
},
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json
index bdf86afe41c0..d21009e56ef7 100644
--- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json
@@ -1,6 +1,6 @@
{
"resourceType": "dnsForwardingRulesets",
- "apiVersion": "2022-07-01",
+ "apiVersion": "2023-07-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
},
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverDomainLists.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverDomainLists.json
new file mode 100644
index 000000000000..bb05c13b53ff
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverDomainLists.json
@@ -0,0 +1,85 @@
+{
+ "resourceType": "dnsResolverDomainLists",
+ "apiVersion": "2023-07-01-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
+ },
+ "commands": [
+ {
+ "name": "Get-AzDnsResolverDomainList",
+ "description": "Gets properties of a DNS resolver domain list.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Gets properties of a DNS resolver domain list.",
+ "parameters": [
+ {
+ "name": "-Name",
+ "value": "[Path.dnsResolverDomainListName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Remove-AzDnsResolverDomainList",
+ "description": "Deletes a DNS resolver domain list.\nWARNING: This operation cannot be undone.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.",
+ "parameters": [
+ {
+ "name": "-Name",
+ "value": "[Path.dnsResolverDomainListName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-dnsSecurityRules.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-dnsSecurityRules.json
new file mode 100644
index 000000000000..4d4099244ddb
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-dnsSecurityRules.json
@@ -0,0 +1,95 @@
+{
+ "resourceType": "dnsResolverPolicies/dnsSecurityRules",
+ "apiVersion": "2023-07-01-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
+ },
+ "commands": [
+ {
+ "name": "Get-AzDnsResolverPolicyDnsSecurityRule",
+ "description": "Gets properties of a DNS security rule for a DNS resolver policy.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-DnsResolverPolicyName ",
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Gets properties of a DNS security rule for a DNS resolver policy.",
+ "parameters": [
+ {
+ "name": "-DnsResolverPolicyName",
+ "value": "[Path.dnsResolverPolicyName]"
+ },
+ {
+ "name": "-Name",
+ "value": "[Path.dnsSecurityRuleName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Remove-AzDnsResolverPolicyDnsSecurityRule",
+ "description": "Deletes a DNS security rule for a DNS resolver policy.\nWARNING: This operation cannot be undone.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-DnsResolverPolicyName ",
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.",
+ "parameters": [
+ {
+ "name": "-DnsResolverPolicyName",
+ "value": "[Path.dnsResolverPolicyName]"
+ },
+ {
+ "name": "-Name",
+ "value": "[Path.dnsSecurityRuleName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-virtualNetworkLinks.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-virtualNetworkLinks.json
new file mode 100644
index 000000000000..c4e0b9b24a6a
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-virtualNetworkLinks.json
@@ -0,0 +1,95 @@
+{
+ "resourceType": "dnsResolverPolicies/virtualNetworkLinks",
+ "apiVersion": "2023-07-01-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
+ },
+ "commands": [
+ {
+ "name": "Get-AzDnsResolverPolicyVirtualNetworkLink",
+ "description": "Gets properties of a DNS resolver policy virtual network link.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-DnsResolverPolicyName ",
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Gets properties of a DNS resolver policy virtual network link.",
+ "parameters": [
+ {
+ "name": "-DnsResolverPolicyName",
+ "value": "[Path.dnsResolverPolicyName]"
+ },
+ {
+ "name": "-Name",
+ "value": "[Path.dnsResolverPolicyVirtualNetworkLinkName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Remove-AzDnsResolverPolicyVirtualNetworkLink",
+ "description": "Deletes a DNS resolver policy virtual network link.\nWARNING: This operation cannot be undone.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-DnsResolverPolicyName ",
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.",
+ "parameters": [
+ {
+ "name": "-DnsResolverPolicyName",
+ "value": "[Path.dnsResolverPolicyName]"
+ },
+ {
+ "name": "-Name",
+ "value": "[Path.dnsResolverPolicyVirtualNetworkLinkName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies.json
new file mode 100644
index 000000000000..c5c576ac208a
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies.json
@@ -0,0 +1,85 @@
+{
+ "resourceType": "dnsResolverPolicies",
+ "apiVersion": "2023-07-01-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
+ },
+ "commands": [
+ {
+ "name": "Get-AzDnsResolverPolicy",
+ "description": "Gets properties of a DNS resolver policy.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Gets properties of a DNS resolver policy.",
+ "parameters": [
+ {
+ "name": "-Name",
+ "value": "[Path.dnsResolverPolicyName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Remove-AzDnsResolverPolicy",
+ "description": "Deletes a DNS resolver policy.\nWARNING: This operation cannot be undone.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Deletes a DNS resolver policy. WARNING: This operation cannot be undone.",
+ "parameters": [
+ {
+ "name": "-Name",
+ "value": "[Path.dnsResolverPolicyName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json
index 272a477dbe62..b3884546a71e 100644
--- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json
@@ -1,6 +1,6 @@
{
"resourceType": "dnsResolvers/inboundEndpoints",
- "apiVersion": "2022-07-01",
+ "apiVersion": "2023-07-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
},
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json
index f20b4ff3278c..24dfdf15ced6 100644
--- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json
@@ -1,6 +1,6 @@
{
"resourceType": "dnsResolvers/outboundEndpoints",
- "apiVersion": "2022-07-01",
+ "apiVersion": "2023-07-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
},
diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json
index b83d61d53adc..1a48e64a4617 100644
--- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json
+++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json
@@ -1,6 +1,6 @@
{
"resourceType": "dnsResolvers",
- "apiVersion": "2022-07-01",
+ "apiVersion": "2023-07-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dnsresolver"
},
diff --git a/src/DnsResolver/DnsResolver.Autorest/build-module.ps1 b/src/DnsResolver/DnsResolver.Autorest/build-module.ps1
index 06a44d848dab..a2b66b2a9fd9 100644
--- a/src/DnsResolver/DnsResolver.Autorest/build-module.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/build-module.ps1
@@ -12,7 +12,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
-param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
+param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [Switch]$DisableAfterBuildTasks)
$ErrorActionPreference = 'Stop'
if($PSEdition -ne 'Core') {
@@ -67,6 +67,8 @@ if(-not $Isolated -and -not $Debugger) {
$binFolder = Join-Path $PSScriptRoot 'bin'
$objFolder = Join-Path $PSScriptRoot 'obj'
+$isAzure = [System.Convert]::ToBoolean('true')
+
if(-not $Debugger) {
Write-Host -ForegroundColor Green 'Cleaning build folders...'
$null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
@@ -143,7 +145,7 @@ if($NoDocs) {
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
}
$null = New-Item -ItemType Directory -Force -Path $docsFolder
- $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
+ $addComplexInterfaceInfo = !$isAzure
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
}
@@ -169,4 +171,13 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
}
-Write-Host -ForegroundColor Green '-------------Done-------------'
+if (-not $DisableAfterBuildTasks){
+ $afterBuildTasksPath = Join-Path $PSScriptRoot ''
+ $afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
+ if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
+ Write-Host -ForegroundColor Green 'Running after build tasks...'
+ . $afterBuildTasksPath @afterBuildTasksArgs
+ }
+}
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
\ No newline at end of file
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1
index 90a8bad7419b..72be3a645550 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1
@@ -20,12 +20,12 @@ Create a in-memory object for IPConfiguration
Create a in-memory object for IPConfiguration
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject
#>
function New-AzDnsResolverIPConfigurationObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -41,7 +41,7 @@ function New-AzDnsResolverIPConfigurationObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration]::New()
$Object.PrivateIPAddress = $PrivateIPAddress
$Object.PrivateIPAllocationMethod = $PrivateIPAllocationMethod
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1 b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1
index 7e4d62e3f019..136788403a4c 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1
@@ -20,12 +20,12 @@ Create a in-memory object for Target DNS server
Create a in-memory object for Target DNS server
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject
#>
function New-AzDnsResolverTargetDnsServerObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -38,7 +38,7 @@ function New-AzDnsResolverTargetDnsServerObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer]::New()
$Object.IPAddress = $IPAddress
$Object.Port = $Port
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs
index 13e63ff020b9..4b550a734a03 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs
index 06379cf2d7d4..eea2a55811a9 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs
index 284c4de79936..e06506163fcd 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs
index 215c29c551e4..5dd49836408f 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs
index 4c7927ea454a..e0ccea4ab632 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs
index 6553a2fba9af..c270c4d2318c 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs
index 48569896d5ed..8f10c5524210 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs
index 6c87d623aaf4..1e5b179a6b68 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs
index 6ab83448beee..7a2cf4dda384 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs
index f232521c612b..ef3d54dfd9e9 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs
index ec9602a694f9..27f3197d1828 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs
index 965cdf6df0e0..220420dba371 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs
index 5ad676adfcc9..fbbf6824f420 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs
index 65cc9c8885b6..63abd7851723 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs
index 3bbb373cab60..106283ae5ec7 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs
index 2647a2f0663d..7a079fff1140 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs
index dbee9c07c962..8f13ef7d00cb 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs
index 03ffd748bd08..a7980b0dd60f 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs
index 81491fed2648..8460ae8d23ba 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs
index c5a0f2b0b226..adc348e9105d 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs
index 2bd4042d9d10..2bd6b50b8410 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs
index 635708246a47..779d947b23ef 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs
index a66c87734c2e..7092dfc48ed9 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs
index b6b058fa55da..5d12d380b182 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs
index e5af8f9eed5a..5f10592aebf4 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs
index 30d3261e21a7..97e9d966f0dc 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs
index e3d0d5d7415f..745ab35405fc 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs
index 9fb45c298c83..4dafa7790a3a 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs
index b1a496dd6591..70608bc296f0 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs
index 176a713f441f..f43ecec111c2 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs
index 9a8c1fe4d1f0..5191f9c7d003 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs
index 40f981f3debc..ce94cd074333 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs
index 3327a608e8cd..9ea4135ad1bb 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs
index 9b5d5816cf3a..563ec52ec2f7 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs
index 14c66d0d16db..404d83b8a7f8 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs
index c5a10741f749..f81aa9e26f29 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs
index 05137e51e4d1..77433cf1228e 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs
index 48b64a61e204..8bfab6370bc2 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs
index 4eb610b0777d..636805b5debd 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs
index f4e4d0128c78..b8188805b2b3 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs
index 6e1d3edc4fa5..11c49e265644 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs
@@ -4,7 +4,7 @@
using System.Management.Automation;
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs
index 5963049071e2..010406b21962 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs
index f55ade7a32e8..d41babdefd91 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs
index 5fc2eece2720..ed004f5f1dda 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs
index 4abc84269377..5519eda80754 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs
index 7887ea5bacda..6db9bc3be056 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs
index 89f6b9d75d82..98a123a07562 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs
index b443c18e48a3..f71b0e6f39b1 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs
index d019f7a06a9f..47d3f01db5d6 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs
index 16f67fe81aec..47a2830c9ba3 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs
index 3909f5d7d9b2..f8cd7c19db91 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs
index 6b43981d680e..ba1dbbcf01b3 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs
index 46820ab60c7f..e10d82d701cc 100644
--- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs
+++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs
@@ -3,7 +3,7 @@
using System.Net.Http;
using System.Threading.Tasks;
-using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701;
+using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview;
namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets
{
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverDomainList.md
new file mode 100644
index 000000000000..c7c5bdae02de
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverDomainList.md
@@ -0,0 +1,50 @@
+### Example 1: List all DNS Resolver Domain Lists under the subscription
+```powershell
+Get-AzDnsResolverDomainList -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 dnsresolverdomainlisttestresolver2422 Microsoft.Network/dnsResolverDomainLists "8b002671-0000-0800-0000-60386dc10000"
+westus2 dnsresolverdomainlisttestresolver2654 Microsoft.Network/dnsResolverDomainLists "8b000f71-0000-0800-0000-60386cc40000"
+westus2 dnsresolverdomainlisttestresolver8416 Microsoft.Network/dnsResolverDomainLists "94008a5e-0000-0800-0000-603972f20000"
+westus2 dnsresolverdomainlisttestresolver5036 Microsoft.Network/dnsResolverDomainLists "8b002f71-0000-0800-0000-60386df80000"
+westus2 dnsresolverdomainlisttestresolver3718 Microsoft.Network/dnsResolverDomainLists "00009b95-0000-0800-0000-603e8b210000"
+westus2 dnsresolverdomainlisttestresolver2758 Microsoft.Network/dnsResolverDomainLists "8b00da70-0000-0800-0000-60386b4f0000"
+westus2 dnsresolverdomainlisttestresolver7108 Microsoft.Network/dnsResolverDomainLists "00008e95-0000-0800-0000-603e8aee0000"
+westus2 dnsresolverdomainlisttestresolver7639 Microsoft.Network/dnsResolverDomainLists "8b00b670-0000-0800-0000-60386b010000"
+westus2 dnsresolverdomainlisttestresolver5912 Microsoft.Network/dnsResolverDomainLists "8a00557f-0000-0800-0000-603853bc0000"
+westus2 dnsresolverdomainlisttestguli01 Microsoft.Network/dnsResolverDomainLists "48009f1b-0000-0800-0000-60302ec40000"
+westus2 dnsresolverdomainlisttestresolver9892 Microsoft.Network/dnsResolverDomainLists "47008640-0000-0800-0000-60300f220000"
+```
+
+This command gets all DNS Resolver Domain Lists under the subscription.
+
+### Example 2: List all DNS Resolver Domain Lists under the resource group
+```powershell
+Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000"
+westus2 psdnsresolverdomainlistname34dp19g6 Microsoft.Network/dnsResolverDomainLists "0000c9d4-0000-0800-0000-604013990000"
+westus2 psdnsresolverdomainlistname35m3jf0n Microsoft.Network/dnsResolverDomainLists "0000d0d4-0000-0800-0000-604013a80000"
+```
+
+This command gets all DNS Resolver Domain Lists under the resource group.
+
+### Example 3: Get single DNS Resolver by name
+```powershell
+Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000"
+```
+
+This command gets a single DNS Resolver Domain List by name.
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicy.md
new file mode 100644
index 000000000000..b5c9830c0480
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicy.md
@@ -0,0 +1,50 @@
+### Example 1: List all DNS Resolver Policies under the subscription
+```powershell
+Get-AzDnsResolverPolicy -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 dnsresolverpolicytestresolver2422 Microsoft.Network/dnsResolverPolicies "8b002671-0000-0800-0000-60386dc10000"
+westus2 dnsresolverpolicytestresolver2654 Microsoft.Network/dnsResolverPolicies "8b000f71-0000-0800-0000-60386cc40000"
+westus2 dnsresolverpolicytestresolver8416 Microsoft.Network/dnsResolverPolicies "94008a5e-0000-0800-0000-603972f20000"
+westus2 dnsresolverpolicytestresolver5036 Microsoft.Network/dnsResolverPolicies "8b002f71-0000-0800-0000-60386df80000"
+westus2 dnsresolverpolicytestresolver3718 Microsoft.Network/dnsResolverPolicies "00009b95-0000-0800-0000-603e8b210000"
+westus2 dnsresolverpolicytestresolver2758 Microsoft.Network/dnsResolverPolicies "8b00da70-0000-0800-0000-60386b4f0000"
+westus2 dnsresolverpolicytestresolver7108 Microsoft.Network/dnsResolverPolicies "00008e95-0000-0800-0000-603e8aee0000"
+westus2 dnsresolverpolicytestresolver7639 Microsoft.Network/dnsResolverPolicies "8b00b670-0000-0800-0000-60386b010000"
+westus2 dnsresolverpolicytestresolver5912 Microsoft.Network/dnsResolverPolicies "8a00557f-0000-0800-0000-603853bc0000"
+westus2 dnsresolverpolicytestguli01 Microsoft.Network/dnsResolverPolicies "48009f1b-0000-0800-0000-60302ec40000"
+westus2 dnsresolverpolicytestresolver9892 Microsoft.Network/dnsResolverPolicies "47008640-0000-0800-0000-60300f220000"
+```
+
+This command gets all DNS Resolver Policies under the subscription.
+
+### Example 2: List all DNS Resolver Policies under the resource group
+```powershell
+Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000"
+westus2 psdnsresolverpolicyname34dp19g6 Microsoft.Network/dnsResolverPolicies "0000c9d4-0000-0800-0000-604013990000"
+westus2 psdnsresolverpolicyname35m3jf0n Microsoft.Network/dnsResolverPolicies "0000d0d4-0000-0800-0000-604013a80000"
+```
+
+This command gets all DNS Resolver Policies under the resource group.
+
+### Example 3: Get single DNS Resolver by name
+```powershell
+Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000"
+```
+
+This command gets a single DNS Resolver Policy by name.
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyDnsSecurityRule.md
new file mode 100644
index 000000000000..de25a32198ce
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyDnsSecurityRule.md
@@ -0,0 +1,35 @@
+### Example 1: List all DNS Security Rule under the dns resolver policy
+```powershell
+Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 dnssecurityruletestresolver2422 Microsoft.Network/dnsSecurityRules "8b002671-0000-0800-0000-60386dc10000"
+westus2 dnssecurityruletestresolver2654 Microsoft.Network/dnsSecurityRules "8b000f71-0000-0800-0000-60386cc40000"
+westus2 dnssecurityruletestresolver8416 Microsoft.Network/dnsSecurityRules "94008a5e-0000-0800-0000-603972f20000"
+westus2 dnssecurityruletestresolver5036 Microsoft.Network/dnsSecurityRules "8b002f71-0000-0800-0000-60386df80000"
+westus2 dnssecurityruletestresolver3718 Microsoft.Network/dnsSecurityRules "00009b95-0000-0800-0000-603e8b210000"
+westus2 dnssecurityruletestresolver2758 Microsoft.Network/dnsSecurityRules "8b00da70-0000-0800-0000-60386b4f0000"
+westus2 dnssecurityruletestresolver7108 Microsoft.Network/dnsSecurityRules "00008e95-0000-0800-0000-603e8aee0000"
+westus2 dnssecurityruletestresolver7639 Microsoft.Network/dnsSecurityRules "8b00b670-0000-0800-0000-60386b010000"
+westus2 dnssecurityruletestresolver5912 Microsoft.Network/dnsSecurityRules "8a00557f-0000-0800-0000-603853bc0000"
+westus2 dnssecurityruletestguli01 Microsoft.Network/dnsSecurityRules "48009f1b-0000-0800-0000-60302ec40000"
+westus2 dnssecurityruletestresolver9892 Microsoft.Network/dnsSecurityRules "47008640-0000-0800-0000-60300f220000"
+```
+
+This command gets all DNS Security Rule under the dns resolver policy.
+
+### Example 2: Get single DNS Security Rule by name
+```powershell
+Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnssecurityrulename33nmy1fz
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000c2d4-0000-0800-0000-604013880000"
+```
+
+This command gets a single DNS Security Rule by name.
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyVirtualNetworkLink.md
new file mode 100644
index 000000000000..773f36da2d88
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyVirtualNetworkLink.md
@@ -0,0 +1,35 @@
+### Example 1: List all DNS Resolver Policy Links under the dns resolver policy
+```powershell
+Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 dnsresolverpolicylinktestresolver2422 Microsoft.Network/dnsResolverPolicyLinks "8b002671-0000-0800-0000-60386dc10000"
+westus2 dnsresolverpolicylinktestresolver2654 Microsoft.Network/dnsResolverPolicyLinks "8b000f71-0000-0800-0000-60386cc40000"
+westus2 dnsresolverpolicylinktestresolver8416 Microsoft.Network/dnsResolverPolicyLinks "94008a5e-0000-0800-0000-603972f20000"
+westus2 dnsresolverpolicylinktestresolver5036 Microsoft.Network/dnsResolverPolicyLinks "8b002f71-0000-0800-0000-60386df80000"
+westus2 dnsresolverpolicylinktestresolver3718 Microsoft.Network/dnsResolverPolicyLinks "00009b95-0000-0800-0000-603e8b210000"
+westus2 dnsresolverpolicylinktestresolver2758 Microsoft.Network/dnsResolverPolicyLinks "8b00da70-0000-0800-0000-60386b4f0000"
+westus2 dnsresolverpolicylinktestresolver7108 Microsoft.Network/dnsResolverPolicyLinks "00008e95-0000-0800-0000-603e8aee0000"
+westus2 dnsresolverpolicylinktestresolver7639 Microsoft.Network/dnsResolverPolicyLinks "8b00b670-0000-0800-0000-60386b010000"
+westus2 dnsresolverpolicylinktestresolver5912 Microsoft.Network/dnsResolverPolicyLinks "8a00557f-0000-0800-0000-603853bc0000"
+westus2 dnsresolverpolicylinktestguli01 Microsoft.Network/dnsResolverPolicyLinks "48009f1b-0000-0800-0000-60302ec40000"
+westus2 dnsresolverpolicylinktestresolver9892 Microsoft.Network/dnsResolverPolicyLinks "47008640-0000-0800-0000-60300f220000"
+```
+
+This command gets all DNS Resolver Policy Links under the dns resolver policy.
+
+### Example 2: Get single DNS Resolver Policy Link by name
+```powershell
+Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000c2d4-0000-0800-0000-604013880000"
+```
+
+This command gets a single DNS Resolver Policy Link by name.
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverDomainList.md
new file mode 100644
index 000000000000..6d392ab560d7
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverDomainList.md
@@ -0,0 +1,26 @@
+### Example 1: Create a DNS resolver domain list
+```powershell
+New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.")
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 sampleResolverDomainList Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000"
+```
+
+This cmdlet creates a DNS resolver domain list.
+
+
+### Example 2: Create a DNS resolver domain list with tag
+```powershell
+New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 sampleResolverDomainList Microsoft.Network/dnsResolverPolicies "00008cd5-0000-0800-0000-604016c90000"
+```
+
+This cmdlet creates a DNS resolver domain list with tag.
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicy.md
new file mode 100644
index 000000000000..42f1d323c2dc
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicy.md
@@ -0,0 +1,26 @@
+### Example 1: Create a DNS resolver policy
+```powershell
+New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000"
+```
+
+This cmdlet creates a DNS resolver policy.
+
+
+### Example 2: Create a DNS resolver policy with tag
+```powershell
+New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "00008cd5-0000-0800-0000-604016c90000"
+```
+
+This cmdlet creates a DNS resolver policy with tag.
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyDnsSecurityRule.md
new file mode 100644
index 000000000000..0d1587ec841f
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyDnsSecurityRule.md
@@ -0,0 +1,24 @@
+### Example 1: Create a DNS security rule
+```powershell
+New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";}
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "000027d5-0000-0800-0000-6040150e0000"
+```
+
+This cmdlet creates a DNS security rule.
+
+### Example 2: Create a DNS security rule with tag
+```powershell
+New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "00008cd5-0000-0800-0000-604016c90000"
+```
+
+This cmdlet creates a DNS security rule with tag.
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyVirtualNetworkLink.md
new file mode 100644
index 000000000000..561762d363a0
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyVirtualNetworkLink.md
@@ -0,0 +1,26 @@
+### Example 1: Create a DNS resolver policy link
+```powershell
+New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "000027d5-0000-0800-0000-6040150e0000"
+```
+
+This cmdlet creates a DNS resolver policy link.
+
+
+### Example 2: Create a DNS resolver policy link with tag
+```powershell
+New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "00008cd5-0000-0800-0000-604016c90000"
+```
+
+This cmdlet creates a DNS resolver policy link with tag.
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverDomainList.md
new file mode 100644
index 000000000000..8b7fcd62acd1
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverDomainList.md
@@ -0,0 +1,14 @@
+### Example 1: Remove a DNS Resolver Domain List by name
+```powershell
+Remove-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz
+```
+This command removes a DNS Resolver Domain List by name.
+
+### Example 2: Remove a DNS Resolver Domain List by identity
+```powershell
+$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz
+Remove-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject
+```
+
+This command removes a DNS Resolver Domain List by identity.
+
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicy.md
new file mode 100644
index 000000000000..eeaf5f37980a
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicy.md
@@ -0,0 +1,14 @@
+### Example 1: Remove a Dns Resolver Policy by name
+```powershell
+Remove-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz
+```
+This command removes a Dns Resolver Policy by name.
+
+### Example 2: Remove a Dns Resolver Policy by identity
+```powershell
+$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz
+Remove-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject
+```
+
+This command removes a Dns Resolver Policy by identity.
+
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyDnsSecurityRule.md
new file mode 100644
index 000000000000..1b7915c5bfb8
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyDnsSecurityRule.md
@@ -0,0 +1,13 @@
+### Example 1: Remove a DNS Security Rule by name
+```powershell
+Remove-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz
+```
+This command removes a DNS Security Rule by name.
+
+### Example 2: Remove a DNS Security Rule by identity
+```powershell
+$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz
+Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject
+```
+
+This command removes a DNS Security Rule by identity.
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyVirtualNetworkLink.md
new file mode 100644
index 000000000000..07b876e50a7f
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyVirtualNetworkLink.md
@@ -0,0 +1,14 @@
+### Example 1: Remove a DNS Resolver Policy Link by name
+```powershell
+Remove-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz
+```
+This command removes a DNS Resolver Policy Link by name.
+
+### Example 2: Remove a DNS Resolver Policy Link by identity
+```powershell
+$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz
+Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject
+```
+
+This command removes a DNS Resolver Policy Link by identity.
+
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverDomainList.md
new file mode 100644
index 000000000000..992a8c58b02f
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverDomainList.md
@@ -0,0 +1,25 @@
+### Example 1: Update an existing DNS Resolver Domain List by name
+```powershell
+Update-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz -Tag @{"key0" = "value0"}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000"
+```
+
+This command updates an existing DNS Resolver Domain List by name ( adding tag ).
+
+### Example 2: Updates an existing DNS Resolver Domain List by identity
+```powershell
+$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz
+Update-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject -Tag @{}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000"
+```
+This command updates an existing DNS Resolver Domain List by identity ( removing tag ).
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicy.md
new file mode 100644
index 000000000000..190781e2b41b
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicy.md
@@ -0,0 +1,25 @@
+### Example 1: Update an existing DNS Resolver Policy by name
+```powershell
+Update-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz -Tag @{"key0" = "value0"}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000"
+```
+
+This command updates an existing DNS Resolver Policy by name ( adding tag ).
+
+### Example 2: Updates an existing DNS Resolver Policy by identity
+```powershell
+$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz
+Update-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject -Tag @{}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000"
+```
+This command updates an existing DNS Resolver Policy by identity ( removing tag ).
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyDnsSecurityRule.md
new file mode 100644
index 000000000000..f2298d295090
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyDnsSecurityRule.md
@@ -0,0 +1,25 @@
+### Example 1: Update an existing DNS Security Rule by name
+```powershell
+Update-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz -Tag @{"key0" = "value0"}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000"
+```
+
+This command updates an existing DNS Security Rules by name ( adding tag ).
+
+### Example 2: Updates an existing DNS Resolver by identity
+```powershell
+$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz
+Update-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject -Tag @{}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000"
+```
+This command updates an existing DNS Security Rules by identity ( removing tag ).
diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyVirtualNetworkLink.md
new file mode 100644
index 000000000000..532d7cd77757
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyVirtualNetworkLink.md
@@ -0,0 +1,25 @@
+### Example 1: Update an existing DNS Resolver Policy Link by name
+```powershell
+Update-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz -Tag @{"key0" = "value0"}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000"
+```
+
+This command updates an existing DNS Resolver Policy Links by name ( adding tag ).
+
+### Example 2: Updates an existing DNS Resolver by identity
+```powershell
+$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz
+Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject -Tag @{}
+```
+
+```output
+Location Name Type Etag
+-------- ---- ---- ----
+westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000"
+```
+This command updates an existing DNS Resolver Policy Links by identity ( removing tag ).
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1
index f06ea8b387cf..c98c645983f2 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1
@@ -31,9 +31,9 @@ Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtu
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -41,20 +41,24 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName ]: The name of the virtual network link.
[VirtualNetworkName ]: The name of the virtual network.
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset
#>
function Get-AzDnsForwardingRuleset {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -81,6 +85,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1
index e1ea4ed9fdce..d63b831e9960 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1
@@ -27,7 +27,7 @@ Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverNa
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName ]: The name of the virtual network link.
[VirtualNetworkName ]: The name of the virtual network.
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule
#>
function Get-AzDnsForwardingRulesetForwardingRule {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -79,6 +83,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1
index b046168aa07f..cf02411acc22 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1
@@ -27,7 +27,7 @@ Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdns
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName ]: The name of the virtual network link.
[VirtualNetworkName ]: The name of the virtual network.
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink
#>
function Get-AzDnsForwardingRulesetVirtualNetworkLink {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -79,6 +83,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1
index 85838826ef05..8a8407fb9da4 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1
@@ -31,9 +31,9 @@ Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virt
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -41,20 +41,24 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName ]: The name of the virtual network link.
[VirtualNetworkName ]: The name of the virtual network.
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver
#>
function Get-AzDnsResolver {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -81,6 +85,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1
new file mode 100644
index 000000000000..4b13d48d7140
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1
@@ -0,0 +1,237 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets properties of a DNS resolver domain list.
+.Description
+Gets properties of a DNS resolver domain list.
+.Example
+Get-AzDnsResolverDomainList -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076
+.Example
+Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg
+.Example
+Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
+ [DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
+ [ForwardingRuleName ]: The name of the forwarding rule.
+ [Id ]: Resource identity path
+ [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
+ [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [VirtualNetworkLinkName ]: The name of the virtual network link.
+ [VirtualNetworkName ]: The name of the virtual network.
+.Link
+https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist
+#>
+function Get-AzDnsResolverDomainList {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])]
+[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('DnsResolverDomainListName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver domain list.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')]
+ [System.Int32]
+ # The maximum number of results to return.
+ # If not specified, returns up to 100 results.
+ ${Top},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_Get';
+ GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_GetViaIdentity';
+ List = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List';
+ List1 = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1
index b1861bb34d04..92922169ab3c 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1
@@ -27,7 +27,7 @@ Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName ]: The name of the virtual network link.
[VirtualNetworkName ]: The name of the virtual network.
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint
#>
function Get-AzDnsResolverInboundEndpoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -79,6 +83,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1
index 7d4838794cbc..f9816b557454 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1
@@ -27,7 +27,7 @@ Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName ]: The name of the virtual network link.
[VirtualNetworkName ]: The name of the virtual network.
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint
#>
function Get-AzDnsResolverOutboundEndpoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -79,6 +83,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1
new file mode 100644
index 000000000000..19f69511223e
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1
@@ -0,0 +1,248 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets properties of a DNS resolver policy.
+.Description
+Gets properties of a DNS resolver policy.
+.Example
+Get-AzDnsResolverPolicy -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076
+.Example
+Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg
+.Example
+Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
+ [DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
+ [ForwardingRuleName ]: The name of the forwarding rule.
+ [Id ]: Resource identity path
+ [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
+ [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [VirtualNetworkLinkName ]: The name of the virtual network link.
+ [VirtualNetworkName ]: The name of the virtual network.
+.Link
+https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy
+#>
+function Get-AzDnsResolverPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])]
+[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('DnsResolverPolicyName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver policy.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='List2', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Parameter(ParameterSetName='List2')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='List2', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the virtual network.
+ ${VirtualNetworkName},
+
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')]
+ [System.Int32]
+ # The maximum number of results to return.
+ # If not specified, returns up to 100 results.
+ ${Top},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_Get';
+ GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_GetViaIdentity';
+ List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List';
+ List1 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List1';
+ List2 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List2';
+ }
+ if (('Get', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1
new file mode 100644
index 000000000000..fc9dc0e0d7ef
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1
@@ -0,0 +1,239 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets properties of a DNS security rule for a DNS resolver policy.
+.Description
+Gets properties of a DNS security rule for a DNS resolver policy.
+.Example
+Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy
+.Example
+Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnssecurityrulename33nmy1fz
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
+ [DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
+ [ForwardingRuleName ]: The name of the forwarding rule.
+ [Id ]: Resource identity path
+ [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
+ [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [VirtualNetworkLinkName ]: The name of the virtual network link.
+ [VirtualNetworkName ]: The name of the virtual network.
+.Link
+https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule
+#>
+function Get-AzDnsResolverPolicyDnsSecurityRule {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver policy.
+ ${DnsResolverPolicyName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('DnsSecurityRuleName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS security rule.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')]
+ [System.Int32]
+ # The maximum number of results to return.
+ # If not specified, returns up to 100 results.
+ ${Top},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_Get';
+ GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_GetViaIdentity';
+ List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1
new file mode 100644
index 000000000000..246c40c06acd
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1
@@ -0,0 +1,239 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets properties of a DNS resolver policy virtual network link.
+.Description
+Gets properties of a DNS resolver policy virtual network link.
+.Example
+Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy
+.Example
+Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
+ [DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
+ [ForwardingRuleName ]: The name of the forwarding rule.
+ [Id ]: Resource identity path
+ [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
+ [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [VirtualNetworkLinkName ]: The name of the virtual network link.
+ [VirtualNetworkName ]: The name of the virtual network.
+.Link
+https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink
+#>
+function Get-AzDnsResolverPolicyVirtualNetworkLink {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver policy.
+ ${DnsResolverPolicyName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('DnsResolverPolicyVirtualNetworkLinkName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')]
+ [System.Int32]
+ # The maximum number of results to return.
+ # If not specified, returns up to 100 results.
+ ${Top},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_Get';
+ GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity';
+ List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1
index 477ee39bf162..ba5768c75e7b 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1
@@ -27,7 +27,7 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu
New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} -Tag @{"key0" = "value0"}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -39,7 +39,7 @@ DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset
#>
function New-AzDnsForwardingRuleset {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -61,6 +61,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter()]
@@ -81,7 +82,7 @@ param(
[Parameter(Mandatory)]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]]
# The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.
# To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table.
${DnsResolverOutboundEndpoint},
@@ -94,7 +95,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1
index 1753f536c72f..4b0f271cecb1 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1
@@ -27,7 +27,7 @@ $targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.
New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -40,7 +40,7 @@ TARGETDNSSERVER : DNS servers to forward the DNS query to.
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule
#>
function New-AzDnsForwardingRulesetForwardingRule {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -68,6 +68,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter()]
@@ -94,7 +95,7 @@ param(
[Parameter(Mandatory)]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]]
# DNS servers to forward the DNS query to.
# To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table.
${TargetDnsServer},
@@ -108,7 +109,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata]))]
[System.Collections.Hashtable]
# Metadata attached to the forwarding rule.
${Metadata},
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1
index a83265e7f07c..2a31dc51c031 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1
@@ -25,12 +25,12 @@ New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwar
New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" -Metadata @{"key0" = "value0"}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink
#>
function New-AzDnsForwardingRulesetVirtualNetworkLink {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -58,6 +58,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter()]
@@ -83,7 +84,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata]))]
[System.Collections.Hashtable]
# Metadata attached to the virtual network link.
${Metadata},
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1
index 5319ba6750f6..b6003d2a86ca 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1
@@ -25,12 +25,12 @@ New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -Vi
New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver
#>
function New-AzDnsResolver {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -52,6 +52,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter()]
@@ -83,7 +84,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1
new file mode 100644
index 000000000000..03886bbb5ef8
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1
@@ -0,0 +1,239 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a DNS resolver domain list.
+.Description
+Creates or updates a DNS resolver domain list.
+.Example
+New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.")
+.Example
+New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList
+.Link
+https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist
+#>
+function New-AzDnsResolverDomainList {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('DnsResolverDomainListName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver domain list.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')]
+ [System.String]
+ # ETag of the resource.
+ # Omit this value to always overwrite the current resource.
+ # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
+ ${IfMatch},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')]
+ [System.String]
+ # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource.
+ # Other values will be ignored.
+ ${IfNoneMatch},
+
+ [Parameter(Mandatory)]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [System.String[]]
+ # The domains in the domain list.
+ ${Domain},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverDomainList_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1
index 88348a090d91..627d45bac83c 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1
@@ -23,12 +23,12 @@ Create a in-memory object for IPConfiguration
New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 1.1.2.12 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44yqt9mb/subnets/pssubnetname44c6v0lr
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject
#>
function New-AzDnsResolverIPConfigurationObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1
index 215176d0e5dd..b69eaaa510b0 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1
@@ -27,7 +27,7 @@ New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa
New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -41,7 +41,7 @@ IPCONFIGURATION : IP configurations for the inbound endpoint
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint
#>
function New-AzDnsResolverInboundEndpoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -69,6 +69,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter()]
@@ -89,7 +90,7 @@ param(
[Parameter(Mandatory)]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]]
# IP configurations for the inbound endpoint.
# To construct, see NOTES section for IPCONFIGURATION properties and create a hash table.
${IPConfiguration},
@@ -102,7 +103,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1
index 734576a14e76..7021a4eee924 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1
@@ -25,12 +25,12 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu
New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -Tag @{"key0" = "value0"}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint
#>
function New-AzDnsResolverOutboundEndpoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -58,6 +58,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter()]
@@ -89,7 +90,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1
new file mode 100644
index 000000000000..d6c1cb7af809
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1
@@ -0,0 +1,232 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a DNS resolver policy.
+.Description
+Creates or updates a DNS resolver policy.
+.Example
+New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2
+.Example
+New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy
+.Link
+https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy
+#>
+function New-AzDnsResolverPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('DnsResolverPolicyName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver policy.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')]
+ [System.String]
+ # ETag of the resource.
+ # Omit this value to always overwrite the current resource.
+ # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
+ ${IfMatch},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')]
+ [System.String]
+ # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource.
+ # Other values will be ignored.
+ ${IfNoneMatch},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverPolicy_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1
new file mode 100644
index 000000000000..b7c97802faaa
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1
@@ -0,0 +1,281 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a DNS security rule for a DNS resolver policy.
+.Description
+Creates or updates a DNS security rule for a DNS resolver policy.
+.Example
+New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";}
+
+.Example
+New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that the DNS security rule applies to.
+ Id : Resource ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule
+#>
+function New-AzDnsResolverPolicyDnsSecurityRule {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver policy.
+ ${DnsResolverPolicyName},
+
+ [Parameter(Mandatory)]
+ [Alias('DnsSecurityRuleName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS security rule.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')]
+ [System.String]
+ # ETag of the resource.
+ # Omit this value to always overwrite the current resource.
+ # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
+ ${IfMatch},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')]
+ [System.String]
+ # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource.
+ # Other values will be ignored.
+ ${IfNoneMatch},
+
+ [Parameter(Mandatory)]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]]
+ # DNS resolver policy domains lists that the DNS security rule applies to.
+ # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table.
+ ${DnsResolverDomainList},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [System.Int32]
+ # The priority of the DNS security rule.
+ ${Priority},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode])]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode]
+ # The response code for block actions.
+ ${ActionBlockResponseCode},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType]
+ # The type of action to take.
+ ${ActionType},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState]
+ # The state of DNS security rule.
+ ${DnsSecurityRuleState},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1
new file mode 100644
index 000000000000..49de79b8acfa
--- /dev/null
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1
@@ -0,0 +1,244 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a DNS resolver policy virtual network link.
+.Description
+Creates or updates a DNS resolver policy virtual network link.
+.Example
+New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2
+.Example
+New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink
+.Link
+https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink
+#>
+function New-AzDnsResolverPolicyVirtualNetworkLink {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver policy.
+ ${DnsResolverPolicyName},
+
+ [Parameter(Mandatory)]
+ [Alias('DnsResolverPolicyVirtualNetworkLinkName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')]
+ [System.String]
+ # ETag of the resource.
+ # Omit this value to always overwrite the current resource.
+ # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
+ ${IfMatch},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')]
+ [System.String]
+ # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource.
+ # Other values will be ignored.
+ ${IfNoneMatch},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [System.String]
+ # Resource ID.
+ ${VirtualNetworkId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1
index bd937adf11c0..e763ac8664a3 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1
@@ -23,12 +23,12 @@ Create a in-memory object for Target DNS server
New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject
#>
function New-AzDnsResolverTargetDnsServerObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1
index 5be64390a79e..345f6051c2a1 100644
--- a/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -27,7 +27,7 @@ Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverNa
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName ]: The name of the virtual network link.
[VirtualNetworkName ]: The name of the virtual network.
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule
#>
function Get-AzDnsForwardingRulesetForwardingRule {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -79,6 +83,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
@@ -246,7 +251,7 @@ Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdns
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -254,20 +259,24 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName ]: The name of the virtual network link.
[VirtualNetworkName ]: The name of the virtual network.
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink
#>
function Get-AzDnsForwardingRulesetVirtualNetworkLink {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -298,6 +307,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
@@ -469,9 +479,9 @@ Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtu
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -479,20 +489,24 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName ]: The name of the virtual network link.
[VirtualNetworkName ]: The name of the virtual network.
.Link
https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset
#>
function Get-AzDnsForwardingRuleset {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -519,6 +533,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
@@ -685,18 +700,20 @@ end {
<#
.Synopsis
-Gets properties of an inbound endpoint for a DNS resolver.
+Gets properties of a DNS resolver domain list.
.Description
-Gets properties of an inbound endpoint for a DNS resolver.
+Gets properties of a DNS resolver domain list.
.Example
-Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -ResourceGroupName powershell-test-rg
+Get-AzDnsResolverDomainList -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076
.Example
-Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg
+Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg
+.Example
+Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint
+Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -704,34 +721,31 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset.
+ [DnsResolverDomainListName ]: The name of the DNS resolver domain list.
[DnsResolverName ]: The name of the DNS resolver.
+ [DnsResolverPolicyName ]: The name of the DNS resolver policy.
+ [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy.
+ [DnsSecurityRuleName ]: The name of the DNS security rule.
[ForwardingRuleName ]: The name of the forwarding rule.
[Id ]: Resource identity path
[InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver.
[OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VirtualNetworkLinkName