diff --git a/src/Cdn/Cdn.Autorest/.gitattributes b/src/Cdn/Cdn.Autorest/.gitattributes
new file mode 100644
index 000000000000..2125666142eb
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/.gitattributes
@@ -0,0 +1 @@
+* text=auto
\ No newline at end of file
diff --git a/src/Cdn/Cdn.Autorest/.gitignore b/src/Cdn/Cdn.Autorest/.gitignore
new file mode 100644
index 000000000000..6ec158bd9768
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/.gitignore
@@ -0,0 +1,16 @@
+bin
+obj
+.vs
+generated
+internal
+exports
+tools
+test/*-TestResults.xml
+license.txt
+/*.ps1
+/*.psd1
+/*.ps1xml
+/*.psm1
+/*.snk
+/*.csproj
+/*.nuspec
\ No newline at end of file
diff --git a/src/Cdn/Cdn.Autorest/Az.Cdn.csproj b/src/Cdn/Cdn.Autorest/Az.Cdn.csproj
deleted file mode 100644
index bdf5260c6a16..000000000000
--- a/src/Cdn/Cdn.Autorest/Az.Cdn.csproj
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- Cdn
- Cdn
-
-
-
-
-
-
diff --git a/src/Cdn/Cdn.Autorest/Az.Cdn.format.ps1xml b/src/Cdn/Cdn.Autorest/Az.Cdn.format.ps1xml
deleted file mode 100644
index aaaaa23335ba..000000000000
--- a/src/Cdn/Cdn.Autorest/Az.Cdn.format.ps1xml
+++ /dev/null
@@ -1,8271 +0,0 @@
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdCustomDomainsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdCustomDomainsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdCustomDomainsRefreshValidationTokenAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdCustomDomainsRefreshValidationTokenAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdEndpointsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdEndpointsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdEndpointsPurgeContentAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdEndpointsPurgeContentAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdOriginGroupsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdOriginGroupsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdOriginsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdOriginsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CdnIdentity
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CdnIdentity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CustomDomainName
-
-
- EndpointName
-
-
- KeyGroupName
-
-
- OriginGroupName
-
-
- OriginName
-
-
- ProfileName
-
-
- ResourceGroupName
-
-
- RouteName
-
-
- RuleName
-
-
- RuleSetName
-
-
- SecretName
-
-
- SecurityPolicyName
-
-
- SubscriptionId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CdnProfilesCdnCanMigrateToAfdAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CdnProfilesCdnCanMigrateToAfdAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CdnProfilesToAfdCdnMigrateToAfdAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CdnProfilesToAfdCdnMigrateToAfdAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.EndpointsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.EndpointsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.EndpointsLoadContentAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.EndpointsLoadContentAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.EndpointsPurgeContentAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.EndpointsPurgeContentAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.KeyGroupsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.KeyGroupsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.OriginGroupsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.OriginGroupsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.OriginsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.OriginsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfilesCanMigrateAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfilesCanMigrateAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfilesDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfilesDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfilesMigrationAbortAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfilesMigrationAbortAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfilesMigrationCommitAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfilesMigrationCommitAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.RoutesDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.RoutesDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.RulesDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.RulesDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.RuleSetsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.RuleSetsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecretsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecretsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecurityPoliciesDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecurityPoliciesDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api50.ErrorDetail
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api50.ErrorDetail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
- Message
-
-
- Target
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api40.ManagedServiceIdentity
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api40.ManagedServiceIdentity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PrincipalId
-
-
- TenantId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api40.UserAssignedIdentity
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api40.UserAssignedIdentity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ClientId
-
-
- PrincipalId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ActivatedResourceReference
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ActivatedResourceReference
-
-
-
-
-
-
-
-
-
-
-
- IsActive
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomain
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomain
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainHttpsCustomizedCipherSuiteSet
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainHttpsCustomizedCipherSuiteSet
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CipherSuiteSetForTls10
-
-
- CipherSuiteSetForTls12
-
-
- CipherSuiteSetForTls13
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainHttpsParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainHttpsParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CertificateType
-
-
- CipherSuiteSetType
-
-
- MinimumTlsVersion
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainMtlsParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainMtlsParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CertificatePassthrough
-
-
- CertificateValidation
-
-
- Ocsp
-
-
- OtherAllowedFqdn
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AzureDnsZoneId
-
-
- DeploymentStatus
-
-
- MtlSettingCertificatePassthrough
-
-
- MtlSettingCertificateValidation
-
-
- MtlSettingOcsp
-
-
- MtlSettingOtherAllowedFqdn
-
-
- PreValidatedCustomDomainResourceId
-
-
- ProfileName
-
-
- ProvisioningState
-
-
- DomainValidationState
-
-
- HostName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainPropertiesExtendedProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainPropertiesExtendedProperties
-
-
-
-
-
-
-
-
-
-
-
- Item
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainReferencedRoutePath
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainReferencedRoutePath
-
-
-
-
-
-
-
-
-
-
-
- Path
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainUpdatePropertiesParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdDomainUpdatePropertiesParameters
-
-
-
-
-
-
-
-
-
-
-
- ProfileName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpoint
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpoint
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
- Name
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpointListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpointListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpointProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpointProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DeploymentStatus
-
-
- EnabledState
-
-
- ProfileName
-
-
- ProvisioningState
-
-
- AutoGeneratedDomainNameLabelScope
-
-
- HostName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpointPropertiesUpdateParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpointPropertiesUpdateParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EnabledState
-
-
- ProfileName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpointUpdateParametersTags
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdEndpointUpdateParametersTags
-
-
-
-
-
-
-
-
-
-
-
- Item
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOrigin
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOrigin
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginGroup
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginGroup
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginGroupListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginGroupListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginGroupProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginGroupProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DeploymentStatus
-
-
- ProfileName
-
-
- ProvisioningState
-
-
- SessionAffinityState
-
-
- TrafficRestorationTimeToHealedOrNewEndpointsInMinute
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginGroupUpdatePropertiesParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginGroupUpdatePropertiesParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ProfileName
-
-
- SessionAffinityState
-
-
- TrafficRestorationTimeToHealedOrNewEndpointsInMinute
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AzureOriginId
-
-
- DeploymentStatus
-
-
- EnabledState
-
-
- EnforceCertificateNameCheck
-
-
- HostName
-
-
- HttpPort
-
-
- HttpsPort
-
-
- OriginGroupName
-
-
- OriginHostHeader
-
-
- Priority
-
-
- PrivateLinkId
-
-
- ProvisioningState
-
-
- SharedPrivateLinkResourceGroupId
-
-
- SharedPrivateLinkResourcePrivateLinkLocation
-
-
- SharedPrivateLinkResourceRequestMessage
-
-
- SharedPrivateLinkResourceStatus
-
-
- Weight
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginUpdatePropertiesParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdOriginUpdatePropertiesParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EnabledState
-
-
- EnforceCertificateNameCheck
-
-
- HostName
-
-
- HttpPort
-
-
- HttpsPort
-
-
- OriginGroupName
-
-
- OriginHostHeader
-
-
- Priority
-
-
- Weight
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdPurgeParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdPurgeParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ContentPath
-
-
- Domain
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdRouteCacheConfiguration
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdRouteCacheConfiguration
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- QueryParameter
-
-
- QueryStringCachingBehavior
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdSecretMtlsCertificateChain
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdSecretMtlsCertificateChain
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ExpirationDate
-
-
- SecretVersion
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdStateProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdStateProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DeploymentStatus
-
-
- ProvisioningState
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdUrlSigningAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdUrlSigningAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdUrlSigningActionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdUrlSigningActionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Algorithm
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AzureFirstPartyManagedCertificate
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AzureFirstPartyManagedCertificate
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ExpirationDate
-
-
- Subject
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AzureFirstPartyManagedCertificateParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AzureFirstPartyManagedCertificateParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CertificateAuthority
-
-
- ExpirationDate
-
-
- Subject
-
-
- SubjectAlternativeName
-
-
- Thumbprint
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CacheConfiguration
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CacheConfiguration
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CacheBehavior
-
-
- CacheDuration
-
-
- IsCompressionEnabled
-
-
- QueryParameter
-
-
- QueryStringCachingBehavior
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CacheExpirationActionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CacheExpirationActionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CacheBehavior
-
-
- CacheDuration
-
-
- CacheType
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CacheKeyQueryStringActionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CacheKeyQueryStringActionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- QueryParameter
-
-
- QueryStringBehavior
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CanMigrateProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CanMigrateProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CanMigrate
-
-
- DefaultSku
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CanMigrateResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CanMigrateResult
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CanMigrate
-
-
- DefaultSku
-
-
- Error
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CdnCertificateSourceParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CdnCertificateSourceParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CertificateType
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CdnManagedHttpsParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CdnManagedHttpsParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CertificateSource
-
-
- MinimumTlsVersion
-
-
- ProtocolType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Certificate
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Certificate
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ExpirationDate
-
-
- Subject
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckEndpointNameAvailabilityInput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckEndpointNameAvailabilityInput
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AutoGeneratedDomainNameLabelScope
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckEndpointNameAvailabilityOutput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckEndpointNameAvailabilityOutput
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AvailableHostname
-
-
- Message
-
-
- NameAvailable
-
-
- Reason
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckHostNameAvailabilityInput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckHostNameAvailabilityInput
-
-
-
-
-
-
-
-
-
-
-
- HostName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckNameAvailabilityInput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckNameAvailabilityInput
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckNameAvailabilityOutput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CheckNameAvailabilityOutput
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Message
-
-
- NameAvailable
-
-
- Reason
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CidrIPAddress
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CidrIPAddress
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- BaseIPAddress
-
-
- PrefixLength
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ClientPortMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ClientPortMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DateTime
-
-
- Value
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DateTime
-
-
- Value
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Metric
-
-
- Percentage
-
-
- Value
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CompressionSettings
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CompressionSettings
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ContentTypesToCompress
-
-
- IsCompressionEnabled
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ContinentsResponseCountryOrRegionsItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ContinentsResponseCountryOrRegionsItem
-
-
-
-
-
-
-
-
-
-
-
- ContinentId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CookiesMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CookiesMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Selector
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomain
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomain
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomainHttpsParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomainHttpsParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CertificateSource
-
-
- MinimumTlsVersion
-
-
- ProtocolType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomainListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomainListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomainProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomainProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CustomHttpsProvisioningState
-
-
- CustomHttpsProvisioningSubstate
-
-
- HostName
-
-
- ProvisioningState
-
-
- ResourceState
-
-
- ValidationData
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomainPropertiesParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomDomainPropertiesParameters
-
-
-
-
-
-
-
-
-
-
-
- HostName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomerCertificate
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomerCertificate
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ExpirationDate
-
-
- Subject
-
-
- CertificateAuthority
-
-
- SecretVersion
-
-
- SubjectAlternativeName
-
-
- Thumbprint
-
-
- UseLatestVersion
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomerCertificateParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomerCertificateParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CertificateAuthority
-
-
- ExpirationDate
-
-
- SecretVersion
-
-
- Subject
-
-
- SubjectAlternativeName
-
-
- Thumbprint
-
-
- UseLatestVersion
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedCustomDomain
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedCustomDomain
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedCustomDomainProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedCustomDomainProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- HostName
-
-
- ValidationData
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedOrigin
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedOrigin
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedOriginGroup
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedOriginGroup
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedOriginGroupProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedOriginGroupProperties
-
-
-
-
-
-
-
-
-
-
-
- TrafficRestorationTimeToHealedOrNewEndpointsInMinute
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedOriginProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeepCreatedOriginProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Enabled
-
-
- HostName
-
-
- HttpPort
-
-
- HttpsPort
-
-
- OriginHostHeader
-
-
- Priority
-
-
- PrivateEndpointStatus
-
-
- PrivateLinkAlias
-
-
- PrivateLinkApprovalMessage
-
-
- PrivateLinkLocation
-
-
- PrivateLinkResourceId
-
-
- Weight
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRule
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRule
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Order
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleAction1
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleAction1
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheExpirationAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheExpirationAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheKeyQueryStringAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheKeyQueryStringAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleClientPortCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleClientPortCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCookiesCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCookiesCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHostNameCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHostNameCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHttpVersionCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHttpVersionCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleIsDeviceCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleIsDeviceCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRulePostArgsCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRulePostArgsCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleQueryStringCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleQueryStringCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRemoteAddressCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRemoteAddressCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestBodyCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestBodyCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestMethodCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestMethodCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestSchemeCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestSchemeCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestUriCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestUriCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleResponseHeaderAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleResponseHeaderAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRouteConfigurationOverrideAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRouteConfigurationOverrideAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleServerPortCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleServerPortCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSocketAddrCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSocketAddrCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSslProtocolCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSslProtocolCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileExtensionCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileExtensionCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileNameCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileNameCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlPathCondition
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlPathCondition
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DimensionProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DimensionProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DisplayName
-
-
- InternalName
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DomainValidationProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DomainValidationProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ExpirationDate
-
-
- ValidationToken
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EdgenodeResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EdgenodeResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Endpoint
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Endpoint
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
- Name
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ContentTypesToCompress
-
-
- DefaultOriginGroupId
-
-
- DeliveryPolicyDescription
-
-
- IsCompressionEnabled
-
-
- IsHttpAllowed
-
-
- IsHttpsAllowed
-
-
- OptimizationType
-
-
- OriginHostHeader
-
-
- OriginPath
-
-
- ProbePath
-
-
- QueryStringCachingBehavior
-
-
- WebApplicationFirewallPolicyLinkId
-
-
- HostName
-
-
- ProvisioningState
-
-
- ResourceState
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointPropertiesUpdateParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointPropertiesUpdateParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ContentTypesToCompress
-
-
- IsCompressionEnabled
-
-
- IsHttpAllowed
-
-
- IsHttpsAllowed
-
-
- OptimizationType
-
-
- OriginHostHeader
-
-
- OriginPath
-
-
- ProbePath
-
-
- QueryStringCachingBehavior
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointPropertiesUpdateParametersDeliveryPolicy
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointPropertiesUpdateParametersDeliveryPolicy
-
-
-
-
-
-
-
-
-
-
-
- Description
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointUpdateParametersTags
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.EndpointUpdateParametersTags
-
-
-
-
-
-
-
-
-
-
-
- Item
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.GeoFilter
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.GeoFilter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Action
-
-
- CountryCode
-
-
- RelativePath
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HeaderActionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HeaderActionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- HeaderAction
-
-
- HeaderName
-
-
- TypeName
-
-
- Value
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HealthProbeParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HealthProbeParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ProbeIntervalInSecond
-
-
- ProbePath
-
-
- ProbeProtocol
-
-
- ProbeRequestType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HostNameMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HostNameMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HttpErrorRangeParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HttpErrorRangeParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Begin
-
-
- End
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HttpVersionMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HttpVersionMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IPAddressGroup
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IPAddressGroup
-
-
-
-
-
-
-
-
-
-
-
- DeliveryRegion
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IsDeviceMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IsDeviceMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyGroup
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyGroup
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyGroupListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyGroupListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyGroupProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyGroupProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DeploymentStatus
-
-
- ProvisioningState
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyVaultCertificateSourceParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyVaultCertificateSourceParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DeleteRule
-
-
- ResourceGroupName
-
-
- SecretName
-
-
- SecretVersion
-
-
- SubscriptionId
-
-
- TypeName
-
-
- UpdateRule
-
-
- VaultName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyVaultSigningKeyParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.KeyVaultSigningKeyParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ResourceGroupName
-
-
- SecretName
-
-
- SecretVersion
-
-
- SubscriptionId
-
-
- TypeName
-
-
- VaultName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadBalancingSettingsParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadBalancingSettingsParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AdditionalLatencyInMillisecond
-
-
- SampleSize
-
-
- SuccessfulSamplesRequired
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadParameters
-
-
-
-
-
-
-
-
-
-
-
- ContentPath
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LogSpecification
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LogSpecification
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- BlobDuration
-
-
- DisplayName
-
-
- LogFilterPattern
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ManagedCertificate
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ManagedCertificate
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ExpirationDate
-
-
- Subject
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ManagedCertificateParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ManagedCertificateParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ExpirationDate
-
-
- Subject
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricAvailability
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricAvailability
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- BlobDuration
-
-
- TimeGrain
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricSpecification
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricSpecification
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AggregationType
-
-
- DisplayDescription
-
-
- DisplayName
-
-
- FillGapWithZero
-
-
- IsInternal
-
-
- MetricFilterPattern
-
-
- Name
-
-
- SupportedTimeGrainType
-
-
- Unit
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricsResponse
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricsResponse
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DateTimeBegin
-
-
- DateTimeEnd
-
-
- Granularity
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricsResponseSeriesItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricsResponseSeriesItem
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Metric
-
-
- Unit
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricsResponseSeriesPropertiesItemsItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MetricsResponseSeriesPropertiesItemsItem
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Value
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrateResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrateResult
-
-
-
-
-
-
-
-
-
-
-
- PropertiesMigratedProfileResourceIdId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationEndpointMapping
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationEndpointMapping
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MigratedFrom
-
-
- MigratedTo
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationErrorType
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationErrorType
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
- ErrorMessage
-
-
- NextStep
-
-
- ResourceName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationParameters
-
-
-
-
-
-
-
-
-
-
-
- ProfileName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Operation
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Operation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- IsDataAction
-
-
- Name
-
-
- Origin
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OperationDisplay
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OperationDisplay
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Description
-
-
- Operation
-
-
- Provider
-
-
- Resource
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OperationsListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OperationsListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Origin
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Origin
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroup
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroup
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupOverride
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupOverride
-
-
-
-
-
-
-
-
-
-
-
- ForwardingProtocol
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupOverrideAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupOverrideAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupOverrideActionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupOverrideActionParameters
-
-
-
-
-
-
-
-
-
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- TrafficRestorationTimeToHealedOrNewEndpointsInMinute
-
-
- ProvisioningState
-
-
- ResourceState
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupUpdatePropertiesParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupUpdatePropertiesParameters
-
-
-
-
-
-
-
-
-
-
-
- TrafficRestorationTimeToHealedOrNewEndpointsInMinute
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Enabled
-
-
- HostName
-
-
- HttpPort
-
-
- HttpsPort
-
-
- OriginHostHeader
-
-
- Priority
-
-
- PrivateLinkAlias
-
-
- PrivateLinkApprovalMessage
-
-
- PrivateLinkLocation
-
-
- PrivateLinkResourceId
-
-
- Weight
-
-
- PrivateEndpointStatus
-
-
- ProvisioningState
-
-
- ResourceState
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginUpdatePropertiesParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginUpdatePropertiesParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Enabled
-
-
- HostName
-
-
- HttpPort
-
-
- HttpsPort
-
-
- OriginHostHeader
-
-
- Priority
-
-
- PrivateLinkAlias
-
-
- PrivateLinkApprovalMessage
-
-
- PrivateLinkLocation
-
-
- PrivateLinkResourceId
-
-
- Weight
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.PostArgsMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.PostArgsMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Selector
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Profile
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Profile
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
- Name
-
-
- Kind
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileChangeSkuWafMapping
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileChangeSkuWafMapping
-
-
-
-
-
-
-
-
-
-
-
- SecurityPolicyName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileLogScrubbing
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileLogScrubbing
-
-
-
-
-
-
-
-
-
-
-
- State
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- FrontDoorId
-
-
- OriginResponseTimeoutSecond
-
-
- ProvisioningState
-
-
- ResourceState
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfilePropertiesExtendedProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfilePropertiesExtendedProperties
-
-
-
-
-
-
-
-
-
-
-
- Item
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfilePropertiesUpdateParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfilePropertiesUpdateParameters
-
-
-
-
-
-
-
-
-
-
-
- OriginResponseTimeoutSecond
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileScrubbingRules
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileScrubbingRules
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchVariable
-
-
- Selector
-
-
- SelectorMatchOperator
-
-
- State
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileUpdateParametersTags
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileUpdateParametersTags
-
-
-
-
-
-
-
-
-
-
-
- Item
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProxyResource
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProxyResource
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.PurgeParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.PurgeParameters
-
-
-
-
-
-
-
-
-
-
-
- ContentPath
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.QueryStringMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.QueryStringMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RankingsResponse
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RankingsResponse
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DateTimeBegin
-
-
- DateTimeEnd
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RankingsResponseTablesItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RankingsResponseTablesItem
-
-
-
-
-
-
-
-
-
-
-
- Ranking
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RankingsResponseTablesPropertiesItemsItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RankingsResponseTablesPropertiesItemsItem
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RankingsResponseTablesPropertiesItemsMetricsItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RankingsResponseTablesPropertiesItemsMetricsItem
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Metric
-
-
- Percentage
-
-
- Value
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RemoteAddressMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RemoteAddressMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestBodyMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestBodyMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestHeaderMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestHeaderMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Selector
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestMethodMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestMethodMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestSchemeMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestSchemeMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestUriMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RequestUriMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Resource
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Resource
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourcesResponseCustomDomainsItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourcesResponseCustomDomainsItem
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EndpointId
-
-
- History
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourcesResponseEndpointsItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourcesResponseEndpointsItem
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- History
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourcesResponseEndpointsPropertiesItemsItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourcesResponseEndpointsPropertiesItemsItem
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EndpointId
-
-
- History
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceUsage
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceUsage
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CurrentValue
-
-
- Limit
-
-
- ResourceType
-
-
- Unit
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceUsageListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceUsageListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResponseBasedOriginErrorDetectionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResponseBasedOriginErrorDetectionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ResponseBasedDetectedErrorType
-
-
- ResponseBasedFailoverThresholdPercentage
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Route
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Route
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RouteConfigurationOverrideActionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RouteConfigurationOverrideActionParameters
-
-
-
-
-
-
-
-
-
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RouteListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RouteListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RouteProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RouteProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CacheConfigurationQueryParameter
-
-
- CacheConfigurationQueryStringCachingBehavior
-
-
- CompressionSettingContentTypesToCompress
-
-
- CompressionSettingIsCompressionEnabled
-
-
- DeploymentStatus
-
-
- EnabledState
-
-
- EndpointName
-
-
- ForwardingProtocol
-
-
- GrpcState
-
-
- HttpsRedirect
-
-
- LinkToDefaultDomain
-
-
- OriginGroupId
-
-
- OriginPath
-
-
- PatternsToMatch
-
-
- ProvisioningState
-
-
- SupportedProtocol
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RouteUpdatePropertiesParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RouteUpdatePropertiesParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EnabledState
-
-
- EndpointName
-
-
- ForwardingProtocol
-
-
- GrpcState
-
-
- HttpsRedirect
-
-
- LinkToDefaultDomain
-
-
- OriginPath
-
-
- PatternsToMatch
-
-
- SupportedProtocol
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Rule
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Rule
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DeploymentStatus
-
-
- MatchProcessingBehavior
-
-
- Order
-
-
- ProvisioningState
-
-
- RuleSetName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleSet
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleSet
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleSetListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleSetListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleSetProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleSetProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DeploymentStatus
-
-
- ProvisioningState
-
-
- ProfileName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleUpdatePropertiesParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.RuleUpdatePropertiesParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchProcessingBehavior
-
-
- Order
-
-
- RuleSetName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Secret
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Secret
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecretListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecretListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecretProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecretProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DeploymentStatus
-
-
- ProvisioningState
-
-
- ProfileName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicy
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicy
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DeploymentStatus
-
-
- ProvisioningState
-
-
- ProfileName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyWebApplicationFirewallAssociation
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyWebApplicationFirewallAssociation
-
-
-
-
-
-
-
-
-
-
-
- PatternsToMatch
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ServerPortMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ServerPortMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SharedPrivateLinkResourceProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SharedPrivateLinkResourceProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- GroupId
-
-
- PrivateLinkLocation
-
-
- RequestMessage
-
-
- Status
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Sku
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Sku
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SocketAddrMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SocketAddrMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SslProtocolMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SslProtocolMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SsoUri
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SsoUri
-
-
-
-
-
-
-
-
-
-
-
- Value
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SupportedOptimizationTypesListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SupportedOptimizationTypesListResult
-
-
-
-
-
-
-
-
-
-
-
- SupportedOptimizationType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SystemData
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SystemData
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CreatedAt
-
-
- CreatedBy
-
-
- CreatedByType
-
-
- LastModifiedAt
-
-
- LastModifiedBy
-
-
- LastModifiedByType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.TrackedResource
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.TrackedResource
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.TrackedResourceTags
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.TrackedResourceTags
-
-
-
-
-
-
-
-
-
-
-
- Item
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlFileExtensionMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlFileExtensionMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlFileNameMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlFileNameMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlPathMatchConditionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlPathMatchConditionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MatchValue
-
-
- NegateCondition
-
-
- Operator
-
-
- Transform
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectActionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectActionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CustomFragment
-
-
- CustomHostname
-
-
- CustomPath
-
-
- CustomQueryString
-
-
- DestinationProtocol
-
-
- RedirectType
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteActionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteActionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Destination
-
-
- PreserveUnmatchedPath
-
-
- SourcePattern
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningAction
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningAction
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningActionParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningActionParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Algorithm
-
-
- TypeName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningKey
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningKey
-
-
-
-
-
-
-
-
-
-
-
- KeyId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningKeyParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningKeyParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- KeyId
-
-
- SecretVersion
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningParamIdentifier
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningParamIdentifier
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ParamIndicator
-
-
- ParamName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Usage
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.Usage
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CurrentValue
-
-
- Limit
-
-
- Unit
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UsageName
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UsageName
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- LocalizedValue
-
-
- Value
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UsagesListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UsagesListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UserManagedHttpsParameters
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UserManagedHttpsParameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CertificateSource
-
-
- MinimumTlsVersion
-
-
- ProtocolType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateCustomDomainInput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateCustomDomainInput
-
-
-
-
-
-
-
-
-
-
-
- HostName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateCustomDomainOutput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateCustomDomainOutput
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CustomDomainValidated
-
-
- Message
-
-
- Reason
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateProbeInput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateProbeInput
-
-
-
-
-
-
-
-
-
-
-
- ProbeUrl
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateProbeOutput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateProbeOutput
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ErrorCode
-
-
- IsValid
-
-
- Message
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateSecretInput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateSecretInput
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SecretType
-
-
- SecretVersion
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateSecretOutput
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidateSecretOutput
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Message
-
-
- Status
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidationToken
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ValidationToken
-
-
-
-
-
-
-
-
-
-
-
- Token
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafMetricsResponse
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafMetricsResponse
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DateTimeBegin
-
-
- DateTimeEnd
-
-
- Granularity
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafMetricsResponseSeriesItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafMetricsResponseSeriesItem
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Metric
-
-
- Unit
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafMetricsResponseSeriesPropertiesItemsItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafMetricsResponseSeriesPropertiesItemsItem
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- Value
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafRankingsResponse
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafRankingsResponse
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DateTimeBegin
-
-
- DateTimeEnd
-
-
- Group
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafRankingsResponseDataItem
-
- Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.WafRankingsResponseDataItem
-
-
-
-
-
-
-
-
-
-
-
- GroupValue
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Cdn/Cdn.Autorest/Az.Cdn.psd1 b/src/Cdn/Cdn.Autorest/Az.Cdn.psd1
deleted file mode 100644
index 1f8e46c62cc6..000000000000
--- a/src/Cdn/Cdn.Autorest/Az.Cdn.psd1
+++ /dev/null
@@ -1,24 +0,0 @@
-@{
- GUID = 'f9fae843-9c26-4513-9442-17f4379802bf'
- RootModule = './Az.Cdn.psm1'
- ModuleVersion = '0.1.0'
- CompatiblePSEditions = 'Core', 'Desktop'
- Author = 'Microsoft Corporation'
- CompanyName = 'Microsoft Corporation'
- Copyright = 'Microsoft Corporation. All rights reserved.'
- Description = 'Microsoft Azure PowerShell: Cdn cmdlets'
- PowerShellVersion = '5.1'
- DotNetFrameworkVersion = '4.7.2'
- RequiredAssemblies = './bin/Az.Cdn.private.dll'
- FormatsToProcess = './Az.Cdn.format.ps1xml'
- FunctionsToExport = 'Clear-AzCdnEndpointContent', 'Clear-AzFrontDoorCdnEndpointContent', 'Disable-AzCdnCustomDomainCustomHttps', 'Enable-AzCdnCustomDomainCustomHttps', 'Enable-AzFrontDoorCdnProfileMigration', 'Get-AzCdnCustomDomain', 'Get-AzCdnEdgeNode', 'Get-AzCdnEndpoint', 'Get-AzCdnEndpointResourceUsage', 'Get-AzCdnOrigin', 'Get-AzCdnOriginGroup', 'Get-AzCdnProfile', 'Get-AzCdnProfileResourceUsage', 'Get-AzCdnProfileSupportedOptimizationType', 'Get-AzCdnSubscriptionResourceUsage', 'Get-AzFrontDoorCdnCustomDomain', 'Get-AzFrontDoorCdnEndpoint', 'Get-AzFrontDoorCdnEndpointResourceUsage', 'Get-AzFrontDoorCdnOrigin', 'Get-AzFrontDoorCdnOriginGroup', 'Get-AzFrontDoorCdnOriginGroupResourceUsage', 'Get-AzFrontDoorCdnProfile', 'Get-AzFrontDoorCdnProfileResourceUsage', 'Get-AzFrontDoorCdnRoute', 'Get-AzFrontDoorCdnRule', 'Get-AzFrontDoorCdnRuleSet', 'Get-AzFrontDoorCdnRuleSetResourceUsage', 'Get-AzFrontDoorCdnSecret', 'Get-AzFrontDoorCdnSecurityPolicy', 'Import-AzCdnEndpointContent', 'Invoke-AzCdnAbortProfileToAFDMigration', 'Invoke-AzCdnCommitProfileToAFDMigration', 'Move-AzCdnProfileToAFD', 'New-AzCdnCustomDomain', 'New-AzCdnDeliveryRuleCacheExpirationActionObject', 'New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject', 'New-AzCdnDeliveryRuleCookiesConditionObject', 'New-AzCdnDeliveryRuleHttpVersionConditionObject', 'New-AzCdnDeliveryRuleIsDeviceConditionObject', 'New-AzCdnDeliveryRuleObject', 'New-AzCdnDeliveryRulePostArgsConditionObject', 'New-AzCdnDeliveryRuleQueryStringConditionObject', 'New-AzCdnDeliveryRuleRemoteAddressConditionObject', 'New-AzCdnDeliveryRuleRequestBodyConditionObject', 'New-AzCdnDeliveryRuleRequestHeaderActionObject', 'New-AzCdnDeliveryRuleRequestHeaderConditionObject', 'New-AzCdnDeliveryRuleRequestMethodConditionObject', 'New-AzCdnDeliveryRuleRequestSchemeConditionObject', 'New-AzCdnDeliveryRuleRequestUriConditionObject', 'New-AzCdnDeliveryRuleResponseHeaderActionObject', 'New-AzCdnDeliveryRuleUrlFileExtensionConditionObject', 'New-AzCdnDeliveryRuleUrlFileNameConditionObject', 'New-AzCdnDeliveryRuleUrlPathConditionObject', 'New-AzCdnEndpoint', 'New-AzCdnHealthProbeParametersObject', 'New-AzCdnLoadParametersObject', 'New-AzCdnManagedHttpsParametersObject', 'New-AzCdnMigrationEndpointMappingObject', 'New-AzCdnOrigin', 'New-AzCdnOriginGroup', 'New-AzCdnOriginGroupOverrideActionObject', 'New-AzCdnProfile', 'New-AzCdnPurgeParametersObject', 'New-AzCdnResourceReferenceObject', 'New-AzCdnResponseBasedOriginErrorDetectionParametersObject', 'New-AzCdnUrlRedirectActionObject', 'New-AzCdnUrlRewriteActionObject', 'New-AzCdnUrlSigningActionObject', 'New-AzCdnUserManagedHttpsParametersObject', 'New-AzFrontDoorCdnCustomDomain', 'New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject', 'New-AzFrontDoorCdnEndpoint', 'New-AzFrontDoorCdnMigrationParametersObject', 'New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject', 'New-AzFrontDoorCdnOrigin', 'New-AzFrontDoorCdnOriginGroup', 'New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject', 'New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject', 'New-AzFrontDoorCdnProfile', 'New-AzFrontDoorCdnProfileChangeSkuWafMappingObject', 'New-AzFrontDoorCdnProfileLogScrubbingObject', 'New-AzFrontDoorCdnProfileScrubbingRulesObject', 'New-AzFrontDoorCdnProfileUpgradeParametersObject', 'New-AzFrontDoorCdnPurgeParametersObject', 'New-AzFrontDoorCdnResourceReferenceObject', 'New-AzFrontDoorCdnRoute', 'New-AzFrontDoorCdnRule', 'New-AzFrontDoorCdnRuleClientPortConditionObject', 'New-AzFrontDoorCdnRuleCookiesConditionObject', 'New-AzFrontDoorCdnRuleHostNameConditionObject', 'New-AzFrontDoorCdnRuleHttpVersionConditionObject', 'New-AzFrontDoorCdnRuleIsDeviceConditionObject', 'New-AzFrontDoorCdnRulePostArgsConditionObject', 'New-AzFrontDoorCdnRuleQueryStringConditionObject', 'New-AzFrontDoorCdnRuleRemoteAddressConditionObject', 'New-AzFrontDoorCdnRuleRequestBodyConditionObject', 'New-AzFrontDoorCdnRuleRequestHeaderActionObject', 'New-AzFrontDoorCdnRuleRequestHeaderConditionObject', 'New-AzFrontDoorCdnRuleRequestMethodConditionObject', 'New-AzFrontDoorCdnRuleRequestSchemeConditionObject', 'New-AzFrontDoorCdnRuleRequestUriConditionObject', 'New-AzFrontDoorCdnRuleResponseHeaderActionObject', 'New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject', 'New-AzFrontDoorCdnRuleServerPortConditionObject', 'New-AzFrontDoorCdnRuleSet', 'New-AzFrontDoorCdnRuleSocketAddrConditionObject', 'New-AzFrontDoorCdnRuleSslProtocolConditionObject', 'New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject', 'New-AzFrontDoorCdnRuleUrlFileNameConditionObject', 'New-AzFrontDoorCdnRuleUrlPathConditionObject', 'New-AzFrontDoorCdnRuleUrlRedirectActionObject', 'New-AzFrontDoorCdnRuleUrlRewriteActionObject', 'New-AzFrontDoorCdnRuleUrlSigningActionObject', 'New-AzFrontDoorCdnSecret', 'New-AzFrontDoorCdnSecretCustomerCertificateParametersObject', 'New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject', 'New-AzFrontDoorCdnSecretManagedCertificateParametersObject', 'New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject', 'New-AzFrontDoorCdnSecurityPolicy', 'New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject', 'New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject', 'Remove-AzCdnCustomDomain', 'Remove-AzCdnEndpoint', 'Remove-AzCdnOrigin', 'Remove-AzCdnOriginGroup', 'Remove-AzCdnProfile', 'Remove-AzFrontDoorCdnCustomDomain', 'Remove-AzFrontDoorCdnEndpoint', 'Remove-AzFrontDoorCdnOrigin', 'Remove-AzFrontDoorCdnOriginGroup', 'Remove-AzFrontDoorCdnProfile', 'Remove-AzFrontDoorCdnRoute', 'Remove-AzFrontDoorCdnRule', 'Remove-AzFrontDoorCdnRuleSet', 'Remove-AzFrontDoorCdnSecret', 'Remove-AzFrontDoorCdnSecurityPolicy', 'Start-AzCdnEndpoint', 'Start-AzFrontDoorCdnProfilePrepareMigration', 'Stop-AzCdnEndpoint', 'Stop-AzFrontDoorCdnProfileMigration', 'Test-AzCdnEndpointCustomDomain', 'Test-AzCdnNameAvailability', 'Test-AzCdnProbe', 'Test-AzCdnProfileMigrationCompatibility', 'Test-AzFrontDoorCdnEndpointCustomDomain', 'Test-AzFrontDoorCdnEndpointNameAvailability', 'Test-AzFrontDoorCdnProfileHostNameAvailability', 'Test-AzFrontDoorCdnProfileMigration', 'Update-AzCdnEndpoint', 'Update-AzCdnOrigin', 'Update-AzCdnOriginGroup', 'Update-AzCdnProfile', 'Update-AzFrontDoorCdnCustomDomain', 'Update-AzFrontDoorCdnCustomDomainValidationToken', 'Update-AzFrontDoorCdnEndpoint', 'Update-AzFrontDoorCdnOrigin', 'Update-AzFrontDoorCdnOriginGroup', 'Update-AzFrontDoorCdnProfile', 'Update-AzFrontDoorCdnProfileSku', 'Update-AzFrontDoorCdnRoute', 'Update-AzFrontDoorCdnRule', 'Update-AzFrontDoorCdnSecurityPolicy', '*'
- AliasesToExport = '*'
- PrivateData = @{
- PSData = @{
- Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Cdn'
- LicenseUri = 'https://aka.ms/azps-license'
- ProjectUri = 'https://github.com/Azure/azure-powershell'
- ReleaseNotes = ''
- }
- }
-}
diff --git a/src/Cdn/Cdn.Autorest/Az.Cdn.psm1 b/src/Cdn/Cdn.Autorest/Az.Cdn.psm1
deleted file mode 100644
index c1cf393c6cb9..000000000000
--- a/src/Cdn/Cdn.Autorest/Az.Cdn.psm1
+++ /dev/null
@@ -1,119 +0,0 @@
-# region Generated
- # ----------------------------------------------------------------------------------
- # 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.
- # ----------------------------------------------------------------------------------
- # Load required Az.Accounts module
- $accountsName = 'Az.Accounts'
- $accountsModule = Get-Module -Name $accountsName
- if(-not $accountsModule) {
- $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules'
- if(Test-Path -Path $localAccountsPath) {
- $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1
- if($localAccounts) {
- $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru
- }
- }
- if(-not $accountsModule) {
- $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
- if($hasAdequateVersion) {
- $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
- }
- }
- }
-
- if(-not $accountsModule) {
- Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
- } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
- Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
- }
- Write-Information "Loaded Module '$($accountsModule.Name)'"
-
- # Load the private module dll
- $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.Cdn.private.dll')
-
- # Get the private module's instance
- $instance = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Module]::Instance
-
- # Ask for the shared functionality table
- $VTable = Register-AzModule
-
- # Tweaks the pipeline on module load
- $instance.OnModuleLoad = $VTable.OnModuleLoad
-
- # Following two delegates are added for telemetry
- $instance.GetTelemetryId = $VTable.GetTelemetryId
- $instance.Telemetry = $VTable.Telemetry
-
- # Delegate to sanitize the output object
- $instance.SanitizeOutput = $VTable.SanitizerHandler
-
- # Delegate to get the telemetry info
- $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo
-
- # Tweaks the pipeline per call
- $instance.OnNewRequest = $VTable.OnNewRequest
-
- # Gets shared parameter values
- $instance.GetParameterValue = $VTable.GetParameterValue
-
- # Allows shared module to listen to events from this module
- $instance.EventListener = $VTable.EventListener
-
- # Gets shared argument completers
- $instance.ArgumentCompleter = $VTable.ArgumentCompleter
-
- # The name of the currently selected Azure profile
- $instance.ProfileName = $VTable.ProfileName
-
- # Load the custom module
- $customModulePath = Join-Path $PSScriptRoot './custom/Az.Cdn.custom.psm1'
- if(Test-Path $customModulePath) {
- $null = Import-Module -Name $customModulePath
- }
-
- # Export nothing to clear implicit exports
- Export-ModuleMember
-
- # Export proxy cmdlet scripts
- $exportsPath = Join-Path $PSScriptRoot './exports'
- $directories = Get-ChildItem -Directory -Path $exportsPath
- $profileDirectory = $null
- if($instance.ProfileName) {
- if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) {
- $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName }
- } else {
- # Don't export anything if the profile doesn't exist for the module
- $exportsPath = $null
- Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded."
- }
- } elseif(($directories | Measure-Object).Count -gt 0) {
- # Load the last folder if no profile is selected
- $profileDirectory = $directories | Select-Object -Last 1
- }
-
- if($profileDirectory) {
- Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
- $exportsPath = $profileDirectory.FullName
- }
-
- if($exportsPath) {
- Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
- $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
- Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias)
- }
-
- # Finalize initialization of this module
- $instance.Init();
- Write-Information "Loaded Module '$($instance.Name)'"
-# endregion
diff --git a/src/Cdn/Cdn.Autorest/Properties/AssemblyInfo.cs b/src/Cdn/Cdn.Autorest/Properties/AssemblyInfo.cs
index 56036f6f7c1b..4f6748f0eac8 100644
--- a/src/Cdn/Cdn.Autorest/Properties/AssemblyInfo.cs
+++ b/src/Cdn/Cdn.Autorest/Properties/AssemblyInfo.cs
@@ -1,28 +1,26 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// Licensed under the Apache License, Version 2.0 (the "License");
+// 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,
+// 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.
using System;
using System.Reflection;
+using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-[assembly: AssemblyTitle("Microsoft Azure Powershell - Cdn")]
-[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
-[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
-[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
-
-[assembly: ComVisible(false)]
-[assembly: CLSCompliant(false)]
-[assembly: Guid("89d80a5c-524f-42ac-9f55-8271fa0bca3d")]
-[assembly: AssemblyVersion("4.0.0")]
-[assembly: AssemblyFileVersion("4.0.0")]
\ No newline at end of file
+[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
+[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
+[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Cdn")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.2")]
+[assembly: System.Reflection.AssemblyVersionAttribute("6.0.2")]
+[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
diff --git a/src/Cdn/Cdn.Autorest/README.md b/src/Cdn/Cdn.Autorest/README.md
index 67e1ba8010d9..caf311366383 100644
--- a/src/Cdn/Cdn.Autorest/README.md
+++ b/src/Cdn/Cdn.Autorest/README.md
@@ -32,8 +32,9 @@ require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
# You need to specify your swagger files here.
- - $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/preview/2024-05-01-preview/afdx.json
- - $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/preview/2024-05-01-preview/cdn.json
+ - $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/Cdn/preview/2026-04-01-preview/openapi.json
+ - $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/Cdn/preview/2024-07-22-preview/edgeaction.json
+
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
# - (this-folder)/relative-path-to-your-swagger
@@ -42,7 +43,9 @@ module-version: 0.1.0
# Normally, title is the service name
title: Cdn
subject-prefix: $(service-name)
-commit: a83c34348fbd25ad79a05e36816b91da0122b583
+# Change Safety: opt in -AcquirePolicyToken / -ChangeReference on write cmdlets
+enable-change-safety: true
+commit: 9e9079a5d235e0c804e7fbb188258a84b4221571
# If there are post APIs for some kinds of actions in the RP, you may need to
# uncomment following line to support viaIdentity for these post APIs
@@ -51,9 +54,8 @@ identity-correction-for-post: true
resourcegroup-append: true
nested-object-to-string: true
-# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
-use-extension:
- "@autorest/powershell": "3.x"
+disable-transform-identity-type: true
+flatten-userassignedidentity: false
directive:
- from: swagger-document
@@ -70,59 +72,186 @@ directive:
- ResponseBasedOriginErrorDetectionParameters
# Both CDN and AFDX
- HealthProbeParameters
- # Generate memory object as parameter of the cmelet.
+ # Generate memory object as parameter of the cmdlet.
- model-cmdlet:
- - ResourceReference
+ - model-name: ResourceReference
+ cmdlet-name: New-AzCdnResourceReferenceObject
+ - model-name: ResourceReference
+ cmdlet-name: New-AzFrontDoorCdnResourceReferenceObject
# origin group parameters
- - HealthProbeParameters
- - ResponseBasedOriginErrorDetectionParameters
+ - model-name: HealthProbeParameters
+ cmdlet-name: New-AzCdnHealthProbeParametersObject
+ - model-name: ResponseBasedOriginErrorDetectionParameters
+ cmdlet-name: New-AzCdnResponseBasedOriginErrorDetectionParametersObject
# https
- - UserManagedHttpsParameters
- - CdnManagedHttpsParameters
- - DeliveryRule
+ # - model-name: UserManagedHttpsParameters
+ # cmdlet-name: New-AzCdnUserManagedHttpsParametersObject
+ # - model-name: CdnManagedHttpsParameters
+ # cmdlet-name: New-AzCdnManagedHttpsParametersObject
+ - model-name: DeliveryRule
+ cmdlet-name: New-AzCdnDeliveryRuleObject
# CDN condition
- - DeliveryRuleRemoteAddressCondition
- - DeliveryRuleRequestMethodCondition
- - DeliveryRuleQueryStringCondition
- - DeliveryRulePostArgsCondition
- - DeliveryRuleRequestUriCondition
- - DeliveryRuleRequestHeaderCondition
- - DeliveryRuleRequestBodyCondition
- - DeliveryRuleRequestSchemeCondition
- - DeliveryRuleUrlPathCondition
- - DeliveryRuleUrlFileExtensionCondition
- - DeliveryRuleUrlFileNameCondition
- - DeliveryRuleHttpVersionCondition
- - DeliveryRuleCookiesCondition
- - DeliveryRuleIsDeviceCondition
+ # - model-name: DeliveryRuleRemoteAddressCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleRemoteAddressConditionObject
+ # - model-name: DeliveryRuleRequestMethodCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleRequestMethodConditionObject
+ # - model-name: DeliveryRuleQueryStringCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleQueryStringConditionObject
+ # - model-name: DeliveryRulePostArgsCondition
+ # cmdlet-name: New-AzCdnDeliveryRulePostArgsConditionObject
+ # - model-name: DeliveryRuleRequestUriCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleRequestUriConditionObject
+ # - model-name: DeliveryRuleRequestHeaderCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleRequestHeaderConditionObject
+ # - model-name: DeliveryRuleRequestBodyCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleRequestBodyConditionObject
+ # - model-name: DeliveryRuleRequestSchemeCondition
+ # # cmdlet-name: New-AzCdnDeliveryRuleRequestSchemeConditionObject
+ # - model-name: DeliveryRuleUrlPathCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleUrlPathConditionObject
+ # - model-name: DeliveryRuleUrlFileExtensionCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleUrlFileExtensionConditionObject
+ # - model-name: DeliveryRuleUrlFileNameCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleUrlFileNameConditionObject
+ # - model-name: DeliveryRuleHttpVersionCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleHttpVersionConditionObject
+ # - model-name: DeliveryRuleCookiesCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleCookiesConditionObject
+ # - model-name: DeliveryRuleIsDeviceCondition
+ # cmdlet-name: New-AzCdnDeliveryRuleIsDeviceConditionObject
+
+ # - model-name: DeliveryRuleRequestBodyCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleRequestBodyConditionObject
+ # - model-name: DeliveryRuleCookiesCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleCookiesConditionObject
+ # - model-name: DeliveryRuleHttpVersionCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleHttpVersionConditionObject
+ # - model-name: DeliveryRuleIsDeviceCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleIsDeviceConditionObject
+ # - model-name: DeliveryRulePostArgsCondition
+ # cmdlet-name: New-AzFrontDoorCdnRulePostArgsConditionObject
+ # - model-name: DeliveryRuleQueryStringCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleQueryStringConditionObject
+ # - model-name: DeliveryRuleRemoteAddressCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleRemoteAddressConditionObject
+ # - model-name: DeliveryRuleRequestHeaderCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleRequestHeaderConditionObject
+ # - model-name: DeliveryRuleRequestMethodCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleRequestMethodConditionObject
+ # - model-name: DeliveryRuleRequestSchemeCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleRequestSchemeConditionObject
+ # - model-name: DeliveryRuleRequestUriCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleRequestUriConditionObject
+ # - model-name: DeliveryRuleUrlFileExtensionCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject
+ # - model-name: DeliveryRuleUrlFileNameCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleUrlFileNameConditionObject
+ # - model-name: DeliveryRuleUrlPathCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleUrlPathConditionObject
+ # - model-name: DeliveryRuleServerPortCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleServerPortConditionObject
+ # - model-name: DeliveryRuleClientPortCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleClientPortConditionObject
+ # - model-name: DeliveryRuleHostNameCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleHostNameConditionObject
+ # - model-name: DeliveryRuleSocketAddrCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleSocketAddrConditionObject
+ # - model-name: DeliveryRuleSslProtocolCondition
+ # cmdlet-name: New-AzFrontDoorCdnRuleSslProtocolConditionObject
+
+ - model-name: AfdDomainHttpsParameters
+ cmdlet-name: New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject
+
+ - model-name: AfdPurgeParameters
+ cmdlet-name: New-AzFrontDoorCdnPurgeParametersObject
+
+ # - model-name: CustomerCertificateParameters
+ # cmdlet-name: New-AzFrontDoorCdnSecretCustomerCertificateParametersObject
+
+ # - model-name: AzureFirstPartyManagedCertificateParameters
+ # cmdlet-name: New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject
+ # - model-name: ManagedCertificateParameters
+ # cmdlet-name: New-AzFrontDoorCdnSecretManagedCertificateParametersObject
+ # - model-name: UrlSigningKeyParameters
+ # cmdlet-name: New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject
+
+ - model-name: SecurityPolicyWebApplicationFirewallAssociation
+ cmdlet-name: New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject
+ - model-name: SecurityPolicyWebApplicationFirewallParameters
+ cmdlet-name: New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject
+
+ # OriginGroup Parameters
+ - model-name: HealthProbeParameters
+ cmdlet-name: New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject
+ - model-name: LoadBalancingSettingsParameters
+ cmdlet-name: New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject
+
# CDN action
- - DeliveryRuleCacheExpirationAction
- - DeliveryRuleCacheKeyQueryStringAction
- - OriginGroupOverrideAction
- - UrlRedirectAction
- - UrlSigningAction
- - UrlRewriteAction
- - DeliveryRuleRequestHeaderAction
- - DeliveryRuleResponseHeaderAction
- # CDN content
- - PurgeParameters
- - LoadParameters
- - MigrationEndpointMapping
- # AFDX profile LogScrubbing, need to rename the memory ojects, not sure how to rename a memory object currently.
- # - ProfileLogScrubbing
- # - ProfileScrubbingRules
+ # - model-name: DeliveryRuleCacheExpirationAction
+ # cmdlet-name: New-AzCdnDeliveryRuleCacheExpirationActionObject
+ # - model-name: DeliveryRuleCacheKeyQueryStringAction
+ # cmdlet-name: New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject
+ # - model-name: OriginGroupOverrideAction
+ # cmdlet-name: New-AzCdnOriginGroupOverrideActionObject
+ # - model-name: UrlRedirectAction
+ # cmdlet-name: New-AzFrontDoorCdnRuleUrlRedirectActionObject
+ # - model-name: UrlRewriteAction
+ # cmdlet-name: New-AzFrontDoorCdnRuleUrlRewriteActionObject
+ # - model-name: UrlAction
+ # cmdlet-name: New-AzFrontDoorCdnRuleUrlActionObject
+ # - model-name: UrlSigningAction
+ # cmdlet-name: New-AzFrontDoorCdnRuleUrlSigningActionObject
+ # - model-name: DeliveryRuleRequestHeaderAction
+ # cmdlet-name: New-AzCdnDeliveryRuleRequestHeaderActionObject
+ # - model-name: DeliveryRuleResponseHeaderAction
+ # cmdlet-name: New-AzCdnDeliveryRuleResponseHeaderActionObject
+
+ # - model-name: UrlRedirectAction
+ # cmdlet-name: New-AzCdnUrlRedirectActionObject
+ # - model-name: UrlRewriteAction
+ # cmdlet-name: New-AzCdnUrlRewriteActionObject
+ # - model-name: UrlSigningAction
+ # cmdlet-name: New-AzCdnUrlSigningActionObject
+ # - model-name: DeliveryRuleRequestHeaderAction
+ # cmdlet-name: New-AzFrontDoorCdnRuleRequestHeaderActionObject
+ # - model-name: DeliveryRuleResponseHeaderAction
+ # cmdlet-name: New-AzFrontDoorCdnRuleResponseHeaderActionObject
+ # - model-name: DeliveryRuleRouteConfigurationOverrideAction
+ # cmdlet-name: New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject
+
+ # CDN content
+ - model-name: PurgeParameters
+ cmdlet-name: New-AzCdnPurgeParametersObject
+ - model-name: LoadParameters
+ cmdlet-name: New-AzCdnLoadParametersObject
+ - model-name: MigrationEndpointMapping
+ cmdlet-name: New-AzCdnMigrationEndpointMappingObject
+ # AFDX profile LogScrubbing, need to rename the memory objects, not sure how to rename a memory object currently.
+ - model-name: ProfileLogScrubbing
+ cmdlet-name: New-AzFrontDoorCdnProfileLogScrubbingObject
+ - model-name: ProfileScrubbingRules
+ cmdlet-name: New-AzFrontDoorCdnProfileScrubbingRulesObject
# Migration to AFDx
- # - MigrationParameters
- # - MigrationWebApplicationFirewallMapping
+ - model-name: MigrationParameters
+ cmdlet-name: New-AzFrontDoorCdnMigrationParametersObject
+ - model-name: MigrationWebApplicationFirewallMapping
+ cmdlet-name: New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject
# Upgrade sku
- # - ProfileUpgradeParameters
- # - ProfileChangeSkuWafMapping
+ - model-name: ProfileUpgradeParameters
+ cmdlet-name: New-AzFrontDoorCdnProfileUpgradeParametersObject
+ - model-name: ProfileChangeSkuWafMapping
+ cmdlet-name: New-AzFrontDoorCdnProfileChangeSkuWafMappingObject
+
+ - model-name: OriginGroupHealthProbeSetting
+ cmdlet-name: New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject
+
+ #
# rename CdnProfiles_CdnMigrateToAfd to avoid conflict with Profiles_Migrate
- from: swagger-document
where: $.paths..operationId
- transform: return $.replace(/^CdnProfiles_CdnMigrateToAfd$/g, "CdnProfilesToAfd_CdnMigrateToAfd")
+ transform: return $.replace(/^Profiles_CdnMigrateToAfd$/g, "CdnProfilesToAfd_CdnMigrateToAfd")
- where:
model-name: .*
@@ -152,7 +281,7 @@ directive:
- where:
verb: Set
remove: true
- # Remove some cmdlets' ViaIdentity which are inconvinient to call
+ # Remove some cmdlets' ViaIdentity which are inconvenient to call
- where:
variant: ^CheckViaIdentity$|^CheckViaIdentityExpanded$
subject: ^NameAvailability$|^EndpointNameAvailability$
@@ -166,8 +295,12 @@ directive:
subject: ^CustomDomainCustomHttps$
remove: true
- where:
- variant: ^UpgradeExpanded$
- subject: AFDProfileSku
+ subject: NameAvailability
+ variant: ^CheckViaJsonFilePath1$
+ remove: true
+ - where:
+ subject: NameAvailability
+ variant: ^CheckViaJsonString1$
remove: true
# Hide Cdn profile
@@ -185,6 +318,7 @@ directive:
hide: true
# Hide classicAfd migrate command and customize
- where:
+ verb: Invoke
subject: CanProfileMigrate
hide: true
- where:
@@ -215,6 +349,18 @@ directive:
subject: KeyGroupUpdate
hide: true
+ # Hide retired classic CDN WAF policy API
+ - where:
+ subject: Policy
+ verb: Get|New|Update|Remove
+ hide: true
+
+ # Hide New-AzFrontDoorCdnRoute to customize
+ - where:
+ subject: Route
+ verb: New
+ hide: true
+
# Rename
- where:
subject: Afd(.*)
@@ -262,49 +408,24 @@ directive:
subject: CdnProfileTo
set:
subject: CdnProfileToAFD
- - where:
- subject: CanCdnProfile
- set:
- subject: CanCdnProfileToAFD
# Hide classicCdn migrate command and customize, must be put after rename
- where:
subject-prefix: FrontDoorCdn
- subject: CdnProfileToAFD
+ subject: CdnProfilesTo
verb: Move
hide: true
- set:
- preview-announcement:
- preview-message: This is a test preview message.
- stimated-ga-date: 2024-08-30
- where:
subject: AbortProfileMigration
set:
subject: AbortProfileToAFDMigration
- preview-announcement:
- preview-message: This is a test preview message.
- stimated-ga-date: 2024-08-30
- where:
verb: Invoke
- subject: CanCdnProfileToAFD
+ subjectPrefix: Cdn
+ subject: CanProfile
set:
verb: Test
subject: ProfileMigrationCompatibility
- preview-announcement:
- preview-message: This is a test preview message.
- stimated-ga-date: 2024-08-30
-
- # https://github.com/Azure/autorest.powershell/issues/906
- - where:
- model-name: AfdDomainUpdatePropertiesParameters
- property-name: PreValidatedCustomDomainResourceId
- set:
- property-name: AfdDomainUpdatePropertiesParametersPreValidatedCustomDomainResourceId
- - where:
- model-name: AfdDomainUpdatePropertiesParameters
- property-name: PreValidatedCustomDomainResourceIdId
- set:
- property-name: PreValidatedCustomDomainResourceId
# Customize the output table formatting
- where:
@@ -331,6 +452,34 @@ directive:
format-table:
properties:
- Id
+ # Abort
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/migrationAbort"].post.responses
+ transform: >-
+ return {
+ "200": {
+ "description": "Accepted and the operation will complete asynchronously.",
+ "headers": {
+ "location": {
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Accepted and the operation will complete asynchronously.",
+ "headers": {
+ "location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "CDN error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
+ }
+ }
+ }
# Delete 404
- from: swagger-document
@@ -353,4 +502,276 @@ directive:
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}"].delete
transform: >-
$["x-ms-long-running-operation-options"] = {"final-state-via": "azure-async-operation"}
+
+ # --------------------------------------------------------------------------
+ # LRO contract workaround: rewrite final-state-via location -> original-uri
+ # --------------------------------------------------------------------------
+ # Many CDN swagger operations declare final-state-via: location but the
+ # live service returns 200/201 synchronously with the terminal resource body
+ # and does NOT emit a Location header. The autorest.powershell v4 LRO
+ # client then calls `new Uri("")` and throws
+ # UriFormatException: Invalid URI: The URI is empty.
+ # Rewriting to original-uri makes the client re-GET the original request
+ # URL, which already has the completed resource.
+ #
+ # We apply this to non-delete operations that currently declare
+ # final-state-via: location in the CDN openapi spec.
+
+ # --- Microsoft.Cdn/profiles ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}"].patch
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ # --- Microsoft.Cdn/profiles/endpoints ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}"].patch
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ # --- endpoints/customDomains ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ # --- endpoints/customDomains actions ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/disableCustomHttps"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+
+ # --- endpoints/originGroups ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups/{originGroupName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups/{originGroupName}"].patch
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ # --- endpoints/origins ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}"].patch
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ # --- cdnWebApplicationFirewallPolicies ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}"].patch
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+
+ # --- canMigrate / migrate ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/canMigrate"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/migrate"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+
+ # --- profiles/agents ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/agents/{agentName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/agents/{agentName}"].patch
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ # --- profiles/cdnCanMigrateToAfd, cdnMigrateToAfd, migrationAbort, upgrade ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/cdnCanMigrateToAfd"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/cdnMigrateToAfd"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/migrationAbort"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/upgrade"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+
+ # --- profiles/deploymentVersions/{versionName}/approve ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/deploymentVersions/{versionName}/approve"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+
+ # --- profiles/keyGroups ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}"].patch
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ # --- webAgents ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}"].patch
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ # --- webAgents/knowledgeSources ---
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources/{knowledgeSourceName}"].put
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources/{knowledgeSourceName}"].patch
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources/{knowledgeSourceName}/purge"].post
+ transform: >-
+ if ($["x-ms-long-running-operation-options"] && $["x-ms-long-running-operation-options"]["final-state-via"] === "location") {
+ $["x-ms-long-running-operation-options"]["final-state-via"] = "original-uri";
+ }
+ return $;
+
+ - where:
+ subjectPrefix: Cdn
+ subject: Profile
+ set:
+ breaking-change:
+ deprecated-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUserAssignedIdentities
+ replacement-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IManagedServiceIdentityUserAssignedIdentities
+ change-description: The type of property 'IdentityUserAssignedIdentity' of type 'Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUserAssignedIdentities' to 'Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IManagedServiceIdentityUserAssignedIdentities'.
+ deprecated-by-version: 5.3.0
+ deprecated-by-azversion: 14.4.0
+ change-effective-date: 2025/11/01
+ - where:
+ subjectPrefix: FrontDoorCdn
+ subject: Profile
+ set:
+ breaking-change:
+ deprecated-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUserAssignedIdentities
+ replacement-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IManagedServiceIdentityUserAssignedIdentities
+ change-description: The type of property 'IdentityUserAssignedIdentity' of type 'Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUserAssignedIdentities' to 'Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IManagedServiceIdentityUserAssignedIdentities'.
+ deprecated-by-version: 5.3.0
+ deprecated-by-azversion: 14.4.0
+ change-effective-date: 2025/11/01
+ - where:
+ subjectPrefix: FrontDoorCdn
+ subject: ProfileSku
+ set:
+ breaking-change:
+ deprecated-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUserAssignedIdentities
+ replacement-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IManagedServiceIdentityUserAssignedIdentities
+ change-description: The type of property 'IdentityUserAssignedIdentity' of type 'Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUserAssignedIdentities' to 'Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IManagedServiceIdentityUserAssignedIdentities'.
+ deprecated-by-version: 5.3.0
+ deprecated-by-azversion: 14.4.0
+ change-effective-date: 2025/11/01
+
```
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/edgeActions-executionFilters.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/edgeActions-executionFilters.json
new file mode 100644
index 000000000000..e5eed625ea0c
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/edgeActions-executionFilters.json
@@ -0,0 +1,95 @@
+{
+ "resourceType": "edgeActions/executionFilters",
+ "apiVersion": "2024-07-22-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn"
+ },
+ "commands": [
+ {
+ "name": "Get-AzCdnEdgeActionExecutionFilter",
+ "description": "Get EdgeActionExecutionFilter resource",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnedgeactionexecutionfilter"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-EdgeActionName ",
+ "-ExecutionFilter ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Get EdgeActionExecutionFilter resource",
+ "parameters": [
+ {
+ "name": "-EdgeActionName",
+ "value": "[Path.edgeActionName]"
+ },
+ {
+ "name": "-ExecutionFilter",
+ "value": "[Path.executionFilter]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Remove-AzCdnEdgeActionExecutionFilter",
+ "description": "Delete EdgeActionExecutionFilter resource",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn/remove-azcdnedgeactionexecutionfilter"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-EdgeActionName ",
+ "-ExecutionFilter ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Delete EdgeActionExecutionFilter resource",
+ "parameters": [
+ {
+ "name": "-EdgeActionName",
+ "value": "[Path.edgeActionName]"
+ },
+ {
+ "name": "-ExecutionFilter",
+ "value": "[Path.executionFilter]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/edgeActions-versions.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/edgeActions-versions.json
new file mode 100644
index 000000000000..6bf1a93444a8
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/edgeActions-versions.json
@@ -0,0 +1,138 @@
+{
+ "resourceType": "edgeActions/versions",
+ "apiVersion": "2024-07-22-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn"
+ },
+ "commands": [
+ {
+ "name": "Get-AzCdnEdgeActionVersionCode",
+ "description": "A long-running operation to get versioncode deployed to EdgeActionVersion resource.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}/getVersionCode",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnedgeactionversioncode"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-EdgeActionName ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]",
+ "-Version "
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "A long-running operation to get versioncode deployed to EdgeActionVersion resource.",
+ "parameters": [
+ {
+ "name": "-EdgeActionName",
+ "value": "[Path.edgeActionName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ },
+ {
+ "name": "-Version",
+ "value": "[Path.version]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Get-AzCdnEdgeActionVersion",
+ "description": "Get EdgeActionVersion resource",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnedgeactionversion"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-EdgeActionName ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]",
+ "-Version "
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Get EdgeActionVersion resource",
+ "parameters": [
+ {
+ "name": "-EdgeActionName",
+ "value": "[Path.edgeActionName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ },
+ {
+ "name": "-Version",
+ "value": "[Path.version]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Remove-AzCdnEdgeActionVersion",
+ "description": "Delete EdgeActionVersion resource",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn/remove-azcdnedgeactionversion"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-EdgeActionName ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]",
+ "-Version "
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Delete EdgeActionVersion resource",
+ "parameters": [
+ {
+ "name": "-EdgeActionName",
+ "value": "[Path.edgeActionName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ },
+ {
+ "name": "-Version",
+ "value": "[Path.version]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/edgeActions.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/edgeActions.json
new file mode 100644
index 000000000000..e017469d2572
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/edgeActions.json
@@ -0,0 +1,85 @@
+{
+ "resourceType": "edgeActions",
+ "apiVersion": "2024-07-22-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn"
+ },
+ "commands": [
+ {
+ "name": "Get-AzCdnEdgeAction",
+ "description": "Get EdgeAction resource",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnedgeaction"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Get EdgeAction resource",
+ "parameters": [
+ {
+ "name": "-Name",
+ "value": "[Path.edgeActionName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Remove-AzCdnEdgeAction",
+ "description": "Delete EdgeAction resource",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.cdn/remove-azcdnedgeaction"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Delete EdgeAction resource",
+ "parameters": [
+ {
+ "name": "-Name",
+ "value": "[Path.edgeActionName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints-routes.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints-routes.json
index c7192cb94bb8..b8017ccda614 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints-routes.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints-routes.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/afdEndpoints/routes",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints.json
index 4f6c34b81198..4ec343b51a8a 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints.json
@@ -1,53 +1,10 @@
{
"resourceType": "profiles/afdEndpoints",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
"commands": [
- {
- "name": "Clear-AzFrontDoorCdnEndpointContent",
- "description": "Removes a content from AzureFrontDoor.",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/purge",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.cdn/clear-azfrontdoorcdnendpointcontent"
- },
- "parameterSets": [
- {
- "parameters": [
- "-EndpointName ",
- "-ProfileName ",
- "-ResourceGroupName ",
- "[-SubscriptionId ]"
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "Removes a content from AzureFrontDoor.",
- "parameters": [
- {
- "name": "-EndpointName",
- "value": "[Path.endpointName]"
- },
- {
- "name": "-ProfileName",
- "value": "[Path.profileName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- }
- ]
- }
- ]
- },
{
"name": "Get-AzFrontDoorCdnEndpoint",
"description": "Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.",
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-customDomains.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-customDomains.json
index 16d42051f489..6624b7a05e1f 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-customDomains.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-customDomains.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/customDomains",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-customDomains.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-customDomains.json
index 0a9c7dbd1cda..fbdbc8f985bf 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-customDomains.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-customDomains.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/endpoints/customDomains",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
@@ -53,54 +53,6 @@
}
]
},
- {
- "name": "Enable-AzCdnCustomDomainCustomHttps",
- "description": "Enable https delivery of the custom domain.",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.cdn/enable-azcdncustomdomaincustomhttps"
- },
- "parameterSets": [
- {
- "parameters": [
- "-CustomDomainName ",
- "-EndpointName ",
- "-ProfileName ",
- "-ResourceGroupName ",
- "[-SubscriptionId ]"
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "Enable https delivery of the custom domain.",
- "parameters": [
- {
- "name": "-CustomDomainName",
- "value": "[Path.customDomainName]"
- },
- {
- "name": "-EndpointName",
- "value": "[Path.endpointName]"
- },
- {
- "name": "-ProfileName",
- "value": "[Path.profileName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- }
- ]
- }
- ]
- },
{
"name": "Get-AzCdnCustomDomain",
"description": "Gets an existing custom domain within an endpoint.",
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-originGroups.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-originGroups.json
index b9c7a326fc6e..ef772c7eefc9 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-originGroups.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-originGroups.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/endpoints/originGroups",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-origins.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-origins.json
index 78063f66566f..1f20646a371a 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-origins.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-origins.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/endpoints/origins",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints.json
index b0002e4885b8..01265d9f400a 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints.json
@@ -1,53 +1,10 @@
{
"resourceType": "profiles/endpoints",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
"commands": [
- {
- "name": "Clear-AzCdnEndpointContent",
- "description": "Removes a content from CDN.",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/purge",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.cdn/clear-azcdnendpointcontent"
- },
- "parameterSets": [
- {
- "parameters": [
- "-EndpointName ",
- "-ProfileName ",
- "-ResourceGroupName ",
- "[-SubscriptionId ]"
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "Removes a content from CDN.",
- "parameters": [
- {
- "name": "-EndpointName",
- "value": "[Path.endpointName]"
- },
- {
- "name": "-ProfileName",
- "value": "[Path.profileName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- }
- ]
- }
- ]
- },
{
"name": "Get-AzCdnEndpoint",
"description": "Gets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.",
@@ -91,49 +48,6 @@
}
]
},
- {
- "name": "Import-AzCdnEndpointContent",
- "description": "Pre-loads a content to CDN.\nAvailable for Verizon Profiles.",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/load",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.cdn/import-azcdnendpointcontent"
- },
- "parameterSets": [
- {
- "parameters": [
- "-EndpointName ",
- "-ProfileName ",
- "-ResourceGroupName ",
- "[-SubscriptionId ]"
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "Pre-loads a content to CDN. Available for Verizon Profiles.",
- "parameters": [
- {
- "name": "-EndpointName",
- "value": "[Path.endpointName]"
- },
- {
- "name": "-ProfileName",
- "value": "[Path.profileName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- }
- ]
- }
- ]
- },
{
"name": "Remove-AzCdnEndpoint",
"description": "Deletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.",
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-originGroups-origins.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-originGroups-origins.json
index 5d35c76583f0..3b5c2f507b93 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-originGroups-origins.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-originGroups-origins.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/originGroups/origins",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-originGroups.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-originGroups.json
index ccf789f40558..8dcce9033a8f 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-originGroups.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-originGroups.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/originGroups",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-ruleSets-rules.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-ruleSets-rules.json
index ba25cbe0d5b8..097e244e35c2 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-ruleSets-rules.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-ruleSets-rules.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/ruleSets/rules",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-ruleSets.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-ruleSets.json
index 041a007568f8..2ff445649416 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-ruleSets.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-ruleSets.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/ruleSets",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-secrets.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-secrets.json
index 159030b517a8..9efa4ef46128 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-secrets.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-secrets.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/secrets",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-securityPolicies.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-securityPolicies.json
index eba5c77e42fb..6ee618e4bdf0 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-securityPolicies.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-securityPolicies.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/securityPolicies",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles.json
index 611e5fa0b63d..21c712a36321 100644
--- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles.json
+++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles.json
@@ -1,6 +1,6 @@
{
"resourceType": "profiles",
- "apiVersion": "2024-05-01-preview",
+ "apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
diff --git a/src/Cdn/Cdn.Autorest/build-module.ps1 b/src/Cdn/Cdn.Autorest/build-module.ps1
deleted file mode 100644
index 53c9d8be2f58..000000000000
--- a/src/Cdn/Cdn.Autorest/build-module.ps1
+++ /dev/null
@@ -1,182 +0,0 @@
-# ----------------------------------------------------------------------------------
-# 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.
-# ----------------------------------------------------------------------------------
-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') {
- Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
-}
-
-if(-not $Isolated -and -not $Debugger) {
- Write-Host -ForegroundColor Green 'Creating isolated process...'
- $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
- & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
-
- if($LastExitCode -ne 0) {
- # Build failed. Don't attempt to run the module.
- return
- }
-
- if($Test) {
- . (Join-Path $PSScriptRoot 'test-module.ps1')
- if($LastExitCode -ne 0) {
- # Tests failed. Don't attempt to run the module.
- return
- }
- }
-
- if($Docs) {
- . (Join-Path $PSScriptRoot 'generate-help.ps1')
- if($LastExitCode -ne 0) {
- # Docs generation failed. Don't attempt to run the module.
- return
- }
- }
-
- if($Pack) {
- . (Join-Path $PSScriptRoot 'pack-module.ps1')
- if($LastExitCode -ne 0) {
- # Packing failed. Don't attempt to run the module.
- return
- }
- }
-
- $runModulePath = Join-Path $PSScriptRoot 'run-module.ps1'
- if($Code) {
- . $runModulePath -Code
- } elseif($Run) {
- . $runModulePath
- } else {
- Write-Host -ForegroundColor Cyan "To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script."
- }
- return
-}
-
-$binFolder = Join-Path $PSScriptRoot 'bin'
-$objFolder = Join-Path $PSScriptRoot 'obj'
-
-if(-not $Debugger) {
- Write-Host -ForegroundColor Green 'Cleaning build folders...'
- $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
-
- if((Test-Path $binFolder) -or (Test-Path $objFolder)) {
- Write-Host -ForegroundColor Cyan 'Did you forget to exit your isolated module session before rebuilding?'
- Write-Error 'Unable to clean ''bin'' or ''obj'' folder. A process may have an open handle.'
- }
-
- Write-Host -ForegroundColor Green 'Compiling module...'
- $buildConfig = 'Debug'
- if($Release) {
- $buildConfig = 'Release'
- }
- dotnet publish $PSScriptRoot --verbosity quiet --configuration $buildConfig /nologo
- if($LastExitCode -ne 0) {
- Write-Error 'Compilation failed.'
- }
-
- $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release')
-}
-
-$dll = Join-Path $PSScriptRoot 'bin\Az.Cdn.private.dll'
-if(-not (Test-Path $dll)) {
- Write-Error "Unable to find output assembly in '$binFolder'."
-}
-
-# Load DLL to use build-time cmdlets
-$null = Import-Module -Name $dll
-
-$modulePaths = $dll
-$customPsm1 = Join-Path $PSScriptRoot 'custom\Az.Cdn.custom.psm1'
-if(Test-Path $customPsm1) {
- $modulePaths = @($dll, $customPsm1)
-}
-
-$exportsFolder = Join-Path $PSScriptRoot 'exports'
-if(Test-Path $exportsFolder) {
- $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
-}
-$null = New-Item -ItemType Directory -Force -Path $exportsFolder
-
-$internalFolder = Join-Path $PSScriptRoot 'internal'
-if(Test-Path $internalFolder) {
- $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
-}
-$null = New-Item -ItemType Directory -Force -Path $internalFolder
-
-$psd1 = Join-Path $PSScriptRoot './Az.Cdn.psd1'
-$guid = Get-ModuleGuid -Psd1Path $psd1
-$moduleName = 'Az.Cdn'
-$examplesFolder = Join-Path $PSScriptRoot 'examples'
-$null = New-Item -ItemType Directory -Force -Path $examplesFolder
-
-Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
-$modelCmdlets = @('ResourceReference', 'HealthProbeParameters', 'ResponseBasedOriginErrorDetectionParameters', 'UserManagedHttpsParameters', 'CdnManagedHttpsParameters', 'DeliveryRule', 'DeliveryRuleRemoteAddressCondition', 'DeliveryRuleRequestMethodCondition', 'DeliveryRuleQueryStringCondition', 'DeliveryRulePostArgsCondition', 'DeliveryRuleRequestUriCondition', 'DeliveryRuleRequestHeaderCondition', 'DeliveryRuleRequestBodyCondition', 'DeliveryRuleRequestSchemeCondition', 'DeliveryRuleUrlPathCondition', 'DeliveryRuleUrlFileExtensionCondition', 'DeliveryRuleUrlFileNameCondition', 'DeliveryRuleHttpVersionCondition', 'DeliveryRuleCookiesCondition', 'DeliveryRuleIsDeviceCondition', 'DeliveryRuleCacheExpirationAction', 'DeliveryRuleCacheKeyQueryStringAction', 'OriginGroupOverrideAction', 'UrlRedirectAction', 'UrlSigningAction', 'UrlRewriteAction', 'DeliveryRuleRequestHeaderAction', 'DeliveryRuleResponseHeaderAction', 'PurgeParameters', 'LoadParameters', 'MigrationEndpointMapping')
-$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
-if (Test-Path $modelCmdletFolder) {
- $null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
-}
-if ($modelCmdlets.Count -gt 0) {
- . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
- CreateModelCmdlet($modelCmdlets)
-}
-
-if($NoDocs) {
- Write-Host -ForegroundColor Green 'Creating exports...'
- Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder
-} else {
- Write-Host -ForegroundColor Green 'Creating exports and docs...'
- $moduleDescription = 'Microsoft Azure PowerShell: Cdn cmdlets'
- $docsFolder = Join-Path $PSScriptRoot 'docs'
- if(Test-Path $docsFolder) {
- $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')
- Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
-}
-
-Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
-$formatPs1xml = Join-Path $PSScriptRoot './Az.Cdn.format.ps1xml'
-Export-FormatPs1xml -FilePath $formatPs1xml
-
-Write-Host -ForegroundColor Green 'Creating psd1...'
-$customFolder = Join-Path $PSScriptRoot 'custom'
-Export-Psd1 -ExportsFolder $exportsFolder -CustomFolder $customFolder -Psd1Path $psd1 -ModuleGuid $guid
-
-Write-Host -ForegroundColor Green 'Creating test stubs...'
-$testFolder = Join-Path $PSScriptRoot 'test'
-$null = New-Item -ItemType Directory -Force -Path $testFolder
-Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFolder $testFolder
-
-Write-Host -ForegroundColor Green 'Creating example stubs...'
-Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
-
-if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
-{
- Write-Host -ForegroundColor Green 'Creating ux metadata...'
- . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
-}
-
-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-------------'
diff --git a/src/Cdn/Cdn.Autorest/check-dependencies.ps1 b/src/Cdn/Cdn.Autorest/check-dependencies.ps1
deleted file mode 100644
index c29591c7bfe1..000000000000
--- a/src/Cdn/Cdn.Autorest/check-dependencies.ps1
+++ /dev/null
@@ -1,65 +0,0 @@
-# ----------------------------------------------------------------------------------
-# 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.
-# ----------------------------------------------------------------------------------
-param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
-$ErrorActionPreference = 'Stop'
-
-if(-not $Isolated) {
- Write-Host -ForegroundColor Green 'Creating isolated process...'
- $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
- & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
- return
-}
-
-function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
- if($predicate) {
- $module = Get-Module -ListAvailable -Name $moduleName
- if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
- $null = New-Item -ItemType Directory -Force -Path $path
- Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
- if ($requiredVersion) {
- Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path
- }elseif($versionMinimum) {
- Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path
- } else {
- Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path
- }
- }
- }
-}
-
-$ProgressPreference = 'SilentlyContinue'
-$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1
-
-$localModulesPath = Join-Path $PSScriptRoot 'generated\modules'
-if(Test-Path -Path $localModulesPath) {
- $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
-}
-
-DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
-DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
-
-$tools = Join-Path $PSScriptRoot 'tools'
-$resourceDir = Join-Path $tools 'Resources'
-$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1'
-
-if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) {
- Write-Host -ForegroundColor Green "Building local Resource module used for test..."
- Set-Location $resourceDir
- $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources
- $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/
- Set-Location $HOME/.PSSharedModules/Resources
- $null = .\build-module.ps1
- Set-Location $PSScriptRoot
-}
diff --git a/src/Cdn/Cdn.Autorest/create-model-cmdlets.ps1 b/src/Cdn/Cdn.Autorest/create-model-cmdlets.ps1
deleted file mode 100644
index b0d9d4537c6c..000000000000
--- a/src/Cdn/Cdn.Autorest/create-model-cmdlets.ps1
+++ /dev/null
@@ -1,183 +0,0 @@
-# ----------------------------------------------------------------------------------
-# 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.
-# ----------------------------------------------------------------------------------
-
-function CreateModelCmdlet {
-
- param([string[]]$Models)
-
- if ($Models.Count -eq 0)
- {
- return
- }
-
- $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
- $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
- $null = New-Item -ItemType Directory -Force -Path $OutputDir
- if (''.length -gt 0) {
- $ModuleName = ''
- } else {
- $ModuleName = 'Az.Cdn'
- }
-
- $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
- $Content = ''
- $null = $CsFiles | ForEach-Object -Process { if ($_.Name.Split('.').count -eq 2 )
- { $Content += get-content $_.fullname -raw
- } }
-
- $Tree = [Microsoft.CodeAnalysis.CSharp.SyntaxFactory]::ParseCompilationUnit($Content)
- $Nodes = $Tree.ChildNodes().ChildNodes()
- foreach ($Model in $Models)
- {
- $InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$Model") }
- if ($InterfaceNode.count -eq 0) {
- continue
- }
- # through a queue, we iterate all the parent models.
- $Queue = @($InterfaceNode)
- $visited = @("I$Model")
- $AllInterfaceNodes = @()
- while ($Queue.count -ne 0)
- {
- $AllInterfaceNodes += $Queue[0]
- # Baselist contains the direct parent models.
- foreach ($parent in $Queue[0].BaseList.Types)
- {
- if (($parent.Type.Right.Identifier.Value -ne 'IJsonSerializable') -and (-not $visited.Contains($parent.Type.Right.Identifier.Value)))
- {
- $Queue = [Array]$Queue + ($Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq $parent.Type.Right.Identifier.Value) })
- $visited = [Array]$visited + $parent.Type.Right.Identifier.Value
- }
- }
- $first, $Queue = $Queue
- }
-
- $Namespace = $InterfaceNode.Parent.Name
- $ObjectType = $Model
- $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
- # remove duplicated module name
- if ($ObjectType.StartsWith('Cdn')) {
- $ModulePrefix = ''
- } else {
- $ModulePrefix = 'Cdn'
- }
- $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
-
- $ParameterDefineScriptList = New-Object System.Collections.Generic.List[string]
- $ParameterAssignScriptList = New-Object System.Collections.Generic.List[string]
- foreach ($Node in $AllInterfaceNodes)
- {
- foreach ($Member in $Node.Members)
- {
- $Arguments = $Member.AttributeLists.Attributes.ArgumentList.Arguments
- $Required = $false
- $Description = ""
- $Readonly = $False
- foreach ($Argument in $Arguments)
- {
- if ($Argument.NameEquals.Name.Identifier.Value -eq "Required")
- {
- $Required = $Argument.Expression.Token.Value
- }
- if ($Argument.NameEquals.Name.Identifier.Value -eq "Description")
- {
- $Description = $Argument.Expression.Token.Value.Trim('.').replace('"', '`"')
- }
- if ($Argument.NameEquals.Name.Identifier.Value -eq "Readonly")
- {
- $Readonly = $Argument.Expression.Token.Value
- }
- }
- if ($Readonly)
- {
- continue
- }
- $Identifier = $Member.Identifier.Value
- $Type = $Member.Type.ToString().replace('?', '').Split("::")[-1]
- $ParameterDefinePropertyList = New-Object System.Collections.Generic.List[string]
- if ($Required)
- {
- $ParameterDefinePropertyList.Add("Mandatory")
- }
- if ($Description -ne "")
- {
- $ParameterDefinePropertyList.Add("HelpMessage=`"${Description}.`"")
- }
- $ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList)
- # check whether completer is needed
- $completer = '';
- if($Type.Split('.').Split('.')[-2] -eq 'Support') {
- # If Type is an array, need to strip []
- $strippedType = $Type.Replace('[]', '')
- $completer += "`n [ArgumentCompleter([${strippedType}])]"
- }
- $ParameterDefineScript = "
- [Parameter($ParameterDefineProperty)]${completer}
- [${Type}]
- `$${Identifier}"
- $ParameterDefineScriptList.Add($ParameterDefineScript)
- $ParameterAssignScriptList.Add("
- if (`$PSBoundParameters.ContainsKey('${Identifier}')) {
- `$Object.${Identifier} = `$${Identifier}
- }")
- }
- }
- $ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator ","
- $ParameterAssignScript = $ParameterAssignScriptList | Join-String -Separator ""
-
- $Script = "
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for ${ObjectType}.
-.Description
-Create an in-memory object for ${ObjectType}.
-
-.Outputs
-${ObjectTypeWithNamespace}
-.Link
-https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
-#>
-function New-Az${ModulePrefix}${ObjectType}Object {
- [OutputType('${ObjectTypeWithNamespace}')]
- [CmdletBinding(PositionalBinding=`$false)]
- Param(
-${ParameterDefineScript}
- )
-
- process {
- `$Object = [${ObjectTypeWithNamespace}]::New()
-${ParameterAssignScript}
- return `$Object
- }
-}
-"
- Set-Content -Path $OutputPath -Value $Script
- }
-}
diff --git a/src/Cdn/Cdn.Autorest/custom/Enable-AzFrontDoorCdnProfileMigration copy.ps1 b/src/Cdn/Cdn.Autorest/custom/Enable-AzFrontDoorCdnProfileMigration copy.ps1
deleted file mode 100644
index 2c91544aea69..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/Enable-AzFrontDoorCdnProfileMigration copy.ps1
+++ /dev/null
@@ -1,127 +0,0 @@
-# ----------------------------------------------------------------------------------
-# 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
-Commit the migrated Azure Front Door(Standard/Premium) profile..
-.Description
-Commit the migrated Azure Front Door(Standard/Premium) profile..
-.Example
-PS C:\> {{ Add code here }}
-{{ Add output here }}
-.Example
-PS C:\> {{ Add code here }}
-{{ Add output here }}
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IMigrateResult
-.Link
-https://learn.microsoft.com/powershell/module/az.cdn/enable-azfrontdoorcdnprofilemigration
-#>
-function Enable-AzFrontDoorCdnProfileMigration {
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PreviewMessageAttribute("This cmdlet is using a preview API version and is subject to breaking change in a future release.")]
- [OutputType([System.Boolean])]
- [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
- param(
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
- [System.String]
- # Name of the CDN profile which is unique within the resource group.
- ${ProfileName},
-
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
- [System.String]
- # Name of the Resource group within the Azure subscription.
- ${ResourceGroupName},
-
- [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # Azure Subscription ID.
- ${SubscriptionId},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
- )
-
- process {
- Write-Host("Start to migrate.")
- Write-Host("This process will disable your Front Door (classic) profile and move all your traffic and configurations to the new Front Door profile.")
- Az.Cdn.internal\Invoke-AzCdnCommitProfileMigration @PSBoundParameters
- }
-}
\ No newline at end of file
diff --git a/src/Cdn/Cdn.Autorest/custom/Enable-AzFrontDoorCdnProfileMigration.ps1 b/src/Cdn/Cdn.Autorest/custom/Enable-AzFrontDoorCdnProfileMigration.ps1
new file mode 100644
index 000000000000..42b1a6eda93e
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/Enable-AzFrontDoorCdnProfileMigration.ps1
@@ -0,0 +1,147 @@
+# ----------------------------------------------------------------------------------
+# 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
+Commit the migrated Azure Front Door(Standard/Premium) profile..
+.Description
+Commit the migrated Azure Front Door(Standard/Premium) profile..
+.Example
+PS C:\> {{ Add code here }}
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+{{ Add output here }}
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IMigrateResult
+.Link
+https://learn.microsoft.com/powershell/module/az.cdn/enable-azfrontdoorcdnprofilemigration
+#>
+function Enable-AzFrontDoorCdnProfileMigration {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PreviewMessageAttribute("This cmdlet is using a preview API version and is subject to breaking change in a future release.")]
+ [OutputType([System.Boolean])]
+ [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+ param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [System.String]
+ # Name of the CDN profile which is unique within the resource group.
+ ${ProfileName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [System.String]
+ # Name of the Resource group within the Azure subscription.
+ ${ResourceGroupName},
+
+ [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Azure Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+ )
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Invoke-AzCdnCommitProfileMigration_Commit' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
+
+ process {
+ Write-Host("Start to migrate.")
+ Write-Host("This process will disable your Front Door (classic) profile and move all your traffic and configurations to the new Front Door profile.")
+ Az.Cdn.internal\Invoke-AzCdnCommitProfileMigration @PSBoundParameters
+ if ($NoWait -or $AsJob) {
+ Write-Warning("Migration request submitted successfully. After migration completes, traffic may still depend on the classic endpoint. Update your custom domain DNS or application references to use the new Azure Front Door Standard/Premium endpoint before April 1, 2028 to avoid any service disruption. Learn more: https://learn.microsoft.com/en-us/azure/frontdoor/migrate-tier.")
+ } else {
+ Write-Warning("Migration completed successfully. Traffic may still depend on the classic endpoint. Update your custom domain DNS or application references to use the new Azure Front Door Standard/Premium endpoint before April 1, 2028 to avoid any service disruption. Learn more: https://learn.microsoft.com/en-us/azure/frontdoor/migrate-tier.")
+ }
+ }
+}
diff --git a/src/Cdn/Cdn.Autorest/custom/Get-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/custom/Get-AzCdnProfile.ps1
index 04bb554c0f8c..7fa40ff7a206 100644
--- a/src/Cdn/Cdn.Autorest/custom/Get-AzCdnProfile.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Get-AzCdnProfile.ps1
@@ -22,7 +22,7 @@ Gets an CDN profile with the specified profile name under the specified subscrip
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -46,7 +46,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnprofile
#>
function Get-AzCdnProfile {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/Cdn/Cdn.Autorest/custom/Get-AzFrontDoorCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/custom/Get-AzFrontDoorCdnProfile.ps1
index 73257ae67f70..f3e720ea5336 100644
--- a/src/Cdn/Cdn.Autorest/custom/Get-AzFrontDoorCdnProfile.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Get-AzFrontDoorCdnProfile.ps1
@@ -22,7 +22,7 @@ Gets an Azure Front Door Standard or Azure Front Door Premium or CDN profile wit
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -47,7 +47,7 @@ https://learn.microsoft.com/powershell/module/az.cdn/get-azfrontdoorcdnprofile
#>
function Get-AzFrontDoorCdnProfile {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/Cdn/Cdn.Autorest/custom/Invoke-AzCdnCommitProfileToAFDMigration.ps1 b/src/Cdn/Cdn.Autorest/custom/Invoke-AzCdnCommitProfileToAFDMigration.ps1
index 3e242cb8afe2..0806051f05f4 100644
--- a/src/Cdn/Cdn.Autorest/custom/Invoke-AzCdnCommitProfileToAFDMigration.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Invoke-AzCdnCommitProfileToAFDMigration.ps1
@@ -18,14 +18,9 @@
Commit the migrated Azure Front Door(Standard/Premium) profile..
.Description
Commit the migrated Azure Front Door(Standard/Premium) profile..
-.Example
-PS C:\> {{ Add code here }}
-{{ Add output here }}
-.Example
-PS C:\> {{ Add code here }}
-{{ Add output here }}
+
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IMigrateResult
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IMigrateResult
.Link
https://learn.microsoft.com/powershell/module/az.cdn/invoke-azcdncommitprofiletoafdmigration
#>
@@ -118,10 +113,30 @@ function Invoke-AzCdnCommitProfileToAFDMigration {
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Invoke-AzCdnCommitProfileMigration_Commit' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
process {
Write-Host("Start to migrate.")
Write-Host("This process will disable your classic CDN profile and move all your traffic and configurations to the new Front Door profile.")
Az.Cdn.internal\Invoke-AzCdnCommitProfileMigration @PSBoundParameters
+ if ($NoWait -or $AsJob) {
+ Write-Warning("Migration request submitted successfully. After migration completes, traffic may still depend on the classic endpoint. Update your custom domain DNS or application references to use the new Azure Front Door Standard/Premium endpoint before April 1, 2028 to avoid any service disruption. Learn more: https://learn.microsoft.com/en-us/azure/cdn/migrate-tier?toc=/azure/frontdoor/toc.json.")
+ } else {
+ Write-Warning("Migration completed successfully. Traffic may still depend on the classic endpoint. Update your custom domain DNS or application references to use the new Azure Front Door Standard/Premium endpoint before April 1, 2028 to avoid any service disruption. Learn more: https://learn.microsoft.com/en-us/azure/cdn/migrate-tier?toc=/azure/frontdoor/toc.json.")
+ }
}
-}
\ No newline at end of file
+}
diff --git a/src/Cdn/Cdn.Autorest/custom/Move-AzCdnProfileToAFD.ps1 b/src/Cdn/Cdn.Autorest/custom/Move-AzCdnProfileToAFD.ps1
index 140bc7e63c4f..76d5ac30a5d8 100644
--- a/src/Cdn/Cdn.Autorest/custom/Move-AzCdnProfileToAFD.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Move-AzCdnProfileToAFD.ps1
@@ -21,17 +21,13 @@ This step prepares the profile for migration and will be followed by Commit to f
.Description
Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile.
This step prepares the profile for migration and will be followed by Commit to finalize the migration.
-.Example
-{{ Add code here }}
-.Example
-{{ Add code here }}
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ICdnMigrationToAfdParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnMigrationToAfdParameters
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IMigrateResult
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IMigrateResult
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -66,11 +62,13 @@ MIGRATIONPARAMETER : Request body for Migrate oper
https://learn.microsoft.com/powershell/module/az.cdn/move-azcdnprofiletoafd
#>
function Move-AzCdnProfileToAFD {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IMigrateResult])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IMigrateResult])]
[CmdletBinding(DefaultParameterSetName='MigrateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Migrate', Mandatory)]
[Parameter(ParameterSetName='MigrateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='MigrateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='MigrateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[System.String]
# Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
@@ -78,6 +76,8 @@ function Move-AzCdnProfileToAFD {
[Parameter(ParameterSetName='Migrate', Mandatory)]
[Parameter(ParameterSetName='MigrateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='MigrateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='MigrateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[System.String]
# The name of the resource group.
@@ -86,60 +86,64 @@ function Move-AzCdnProfileToAFD {
[Parameter(ParameterSetName='Migrate')]
[Parameter(ParameterSetName='MigrateExpanded')]
+ [Parameter(ParameterSetName='MigrateViaJsonFilePath')]
+ [Parameter(ParameterSetName='MigrateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# Azure Subscription ID.
${SubscriptionId},
+
+ [Parameter(ParameterSetName='Migrate')]
+ [Parameter(ParameterSetName='MigrateExpanded')]
+ [Parameter(ParameterSetName='MigrateViaJsonFilePath')]
+ [Parameter(ParameterSetName='MigrateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [System.String]
+ # Azure Subscription ID.
+ ${IdentityType},
[Parameter(ParameterSetName='MigrateViaIdentity', Mandatory, ValueFromPipeline)]
[Parameter(ParameterSetName='MigrateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter(ParameterSetName='Migrate', Mandatory, ValueFromPipeline)]
[Parameter(ParameterSetName='MigrateViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ICdnMigrationToAfdParameters]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnMigrationToAfdParameters]
# Request body for Migrate operation.
- # To construct, see NOTES section for MIGRATIONPARAMETER properties and create a hash table.
${MigrationParameter},
[Parameter(ParameterSetName='MigrateExpanded')]
[Parameter(ParameterSetName='MigrateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IMigrationEndpointMapping[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IMigrationEndpointMapping[]]
# A name map between classic CDN endpoints and AFD Premium/Standard endpoints.
- # To construct, see NOTES section for MIGRATIONENDPOINTMAPPING properties and create a hash table.
${MigrationEndpointMapping},
[Parameter(ParameterSetName='MigrateExpanded')]
[Parameter(ParameterSetName='MigrateViaIdentityExpanded')]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Standard_Verizon", "Premium_Verizon", "Custom_Verizon", "Standard_Akamai", "Standard_ChinaCdn", "Standard_Microsoft", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor", "Standard_955BandWidth_ChinaCdn", "Standard_AvgBandWidth_ChinaCdn", "StandardPlus_ChinaCdn", "StandardPlus_955BandWidth_ChinaCdn", "StandardPlus_AvgBandWidth_ChinaCdn")]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName]
+ [System.String]
# Name of the pricing tier.
${SkuName},
-
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ManagedServiceIdentityType])]
+
+ [Parameter(ParameterSetName='MigrateViaJsonFilePath', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ManagedServiceIdentityType]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
-
- [Parameter()]
+ [System.String]
+ # Path of Json file supplied to the Migrate operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='MigrateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api40.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
- ${IdentityUserAssignedIdentity},
+ [System.String]
+ # Json string supplied to the Migrate operation
+ ${JsonString},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -201,6 +205,21 @@ function Move-AzCdnProfileToAFD {
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Move-AzFrontDoorCdnCdnProfilesTo_MigrateExpanded' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
process {
ValidateIdentityType
Write-Host("Start the initial progress of migration of CDN profile to Azure Front Door.")
@@ -208,7 +227,7 @@ function Move-AzCdnProfileToAFD {
[void]$PSBoundParameters.Remove("IdentityType")
[void]$PSBoundParameters.Remove("IdentityUserAssignedIdentity")
- Az.Cdn.internal\Move-AzFrontDoorCdnCdnProfileToAFD @PSBoundParameters
+ Az.Cdn.internal\Move-AzFrontDoorCdnCdnProfilesTo @PSBoundParameters
Write-Host("Migration of endpoint completed.")
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleCacheExpirationActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleCacheExpirationActionObject.ps1
new file mode 100644
index 000000000000..d46d52daee1a
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleCacheExpirationActionObject.ps1
@@ -0,0 +1,63 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleCacheExpirationAction.
+.Description
+Create an in-memory object for DeliveryRuleCacheExpirationAction.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCacheExpirationAction
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulecacheexpirationactionobject
+#>
+function New-AzCdnDeliveryRuleCacheExpirationActionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCacheExpirationAction')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Caching behavior for the requests.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("BypassCache", "Override", "SetIfMissing")]
+ [string]
+ $ParameterCacheBehavior,
+ [Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss.")]
+ [string]
+ $ParameterCacheDuration,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCacheExpirationAction]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterCacheBehavior')) {
+ $Object.ParameterCacheBehavior = $ParameterCacheBehavior
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterCacheDuration')) {
+ $Object.ParameterCacheDuration = $ParameterCacheDuration
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.ps1
new file mode 100644
index 000000000000..76cd4070abce
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.ps1
@@ -0,0 +1,63 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleCacheKeyQueryStringAction.
+.Description
+Create an in-memory object for DeliveryRuleCacheKeyQueryStringAction.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCacheKeyQueryStringAction
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulecachekeyquerystringactionobject
+#>
+function New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCacheKeyQueryStringAction')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="query parameters to include or exclude (comma separated).")]
+ [string]
+ $ParameterQueryParameter,
+ [Parameter(Mandatory, HelpMessage="Caching behavior for the requests.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Include", "IncludeAll", "Exclude", "ExcludeAll")]
+ [string]
+ $ParameterQueryStringBehavior,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCacheKeyQueryStringAction]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterQueryParameter')) {
+ $Object.ParameterQueryParameter = $ParameterQueryParameter
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterQueryStringBehavior')) {
+ $Object.ParameterQueryStringBehavior = $ParameterQueryStringBehavior
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleCookiesConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleCookiesConditionObject.ps1
new file mode 100644
index 000000000000..23601242c4bb
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleCookiesConditionObject.ps1
@@ -0,0 +1,82 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleCookiesCondition.
+.Description
+Create an in-memory object for DeliveryRuleCookiesCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCookiesCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulecookiesconditionobject
+#>
+function New-AzCdnDeliveryRuleCookiesConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCookiesCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="Name of Cookies to be matched.")]
+ [string]
+ $ParameterSelector,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCookiesCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterSelector')) {
+ $Object.ParameterSelector = $ParameterSelector
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleHttpVersionConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleHttpVersionConditionObject.ps1
new file mode 100644
index 000000000000..bde79ecf606e
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleHttpVersionConditionObject.ps1
@@ -0,0 +1,69 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleHttpVersionCondition.
+.Description
+Create an in-memory object for DeliveryRuleHttpVersionCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleHttpVersionCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulehttpversionconditionobject
+#>
+function New-AzCdnDeliveryRuleHttpVersionConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleHttpVersionCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleHttpVersionCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleIsDeviceConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleIsDeviceConditionObject.ps1
new file mode 100644
index 000000000000..e4efaa553a08
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleIsDeviceConditionObject.ps1
@@ -0,0 +1,70 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleIsDeviceCondition.
+.Description
+Create an in-memory object for DeliveryRuleIsDeviceCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleIsDeviceCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryruleisdeviceconditionobject
+#>
+function New-AzCdnDeliveryRuleIsDeviceConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleIsDeviceCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Mobile", "Desktop")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleIsDeviceCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRulePostArgsConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRulePostArgsConditionObject.ps1
new file mode 100644
index 000000000000..eda68ab59fb9
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRulePostArgsConditionObject.ps1
@@ -0,0 +1,82 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRulePostArgsCondition.
+.Description
+Create an in-memory object for DeliveryRulePostArgsCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRulePostArgsCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulepostargsconditionobject
+#>
+function New-AzCdnDeliveryRulePostArgsConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRulePostArgsCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="Name of PostArg to be matched.")]
+ [string]
+ $ParameterSelector,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRulePostArgsCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterSelector')) {
+ $Object.ParameterSelector = $ParameterSelector
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleQueryStringConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleQueryStringConditionObject.ps1
new file mode 100644
index 000000000000..95606864b7f5
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleQueryStringConditionObject.ps1
@@ -0,0 +1,76 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleQueryStringCondition.
+.Description
+Create an in-memory object for DeliveryRuleQueryStringCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleQueryStringCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulequerystringconditionobject
+#>
+function New-AzCdnDeliveryRuleQueryStringConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleQueryStringCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleQueryStringCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRemoteAddressConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRemoteAddressConditionObject.ps1
new file mode 100644
index 000000000000..516e08e430d1
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRemoteAddressConditionObject.ps1
@@ -0,0 +1,76 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleRemoteAddressCondition.
+.Description
+Create an in-memory object for DeliveryRuleRemoteAddressCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRemoteAddressCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryruleremoteaddressconditionobject
+#>
+function New-AzCdnDeliveryRuleRemoteAddressConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRemoteAddressCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRemoteAddressCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestBodyConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestBodyConditionObject.ps1
new file mode 100644
index 000000000000..1ba00fdda359
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestBodyConditionObject.ps1
@@ -0,0 +1,76 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleRequestBodyCondition.
+.Description
+Create an in-memory object for DeliveryRuleRequestBodyCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestBodyCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulerequestbodyconditionobject
+#>
+function New-AzCdnDeliveryRuleRequestBodyConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestBodyCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestBodyCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestHeaderActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestHeaderActionObject.ps1
new file mode 100644
index 000000000000..158735034282
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestHeaderActionObject.ps1
@@ -0,0 +1,69 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleRequestHeaderAction.
+.Description
+Create an in-memory object for DeliveryRuleRequestHeaderAction.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderAction
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulerequestheaderactionobject
+#>
+function New-AzCdnDeliveryRuleRequestHeaderActionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderAction')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Action to perform.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Append", "Overwrite", "Delete")]
+ [string]
+ $ParameterHeaderAction,
+ [Parameter(Mandatory, HelpMessage="Name of the header to modify.")]
+ [string]
+ $ParameterHeaderName,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName,
+ [Parameter(HelpMessage="Value for the specified action.")]
+ [string]
+ $ParameterValue
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderAction]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterHeaderAction')) {
+ $Object.ParameterHeaderAction = $ParameterHeaderAction
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterHeaderName')) {
+ $Object.ParameterHeaderName = $ParameterHeaderName
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterValue')) {
+ $Object.ParameterValue = $ParameterValue
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestHeaderConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestHeaderConditionObject.ps1
new file mode 100644
index 000000000000..f6dbb399e48d
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestHeaderConditionObject.ps1
@@ -0,0 +1,82 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleRequestHeaderCondition.
+.Description
+Create an in-memory object for DeliveryRuleRequestHeaderCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulerequestheaderconditionobject
+#>
+function New-AzCdnDeliveryRuleRequestHeaderConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="Name of Header to be matched.")]
+ [string]
+ $ParameterSelector,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterSelector')) {
+ $Object.ParameterSelector = $ParameterSelector
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestMethodConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestMethodConditionObject.ps1
new file mode 100644
index 000000000000..1afe6e8c16a6
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestMethodConditionObject.ps1
@@ -0,0 +1,70 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleRequestMethodCondition.
+.Description
+Create an in-memory object for DeliveryRuleRequestMethodCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestMethodCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulerequestmethodconditionobject
+#>
+function New-AzCdnDeliveryRuleRequestMethodConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestMethodCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "TRACE")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestMethodCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestSchemeConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestSchemeConditionObject.ps1
new file mode 100644
index 000000000000..0c50549b6d23
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestSchemeConditionObject.ps1
@@ -0,0 +1,70 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleRequestSchemeCondition.
+.Description
+Create an in-memory object for DeliveryRuleRequestSchemeCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestSchemeCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulerequestschemeconditionobject
+#>
+function New-AzCdnDeliveryRuleRequestSchemeConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestSchemeCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("HTTP", "HTTPS")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestSchemeCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestUriConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestUriConditionObject.ps1
new file mode 100644
index 000000000000..6b05a6057c29
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleRequestUriConditionObject.ps1
@@ -0,0 +1,76 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleRequestUriCondition.
+.Description
+Create an in-memory object for DeliveryRuleRequestUriCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestUriCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryrulerequesturiconditionobject
+#>
+function New-AzCdnDeliveryRuleRequestUriConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestUriCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestUriCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleResponseHeaderActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleResponseHeaderActionObject.ps1
new file mode 100644
index 000000000000..6b4715333333
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleResponseHeaderActionObject.ps1
@@ -0,0 +1,69 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleResponseHeaderAction.
+.Description
+Create an in-memory object for DeliveryRuleResponseHeaderAction.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleResponseHeaderAction
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryruleresponseheaderactionobject
+#>
+function New-AzCdnDeliveryRuleResponseHeaderActionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleResponseHeaderAction')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Action to perform.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Append", "Overwrite", "Delete")]
+ [string]
+ $ParameterHeaderAction,
+ [Parameter(Mandatory, HelpMessage="Name of the header to modify.")]
+ [string]
+ $ParameterHeaderName,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName,
+ [Parameter(HelpMessage="Value for the specified action.")]
+ [string]
+ $ParameterValue
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleResponseHeaderAction]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterHeaderAction')) {
+ $Object.ParameterHeaderAction = $ParameterHeaderAction
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterHeaderName')) {
+ $Object.ParameterHeaderName = $ParameterHeaderName
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterValue')) {
+ $Object.ParameterValue = $ParameterValue
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.ps1
new file mode 100644
index 000000000000..020fb56dfbd4
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.ps1
@@ -0,0 +1,76 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleUrlFileExtensionCondition.
+.Description
+Create an in-memory object for DeliveryRuleUrlFileExtensionCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileExtensionCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryruleurlfileextensionconditionobject
+#>
+function New-AzCdnDeliveryRuleUrlFileExtensionConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileExtensionCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileExtensionCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleUrlFileNameConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleUrlFileNameConditionObject.ps1
new file mode 100644
index 000000000000..2bdb3f1be486
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleUrlFileNameConditionObject.ps1
@@ -0,0 +1,76 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleUrlFileNameCondition.
+.Description
+Create an in-memory object for DeliveryRuleUrlFileNameCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileNameCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryruleurlfilenameconditionobject
+#>
+function New-AzCdnDeliveryRuleUrlFileNameConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileNameCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileNameCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleUrlPathConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleUrlPathConditionObject.ps1
new file mode 100644
index 000000000000..df5c8017fa72
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnDeliveryRuleUrlPathConditionObject.ps1
@@ -0,0 +1,76 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleUrlPathCondition.
+.Description
+Create an in-memory object for DeliveryRuleUrlPathCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlPathCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryruleurlpathconditionobject
+#>
+function New-AzCdnDeliveryRuleUrlPathConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlPathCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "Wildcard", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlPathCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnManagedHttpsParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnManagedHttpsParametersObject.ps1
new file mode 100644
index 000000000000..81fe0edfb72a
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnManagedHttpsParametersObject.ps1
@@ -0,0 +1,77 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for CdnManagedHttpsParameters.
+.Description
+Create an in-memory object for CdnManagedHttpsParameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CdnManagedHttpsParameters
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnmanagedhttpsparametersobject
+#>
+function New-AzCdnManagedHttpsParametersObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CdnManagedHttpsParameters')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Type of certificate used.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Shared", "Dedicated")]
+ [string]
+ $CertificateSourceParameterCertificateType,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("CdnCertificateSourceParameters", "KeyVaultCertificateSourceParameters")]
+ [string]
+ $CertificateSourceParameterTypeName,
+ [Parameter(HelpMessage="TLS protocol version that will be used for Https.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("None", "TLS10", "TLS12")]
+ [string]
+ $MinimumTlsVersion,
+ [Parameter(Mandatory, HelpMessage="Defines the TLS extension protocol that is used for secure delivery.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("ServerNameIndication", "IPBased")]
+ [string]
+ $ProtocolType,
+ [Parameter(Mandatory, HelpMessage="Defines the source of the SSL certificate.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Cdn")]
+ [string]
+ $CertificateSource
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CdnManagedHttpsParameters]::New()
+
+ if ($PSBoundParameters.ContainsKey('CertificateSourceParameterCertificateType')) {
+ $Object.CertificateSourceParameterCertificateType = $CertificateSourceParameterCertificateType
+ }
+ if ($PSBoundParameters.ContainsKey('CertificateSourceParameterTypeName')) {
+ $Object.CertificateSourceParameterTypeName = $CertificateSourceParameterTypeName
+ }
+ if ($PSBoundParameters.ContainsKey('MinimumTlsVersion')) {
+ $Object.MinimumTlsVersion = $MinimumTlsVersion
+ }
+ if ($PSBoundParameters.ContainsKey('ProtocolType')) {
+ $Object.ProtocolType = $ProtocolType
+ }
+ if ($PSBoundParameters.ContainsKey('CertificateSource')) {
+ $Object.CertificateSource = $CertificateSource
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnOriginGroupOverrideActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnOriginGroupOverrideActionObject.ps1
new file mode 100644
index 000000000000..d0ce704c2b20
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnOriginGroupOverrideActionObject.ps1
@@ -0,0 +1,56 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for OriginGroupOverrideAction.
+.Description
+Create an in-memory object for OriginGroupOverrideAction.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.OriginGroupOverrideAction
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnorigingroupoverrideactionobject
+#>
+function New-AzCdnOriginGroupOverrideActionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.OriginGroupOverrideAction')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Resource ID.")]
+ [string]
+ $OriginGroupId,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.OriginGroupOverrideAction]::New()
+
+ if ($PSBoundParameters.ContainsKey('OriginGroupId')) {
+ $Object.OriginGroupId = $OriginGroupId
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnProfile.ps1
index f930d2a516d0..10c685f3e7c3 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzCdnProfile.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnProfile.ps1
@@ -29,19 +29,19 @@ PS C:\> {{ Add code here }}
{{ Add output here }}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile
.Link
https://learn.microsoft.com/powershell/module/az.cdn/new-azcdnprofile
#>
function New-AzCdnProfile {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
[Alias('ProfileName')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[System.String]
- # Name of the CDN profile which is unique within the resource group.
+ # Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group.
${Name},
[Parameter(Mandatory)]
@@ -57,29 +57,29 @@ function New-AzCdnProfile {
# Azure Subscription ID.
${SubscriptionId},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
[System.String]
# Resource location.
${Location},
-
- [Parameter()]
+
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
[System.Int32]
# Send and receive timeout on forwarding request to the origin.
# When timeout is reached, the request fails and returns.
${OriginResponseTimeoutSecond},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Standard_Verizon", "Premium_Verizon", "Custom_Verizon", "Standard_Akamai", "Standard_ChinaCdn", "Standard_Microsoft", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor", "Standard_955BandWidth_ChinaCdn", "Standard_AvgBandWidth_ChinaCdn", "StandardPlus_ChinaCdn", "StandardPlus_955BandWidth_ChinaCdn", "StandardPlus_AvgBandWidth_ChinaCdn")]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName]
+ [System.String]
# Name of the pricing tier.
${SkuName},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
@@ -89,7 +89,8 @@ function New-AzCdnProfile {
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -143,11 +144,27 @@ function New-AzCdnProfile {
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)
-
- if(-Not (ISFrontDoorCdnProfile($PSBoundParameters['SkuName']))){
- Az.Cdn.internal\New-AzCdnProfile @PSBoundParameters
- }else{
- throw "$($PSBoundParameters['SkuName']) is not a valid SKU. Please use a valid AzureCDN SkuName.";
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\New-AzCdnProfile_CreateExpanded' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
+ process {
+ if(-Not (ISFrontDoorCdnProfile($PSBoundParameters['SkuName']))){
+ Az.Cdn.internal\New-AzCdnProfile @PSBoundParameters
+ }else{
+ throw "$($PSBoundParameters['SkuName']) is not a valid SKU. Please use a valid AzureCDN SkuName.";
+ }
}
}
\ No newline at end of file
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnUrlRedirectActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnUrlRedirectActionObject.ps1
new file mode 100644
index 000000000000..4a1d846d692b
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnUrlRedirectActionObject.ps1
@@ -0,0 +1,88 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for UrlRedirectAction.
+.Description
+Create an in-memory object for UrlRedirectAction.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRedirectAction
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnurlredirectactionobject
+#>
+function New-AzCdnUrlRedirectActionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRedirectAction')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")]
+ [string]
+ $ParameterCustomFragment,
+ [Parameter(HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")]
+ [string]
+ $ParameterCustomHostname,
+ [Parameter(HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")]
+ [string]
+ $ParameterCustomPath,
+ [Parameter(HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. ? and & will be added automatically so do not include them.")]
+ [string]
+ $ParameterCustomQueryString,
+ [Parameter(HelpMessage="Protocol to use for the redirect. The default value is MatchRequest.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("MatchRequest", "Http", "Https")]
+ [string]
+ $ParameterDestinationProtocol,
+ [Parameter(Mandatory, HelpMessage="The redirect type the rule will use when redirecting traffic.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")]
+ [string]
+ $ParameterRedirectType,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRedirectAction]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterCustomFragment')) {
+ $Object.ParameterCustomFragment = $ParameterCustomFragment
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterCustomHostname')) {
+ $Object.ParameterCustomHostname = $ParameterCustomHostname
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterCustomPath')) {
+ $Object.ParameterCustomPath = $ParameterCustomPath
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterCustomQueryString')) {
+ $Object.ParameterCustomQueryString = $ParameterCustomQueryString
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterDestinationProtocol')) {
+ $Object.ParameterDestinationProtocol = $ParameterDestinationProtocol
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterRedirectType')) {
+ $Object.ParameterRedirectType = $ParameterRedirectType
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnUrlRewriteActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnUrlRewriteActionObject.ps1
new file mode 100644
index 000000000000..4b05e86c5c21
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnUrlRewriteActionObject.ps1
@@ -0,0 +1,68 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for UrlRewriteAction.
+.Description
+Create an in-memory object for UrlRewriteAction.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRewriteAction
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnurlrewriteactionobject
+#>
+function New-AzCdnUrlRewriteActionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRewriteAction')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Define the relative URL to which the above requests will be rewritten by.")]
+ [string]
+ $ParameterDestination,
+ [Parameter(HelpMessage="Whether to preserve unmatched path. Default value is true.")]
+ [bool]
+ $ParameterPreserveUnmatchedPath,
+ [Parameter(Mandatory, HelpMessage="define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.")]
+ [string]
+ $ParameterSourcePattern,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRewriteAction]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterDestination')) {
+ $Object.ParameterDestination = $ParameterDestination
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterPreserveUnmatchedPath')) {
+ $Object.ParameterPreserveUnmatchedPath = $ParameterPreserveUnmatchedPath
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterSourcePattern')) {
+ $Object.ParameterSourcePattern = $ParameterSourcePattern
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnUrlSigningActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnUrlSigningActionObject.ps1
new file mode 100644
index 000000000000..9f1f81f0085e
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnUrlSigningActionObject.ps1
@@ -0,0 +1,63 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for UrlSigningAction.
+.Description
+Create an in-memory object for UrlSigningAction.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlSigningAction
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnurlsigningactionobject
+#>
+function New-AzCdnUrlSigningActionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlSigningAction')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Algorithm to use for URL signing.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("SHA256")]
+ [string]
+ $ParameterAlgorithm,
+ [Parameter(HelpMessage="Defines which query string parameters in the url to be considered for expires, key id etc. .")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUrlSigningParamIdentifier[]]
+ $ParameterNameOverride,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlSigningAction]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterAlgorithm')) {
+ $Object.ParameterAlgorithm = $ParameterAlgorithm
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNameOverride')) {
+ $Object.ParameterNameOverride = $ParameterNameOverride
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzCdnUserManagedHttpsParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzCdnUserManagedHttpsParametersObject.ps1
new file mode 100644
index 000000000000..ed5a2d077caf
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzCdnUserManagedHttpsParametersObject.ps1
@@ -0,0 +1,94 @@
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for UserManagedHttpsParameters.
+.Description
+Create an in-memory object for UserManagedHttpsParameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UserManagedHttpsParameters
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnusermanagedhttpsparametersobject
+#>
+function New-AzCdnUserManagedHttpsParametersObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UserManagedHttpsParameters')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Resource group of the user's Key Vault containing the SSL certificate.")]
+ [string]
+ $CertificateSourceParameterResourceGroupName,
+ [Parameter(Mandatory, HelpMessage="The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.")]
+ [string]
+ $CertificateSourceParameterSecretName,
+ [Parameter(HelpMessage="The version(GUID) of Key Vault Secret in Key Vault.")]
+ [string]
+ $CertificateSourceParameterSecretVersion,
+ [Parameter(Mandatory, HelpMessage="Subscription Id of the user's Key Vault containing the SSL certificate.")]
+ [string]
+ $CertificateSourceParameterSubscriptionId,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("CdnCertificateSourceParameters", "KeyVaultCertificateSourceParameters")]
+ [string]
+ $CertificateSourceParameterTypeName,
+ [Parameter(Mandatory, HelpMessage="The name of the user's Key Vault containing the SSL certificate.")]
+ [string]
+ $CertificateSourceParameterVaultName,
+ [Parameter(Mandatory, HelpMessage="Defines the source of the SSL certificate.")]
+ [string]
+ $CertificateSource,
+ [Parameter(HelpMessage="TLS protocol version that will be used for Https.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("None", "TLS10", "TLS12")]
+ [string]
+ $MinimumTlsVersion,
+ [Parameter(Mandatory, HelpMessage="Defines the TLS extension protocol that is used for secure delivery.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("ServerNameIndication", "IPBased")]
+ [string]
+ $ProtocolType
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UserManagedHttpsParameters]::New()
+
+ if ($PSBoundParameters.ContainsKey('CertificateSourceParameterResourceGroupName')) {
+ $Object.CertificateSourceParameterResourceGroupName = $CertificateSourceParameterResourceGroupName
+ }
+ if ($PSBoundParameters.ContainsKey('CertificateSourceParameterSecretName')) {
+ $Object.CertificateSourceParameterSecretName = $CertificateSourceParameterSecretName
+ }
+ if ($PSBoundParameters.ContainsKey('CertificateSourceParameterSecretVersion')) {
+ $Object.CertificateSourceParameterSecretVersion = $CertificateSourceParameterSecretVersion
+ }
+ if ($PSBoundParameters.ContainsKey('CertificateSourceParameterSubscriptionId')) {
+ $Object.CertificateSourceParameterSubscriptionId = $CertificateSourceParameterSubscriptionId
+ }
+ if ($PSBoundParameters.ContainsKey('CertificateSourceParameterTypeName')) {
+ $Object.CertificateSourceParameterTypeName = $CertificateSourceParameterTypeName
+ }
+ if ($PSBoundParameters.ContainsKey('CertificateSourceParameterVaultName')) {
+ $Object.CertificateSourceParameterVaultName = $CertificateSourceParameterVaultName
+ }
+ if ($PSBoundParameters.ContainsKey('MinimumTlsVersion')) {
+ $Object.MinimumTlsVersion = $MinimumTlsVersion
+ }
+ if ($PSBoundParameters.ContainsKey('ProtocolType')) {
+ $Object.ProtocolType = $ProtocolType
+ }
+ return $Object
+ }
+}
\ No newline at end of file
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.ps1
deleted file mode 100644
index f9d4476d1442..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.ps1
+++ /dev/null
@@ -1,61 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for AFDDomainHttpsParameters.
-.Description
-Create an in-memory object for AFDDomainHttpsParameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AFDDomainHttpsParameters
-.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnCustomDomainTlsSettingParametersObject
-#>
-function New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AFDDomainHttpsParameters')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="Defines the source of the SSL certificate.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.AfdCertificateType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.AfdCertificateType]
- $CertificateType,
- [Parameter(HelpMessage="TLS protocol version that will be used for Https.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.AfdMinimumTlsVersion])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.AfdMinimumTlsVersion]
- $MinimumTlsVersion,
- [Parameter(HelpMessage="Resource reference to the secret. ie. subs/rg/profile/secret.")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IResourceReference]
- $Secret
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AFDDomainHttpsParameters]::New()
-
- if ($PSBoundParameters.ContainsKey('CertificateType')) {
- $Object.CertificateType = $CertificateType
- }
- if ($PSBoundParameters.ContainsKey('MinimumTlsVersion')) {
- $Object.MinimumTlsVersion = $MinimumTlsVersion
- }
- if ($PSBoundParameters.ContainsKey('Secret')) {
- $Object.Secret = $Secret
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnDeliveryRuleClientPortConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnDeliveryRuleClientPortConditionObject.ps1
deleted file mode 100644
index d0bd0d2d754e..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnDeliveryRuleClientPortConditionObject.ps1
+++ /dev/null
@@ -1,74 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleClientPortCondition.
-.Description
-Create an in-memory object for DeliveryRuleClientPortCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleClientPortCondition
-.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleClientPortConditionObject
-#>
-function New-AzFrontDoorCdnRuleClientPortConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleClientPortCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ClientPortOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ClientPortOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleClientPortCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnMigrationParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnMigrationParametersObject.ps1
deleted file mode 100644
index 556cacca7fa5..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnMigrationParametersObject.ps1
+++ /dev/null
@@ -1,66 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for MigrationParameters.
-.Description
-Create an in-memory object for MigrationParameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationParameters
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzFrontDoorCdnMigrationParametersObject
-#>
-function New-AzFrontDoorCdnMigrationParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationParameters')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="Resource ID.")]
- [string]
- $ClassicResourceReferenceId,
- [Parameter(HelpMessage="Waf mapping for the migrated profile.")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IMigrationWebApplicationFirewallMapping[]]
- $MigrationWebApplicationFirewallMapping,
- [Parameter(Mandatory, HelpMessage="Name of the new profile that need to be created.")]
- [string]
- $ProfileName,
- [Parameter(HelpMessage="Name of the pricing tier.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName]
- $SkuName
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationParameters]::New()
-
- if ($PSBoundParameters.ContainsKey('ClassicResourceReferenceId')) {
- $Object.ClassicResourceReferenceId = $ClassicResourceReferenceId
- }
- if ($PSBoundParameters.ContainsKey('MigrationWebApplicationFirewallMapping')) {
- $Object.MigrationWebApplicationFirewallMapping = $MigrationWebApplicationFirewallMapping
- }
- if ($PSBoundParameters.ContainsKey('ProfileName')) {
- $Object.ProfileName = $ProfileName
- }
- if ($PSBoundParameters.ContainsKey('SkuName')) {
- $Object.SkuName = $SkuName
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.ps1
deleted file mode 100644
index 7f3ebf304d75..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.ps1
+++ /dev/null
@@ -1,53 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for MigrationWebApplicationFirewallMapping.
-.Description
-Create an in-memory object for MigrationWebApplicationFirewallMapping.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationWebApplicationFirewallMapping
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject
-#>
-function New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationWebApplicationFirewallMapping')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="Resource ID.")]
- [string]
- $MigratedFromId,
- [Parameter(HelpMessage="Resource ID.")]
- [string]
- $MigratedToId
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationWebApplicationFirewallMapping]::New()
-
- if ($PSBoundParameters.ContainsKey('MigratedFromId')) {
- $Object.MigratedFromId = $MigratedFromId
- }
- if ($PSBoundParameters.ContainsKey('MigratedToId')) {
- $Object.MigratedToId = $MigratedToId
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.ps1
deleted file mode 100644
index b08ce06394f4..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.ps1
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for HealthProbeParameters.
-.Description
-Create an in-memory object for HealthProbeParameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HealthProbeParameters
-.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnOriginGroupHealthProbeSettingObject
-#>
-function New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HealthProbeParameters')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The number of seconds between health probes.Default is 240sec.")]
- [int]
- $ProbeIntervalInSecond,
- [Parameter(HelpMessage="The path relative to the origin that is used to determine the health of the origin.")]
- [string]
- $ProbePath,
- [Parameter(HelpMessage="Protocol to use for health probe.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProbeProtocol])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProbeProtocol]
- $ProbeProtocol,
- [Parameter(HelpMessage="The type of health probe request that is made.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HealthProbeRequestType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HealthProbeRequestType]
- $ProbeRequestType
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HealthProbeParameters]::New()
-
- if ($PSBoundParameters.ContainsKey('ProbeIntervalInSecond')) {
- $Object.ProbeIntervalInSecond = $ProbeIntervalInSecond
- }
- if ($PSBoundParameters.ContainsKey('ProbePath')) {
- $Object.ProbePath = $ProbePath
- }
- if ($PSBoundParameters.ContainsKey('ProbeProtocol')) {
- $Object.ProbeProtocol = $ProbeProtocol
- }
- if ($PSBoundParameters.ContainsKey('ProbeRequestType')) {
- $Object.ProbeRequestType = $ProbeRequestType
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.ps1
deleted file mode 100644
index 4bc9b5a5ef72..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.ps1
+++ /dev/null
@@ -1,59 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for LoadBalancingSettingsParameters.
-.Description
-Create an in-memory object for LoadBalancingSettingsParameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadBalancingSettingsParameters
-.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject
-#>
-function New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadBalancingSettingsParameters')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The additional latency in milliseconds for probes to fall into the lowest latency bucket.")]
- [int]
- $AdditionalLatencyInMillisecond,
- [Parameter(HelpMessage="The number of samples to consider for load balancing decisions.")]
- [int]
- $SampleSize,
- [Parameter(HelpMessage="The number of samples within the sample period that must succeed.")]
- [int]
- $SuccessfulSamplesRequired
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadBalancingSettingsParameters]::New()
-
- if ($PSBoundParameters.ContainsKey('AdditionalLatencyInMillisecond')) {
- $Object.AdditionalLatencyInMillisecond = $AdditionalLatencyInMillisecond
- }
- if ($PSBoundParameters.ContainsKey('SampleSize')) {
- $Object.SampleSize = $SampleSize
- }
- if ($PSBoundParameters.ContainsKey('SuccessfulSamplesRequired')) {
- $Object.SuccessfulSamplesRequired = $SuccessfulSamplesRequired
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfile.ps1
index d09fc40ce044..e22d0b0a67a0 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfile.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfile.ps1
@@ -29,12 +29,12 @@ PS C:\> {{ Add code here }}
{{ Add output here }}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile
.Link
https://learn.microsoft.com/powershell/module/az.cdn/new-azfrontdoorcdnprofile
#>
function New-AzFrontDoorCdnProfile {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -43,85 +43,99 @@ function New-AzFrontDoorCdnProfile {
[System.String]
# Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group.
${Name},
-
+
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[System.String]
- # Name of the Resource group within the Azure subscription.
+ # The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
-
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # Azure Subscription ID.
+ # The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
-
- [Parameter(Mandatory)]
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
[System.String]
- # Resource location.
+ # The geo-location where the resource lives
${Location},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [System.Int32]
- # Send and receive timeout on forwarding request to the origin.
- # When timeout is reached, the request fails and returns.
- ${OriginResponseTimeoutSecond},
-
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName]
- # Name of the pricing tier.
- ${SkuName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ITrackedResourceTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ManagedServiceIdentityType])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ManagedServiceIdentityType]
+ [System.String]
# Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
${IdentityType},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api40.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IManagedServiceIdentityUserAssignedIdentities]))]
[System.Collections.Hashtable]
# The set of user assigned identities associated with the resource.
# The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
# The dictionary values can be empty objects ({}) in requests.
${IdentityUserAssignedIdentity},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfileScrubbingRules[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfileScrubbingRules[]]
# List of log scrubbing rules applied to the Azure Front Door profile logs.
- # To construct, see NOTES section for LOGSCRUBBINGRULE properties and create a hash table.
${LogScrubbingRule},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProfileScrubbingState])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProfileScrubbingState]
+ [System.String]
# State of the log scrubbing config.
# Default value is Enabled.
${LogScrubbingState},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.Int32]
+ # Send and receive timeout on forwarding request to the origin.
+ # When timeout is reached, the request fails and returns.
+ ${OriginResponseTimeoutSecond},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Standard_Verizon", "Premium_Verizon", "Custom_Verizon", "Standard_Akamai", "Standard_ChinaCdn", "Standard_Microsoft", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor", "Standard_955BandWidth_ChinaCdn", "Standard_AvgBandWidth_ChinaCdn", "StandardPlus_ChinaCdn", "StandardPlus_955BandWidth_ChinaCdn", "StandardPlus_AvgBandWidth_ChinaCdn")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Name of the pricing tier.
+ ${SkuName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -176,6 +190,22 @@ function New-AzFrontDoorCdnProfile {
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\New-AzCdnProfile_CreateExpanded' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
+
process {
if(ISFrontDoorCdnProfile($PSBoundParameters['SkuName']))
{
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.ps1
deleted file mode 100644
index 6b7bc4d31edc..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.ps1
+++ /dev/null
@@ -1,53 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for ProfileChangeSkuWafMapping.
-.Description
-Create an in-memory object for ProfileChangeSkuWafMapping.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileChangeSkuWafMapping
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzFrontDoorCdnProfileChangeSkuWafMappingObject
-#>
-function New-AzFrontDoorCdnProfileChangeSkuWafMappingObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileChangeSkuWafMapping')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="Resource ID.")]
- [string]
- $ChangeToWafPolicyId,
- [Parameter(Mandatory, HelpMessage="The security policy name.")]
- [string]
- $SecurityPolicyName
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileChangeSkuWafMapping]::New()
-
- if ($PSBoundParameters.ContainsKey('ChangeToWafPolicyId')) {
- $Object.ChangeToWafPolicyId = $ChangeToWafPolicyId
- }
- if ($PSBoundParameters.ContainsKey('SecurityPolicyName')) {
- $Object.SecurityPolicyName = $SecurityPolicyName
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileLogScrubbingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileLogScrubbingObject.ps1
deleted file mode 100644
index 2dc35ae225aa..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileLogScrubbingObject.ps1
+++ /dev/null
@@ -1,54 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for ProfileLogScrubbing.
-.Description
-Create an in-memory object for ProfileLogScrubbing.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileLogScrubbing
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzFrontDoorCdnProfileLogScrubbingObject
-#>
-function New-AzFrontDoorCdnProfileLogScrubbingObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileLogScrubbing')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="List of log scrubbing rules applied to the Azure Front Door profile logs.")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfileScrubbingRules[]]
- $ScrubbingRule,
- [Parameter(HelpMessage="State of the log scrubbing config. Default value is Enabled.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProfileScrubbingState])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProfileScrubbingState]
- $State
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileLogScrubbing]::New()
-
- if ($PSBoundParameters.ContainsKey('ScrubbingRule')) {
- $Object.ScrubbingRule = $ScrubbingRule
- }
- if ($PSBoundParameters.ContainsKey('State')) {
- $Object.State = $State
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileScrubbingRulesObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileScrubbingRulesObject.ps1
deleted file mode 100644
index 3ac4c48ab581..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileScrubbingRulesObject.ps1
+++ /dev/null
@@ -1,61 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for ProfileScrubbingRules.
-.Description
-Create an in-memory object for ProfileScrubbingRules.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileScrubbingRules
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzFrontDoorCdnProfileScrubbingRulesObject
-#>
-function New-AzFrontDoorCdnProfileScrubbingRulesObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileScrubbingRules')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="The variable to be scrubbed from the logs.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryMatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryMatchVariable]
- $MatchVariable,
- [Parameter(HelpMessage="When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.")]
- [string]
- $Selector,
- [Parameter(HelpMessage="Defines the state of a log scrubbing rule. Default value is enabled.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryState])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryState]
- $State
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileScrubbingRules]::New()
-
- if ($PSBoundParameters.ContainsKey('MatchVariable')) {
- $Object.MatchVariable = $MatchVariable
- }
- if ($PSBoundParameters.ContainsKey('Selector')) {
- $Object.Selector = $Selector
- }
- if ($PSBoundParameters.ContainsKey('State')) {
- $Object.State = $State
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileUpgradeParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileUpgradeParametersObject.ps1
deleted file mode 100644
index fb04bc7159a1..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileUpgradeParametersObject.ps1
+++ /dev/null
@@ -1,47 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for ProfileUpgradeParameters.
-.Description
-Create an in-memory object for ProfileUpgradeParameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileUpgradeParameters
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzFrontDoorCdnProfileUpgradeParametersObject
-#>
-function New-AzFrontDoorCdnProfileUpgradeParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileUpgradeParameters')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="Web Application Firewall (WAF) and security policy mapping for the profile upgrade.")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfileChangeSkuWafMapping[]]
- $WafMappingList
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ProfileUpgradeParameters]::New()
-
- if ($PSBoundParameters.ContainsKey('WafMappingList')) {
- $Object.WafMappingList = $WafMappingList
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnPurgeParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnPurgeParametersObject.ps1
deleted file mode 100644
index 1bb9b5958b07..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnPurgeParametersObject.ps1
+++ /dev/null
@@ -1,53 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for AfdPurgeParameters.
-.Description
-Create an in-memory object for AfdPurgeParameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdPurgeParameters
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzFrontDoorCdnPurgeParametersObject
-#>
-function New-AzFrontDoorCdnPurgeParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdPurgeParameters')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="The path to the content to be purged. Can describe a file path or a wild card directory.")]
- [string[]]
- $ContentPath,
- [Parameter(HelpMessage="List of domains.")]
- [string[]]
- $Domain
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AfdPurgeParameters]::New()
-
- if ($PSBoundParameters.ContainsKey('ContentPath')) {
- $Object.ContentPath = $ContentPath
- }
- if ($PSBoundParameters.ContainsKey('Domain')) {
- $Object.Domain = $Domain
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnResourceReferenceObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnResourceReferenceObject.ps1
deleted file mode 100644
index ab9d48a060ed..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnResourceReferenceObject.ps1
+++ /dev/null
@@ -1,47 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for ResourceReference.
-.Description
-Create an in-memory object for ResourceReference.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceReference
-.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnResourceReferenceObject
-#>
-function New-AzFrontDoorCdnResourceReferenceObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceReference')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="Resource ID.")]
- [string]
- $Id
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceReference]::New()
-
- if ($PSBoundParameters.ContainsKey('Id')) {
- $Object.Id = $Id
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRoute.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRoute.ps1
new file mode 100644
index 000000000000..56d8a5098603
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRoute.ps1
@@ -0,0 +1,439 @@
+# ----------------------------------------------------------------------------------
+# 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
+create a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
+.Description
+create a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
+.Example
+$originGroup = Get-AzFrontDoorCdnOriginGroup -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -OriginGroupName org001
+$ruleSet = Get-AzFrontDoorCdnRuleSet -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -RuleSetName ruleset001
+$customdomain = Get-AzFrontDoorCdnCustomDomain -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -CustomDomainName domain001
+
+$ruleSetResoure = New-AzFrontDoorCdnResourceReferenceObject -Id $ruleSet.Id
+$customdomainResoure = New-AzFrontDoorCdnResourceReferenceObject -Id $customdomain.Id
+
+New-AzFrontDoorCdnRoute -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001 -Name route001 -OriginGroupId $originGroup.Id -RuleSet @($ruleSetResoure) -PatternsToMatch "/*" -LinkToDefaultDomain "Enabled" -EnabledState "Enabled" -CustomDomain @($customdomainResoure)
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IRoute
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IRoute
+.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.
+
+AFDENDPOINTINPUTOBJECT : Identity Parameter
+ [CustomDomainName ]: Name of the domain under the profile which is unique globally.
+ [EndpointName ]: Name of the endpoint under the profile which is unique globally.
+ [Id ]: Resource identity path
+ [OriginGroupName ]: Name of the origin group which is unique within the endpoint.
+ [OriginName ]: Name of the origin which is unique within the profile.
+ [ProfileName ]: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
+ [ResourceGroupName ]: Name of the Resource group within the Azure subscription.
+ [RouteName ]: Name of the routing rule.
+ [RuleName ]: Name of the delivery rule which is unique within the endpoint.
+ [RuleSetName ]: Name of the rule set under the profile which is unique globally.
+ [SecretName ]: Name of the Secret under the profile.
+ [SecurityPolicyName ]: Name of the security policy under the profile.
+ [SubscriptionId ]: Azure Subscription ID.
+
+CUSTOMDOMAIN : Domains referenced by this endpoint.
+ [Id ]: Resource ID.
+
+PROFILEINPUTOBJECT : Identity Parameter
+ [CustomDomainName ]: Name of the domain under the profile which is unique globally.
+ [EndpointName ]: Name of the endpoint under the profile which is unique globally.
+ [Id ]: Resource identity path
+ [OriginGroupName ]: Name of the origin group which is unique within the endpoint.
+ [OriginName ]: Name of the origin which is unique within the profile.
+ [ProfileName ]: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
+ [ResourceGroupName ]: Name of the Resource group within the Azure subscription.
+ [RouteName ]: Name of the routing rule.
+ [RuleName ]: Name of the delivery rule which is unique within the endpoint.
+ [RuleSetName ]: Name of the rule set under the profile which is unique globally.
+ [SecretName ]: Name of the Secret under the profile.
+ [SecurityPolicyName ]: Name of the security policy under the profile.
+ [SubscriptionId ]: Azure Subscription ID.
+
+ROUTE : Friendly Routes name mapping to the any Routes or secret related information.
+ [CacheConfigurationQueryParameter ]: query parameters to include or exclude (comma separated).
+ [CacheConfigurationQueryStringCachingBehavior ]: Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
+ [CompressionSettingContentTypesToCompress >]: List of content types on which compression applies. The value should be a valid MIME type.
+ [CompressionSettingIsCompressionEnabled ]: Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
+ [CustomDomain >]: Domains referenced by this endpoint.
+ [Id ]: Resource ID.
+ [EnabledState ]: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
+ [ForwardingProtocol ]: Protocol this rule will use when forwarding traffic to backends.
+ [HttpsRedirect ]: Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed.
+ [LinkToDefaultDomain ]: whether this route will be linked to the default endpoint domain.
+ [Location ]:
+ [OriginGroupId ]: Resource ID.
+ [OriginPath ]: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
+ [PatternsToMatch >]: The route patterns of the rule.
+ [RuleSet >]: rule sets referenced by this endpoint.
+ [Id ]: Resource ID.
+ [SupportedProtocol >]: List of supported protocols for this route.
+
+RULESET : rule sets referenced by this endpoint.
+ [Id ]: Resource ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.cdn/new-azfrontdoorcdnroute
+#>
+
+function New-AzFrontDoorCdnRoute {
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IRoute])]
+ [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+ param(
+ [Parameter(Mandatory)]
+ [Alias('RouteName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [System.String]
+ # Name of the routing rule.
+ ${Name},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityProfile', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [System.String]
+ # Name of the endpoint under the profile which is unique globally.
+ ${EndpointName},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [System.String]
+ # Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
+ ${ProfileName},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [System.String]
+ # Name of the Resource group within the Azure subscription.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Azure Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpoint', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity]
+ # Identity Parameter
+ ${AfdEndpointInputObject},
+
+ [Parameter(ParameterSetName='CreateViaIdentityProfile', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity]
+ # Identity Parameter
+ ${ProfileInputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # query parameters to include or exclude (comma separated).
+ ${CacheConfigurationQueryParameter},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("IgnoreQueryString", "UseQueryString", "IgnoreSpecifiedQueryStrings", "IncludeSpecifiedQueryStrings")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Defines how Frontdoor caches requests that include query strings.
+ # You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.
+ ${CacheConfigurationQueryStringCachingBehavior},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String[]]
+ # List of content types on which compression applies.
+ # The value should be a valid MIME type.
+ ${CompressionSettingContentTypesToCompress},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether content compression is enabled on AzureFrontDoor.
+ # Default value is false.
+ # If compression is enabled, content will be served as compressed if user requests for a compressed version.
+ # Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.
+ ${CompressionSettingIsCompressionEnabled},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IActivatedResourceReference[]]
+ # Domains referenced by this endpoint.
+ ${CustomDomain},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Whether to enable use of this rule.
+ # Permitted values are 'Enabled' or 'Disabled'
+ ${EnabledState},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Protocol this rule will use when forwarding traffic to backends.
+ ${ForwardingProtocol},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Whether to automatically redirect HTTP traffic to HTTPS traffic.
+ # Note that this is a easy way to set up this rule and it will be the first rule that gets executed.
+ ${HttpsRedirect},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # whether this route will be linked to the default endpoint domain.
+ ${LinkToDefaultDomain},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Resource ID.
+ ${OriginGroupId},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.
+ # contoso.cloudapp.net/originpath.
+ ${OriginPath},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String[]]
+ # The route patterns of the rule.
+ ${PatternsToMatch},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IResourceReference[]]
+ # rule sets referenced by this endpoint.
+ ${RuleSet},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpointExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityProfileExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Http", "Https")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String[]]
+ # List of supported protocols for this route.
+ ${SupportedProtocol},
+
+ [Parameter(ParameterSetName='CreateViaIdentityAfdEndpoint', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='CreateViaIdentityProfile', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IRoute]
+ # Friendly Routes name mapping to the any Routes or secret related information.
+ ${Route},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.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.Cdn.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+ )
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\New-AzFrontDoorCdnRoute_CreateExpanded' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
+
+ process {
+ if (${CompressionSettingIsCompressionEnabled}.IsPresent) {
+ if (-not ${CompressionSettingContentTypesToCompress}) {
+ $CompressionSettingContentTypesToCompress = @(
+ 'application/eot',
+ 'application/font',
+ 'application/font-sfnt',
+ 'application/javascript',
+ 'application/json',
+ 'application/opentype',
+ 'application/otf',
+ 'application/pkcs7-mime',
+ 'application/truetype',
+ 'application/ttf',
+ 'application/vnd.ms-fontobject',
+ 'application/xhtml+xml',
+ 'application/xml',
+ 'application/xml+rss',
+ 'application/x-font-opentype',
+ 'application/x-font-truetype',
+ 'application/x-font-ttf',
+ 'application/x-httpd-cgi',
+ 'application/x-javascript',
+ 'application/x-mpegurl',
+ 'application/x-opentype',
+ 'application/x-otf',
+ 'application/x-perl',
+ 'application/x-ttf',
+ 'font/eot',
+ 'font/ttf',
+ 'font/otf',
+ 'font/opentype',
+ 'image/svg+xml',
+ 'text/css',
+ 'text/csv',
+ 'text/html',
+ 'text/javascript',
+ 'text/js',
+ 'text/plain',
+ 'text/richtext',
+ 'text/tab-separated-values',
+ 'text/xml',
+ 'text/x-script',
+ 'text/x-component',
+ 'text/x-java-source'
+ )
+ $PSBoundParameters['CompressionSettingContentTypesToCompress'] = $CompressionSettingContentTypesToCompress
+ }
+ }
+
+ Az.Cdn.internal\New-AzFrontDoorCdnRoute @PSBoundParameters
+ }
+}
\ No newline at end of file
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleClientPortConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleClientPortConditionObject.ps1
new file mode 100644
index 000000000000..af0304bcc158
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleClientPortConditionObject.ps1
@@ -0,0 +1,76 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for DeliveryRuleClientPortCondition.
+.Description
+Create an in-memory object for DeliveryRuleClientPortCondition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleClientPortCondition
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleclientportconditionobject
+#>
+function New-AzFrontDoorCdnRuleClientPortConditionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleClientPortCondition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [string[]]
+ $ParameterMatchValue,
+ [Parameter(HelpMessage="Describes if this is negate condition or not.")]
+ [bool]
+ $ParameterNegateCondition,
+ [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
+ $ParameterOperator,
+ [Parameter(HelpMessage="List of transforms.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
+ $ParameterTransform,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleClientPortCondition]::New()
+
+ if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
+ $Object.ParameterMatchValue = $ParameterMatchValue
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
+ $Object.ParameterNegateCondition = $ParameterNegateCondition
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
+ $Object.ParameterOperator = $ParameterOperator
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
+ $Object.ParameterTransform = $ParameterTransform
+ }
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleCookiesConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleCookiesConditionObject.ps1
index c3a650c5f951..be8d6aed23b0 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleCookiesConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleCookiesConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleCookiesCondition.
Create an in-memory object for DeliveryRuleCookiesCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCookiesCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCookiesCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleCookiesConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulecookiesconditionobject
#>
function New-AzFrontDoorCdnRuleCookiesConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCookiesCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCookiesCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,24 +38,25 @@ function New-AzFrontDoorCdnRuleCookiesConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CookiesOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CookiesOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="Name of Cookies to be matched.")]
[string]
$ParameterSelector,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCookiesCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleCookiesCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -71,8 +73,8 @@ function New-AzFrontDoorCdnRuleCookiesConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleHostNameConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleHostNameConditionObject.ps1
index 4816d2fbedd3..847b00711a28 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleHostNameConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleHostNameConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleHostNameCondition.
Create an in-memory object for DeliveryRuleHostNameCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHostNameCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleHostNameCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleHostNameConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulehostnameconditionobject
#>
function New-AzFrontDoorCdnRuleHostNameConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHostNameCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleHostNameCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,22 @@ function New-AzFrontDoorCdnRuleHostNameConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HostNameOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HostNameOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHostNameCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleHostNameCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,8 +67,8 @@ function New-AzFrontDoorCdnRuleHostNameConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleHttpVersionConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleHttpVersionConditionObject.ps1
index 58e802f9ca04..5bb83a2e1e3b 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleHttpVersionConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleHttpVersionConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleHttpVersionCondition.
Create an in-memory object for DeliveryRuleHttpVersionCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHttpVersionCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleHttpVersionCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleHttpVersionConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulehttpversionconditionobject
#>
function New-AzFrontDoorCdnRuleHttpVersionConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHttpVersionCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleHttpVersionCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,17 +38,18 @@ function New-AzFrontDoorCdnRuleHttpVersionConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHttpVersionCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleHttpVersionCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -58,8 +60,8 @@ function New-AzFrontDoorCdnRuleHttpVersionConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleIsDeviceConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleIsDeviceConditionObject.ps1
index b97253da9d5f..0a637ad1d3d0 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleIsDeviceConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleIsDeviceConditionObject.ps1
@@ -21,33 +21,36 @@ Create an in-memory object for DeliveryRuleIsDeviceCondition.
Create an in-memory object for DeliveryRuleIsDeviceCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleIsDeviceCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleIsDeviceCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleIsDeviceConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleisdeviceconditionobject
#>
function New-AzFrontDoorCdnRuleIsDeviceConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleIsDeviceCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleIsDeviceCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Mobile", "Desktop")]
[string[]]
$ParameterMatchValue,
[Parameter(HelpMessage="Describes if this is negate condition or not.")]
[bool]
$ParameterNegateCondition,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleIsDeviceCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleIsDeviceCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -58,8 +61,8 @@ function New-AzFrontDoorCdnRuleIsDeviceConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRulePostArgsConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRulePostArgsConditionObject.ps1
index 54dd64c8d11e..d47933318eda 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRulePostArgsConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRulePostArgsConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRulePostArgsCondition.
Create an in-memory object for DeliveryRulePostArgsCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRulePostArgsCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRulePostArgsCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRulePostArgsConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulepostargsconditionobject
#>
function New-AzFrontDoorCdnRulePostArgsConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRulePostArgsCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRulePostArgsCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,24 +38,25 @@ function New-AzFrontDoorCdnRulePostArgsConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.PostArgsOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.PostArgsOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="Name of PostArg to be matched.")]
[string]
$ParameterSelector,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRulePostArgsCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRulePostArgsCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -71,8 +73,8 @@ function New-AzFrontDoorCdnRulePostArgsConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleQueryStringConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleQueryStringConditionObject.ps1
index ccb80eb02758..7e46bb4a156d 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleQueryStringConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleQueryStringConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleQueryStringCondition.
Create an in-memory object for DeliveryRuleQueryStringCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleQueryStringCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleQueryStringCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleQueryStringConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulequerystringconditionobject
#>
function New-AzFrontDoorCdnRuleQueryStringConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleQueryStringCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleQueryStringCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,22 @@ function New-AzFrontDoorCdnRuleQueryStringConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.QueryStringOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.QueryStringOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleQueryStringCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleQueryStringCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,8 +67,8 @@ function New-AzFrontDoorCdnRuleQueryStringConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.ps1
index a19a5af50daf..3fef5c6d9ae2 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleRemoteAddressCondition.
Create an in-memory object for DeliveryRuleRemoteAddressCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRemoteAddressCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRemoteAddressCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleRemoteAddressConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleremoteaddressconditionobject
#>
function New-AzFrontDoorCdnRuleRemoteAddressConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRemoteAddressCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRemoteAddressCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,22 @@ function New-AzFrontDoorCdnRuleRemoteAddressConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RemoteAddressOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RemoteAddressOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRemoteAddressCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRemoteAddressCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,8 +67,8 @@ function New-AzFrontDoorCdnRuleRemoteAddressConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestBodyConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestBodyConditionObject.ps1
index 5af12b51f86d..ec87e7ebc0ea 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestBodyConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestBodyConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleRequestBodyCondition.
Create an in-memory object for DeliveryRuleRequestBodyCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestBodyCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestBodyCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleRequestBodyConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulerequestbodyconditionobject
#>
function New-AzFrontDoorCdnRuleRequestBodyConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestBodyCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestBodyCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,22 @@ function New-AzFrontDoorCdnRuleRequestBodyConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestBodyOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestBodyOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestBodyCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestBodyCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,8 +67,8 @@ function New-AzFrontDoorCdnRuleRequestBodyConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestHeaderActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestHeaderActionObject.ps1
index 41348893fa1d..0e202846146b 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestHeaderActionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestHeaderActionObject.ps1
@@ -21,33 +21,35 @@ Create an in-memory object for DeliveryRuleRequestHeaderAction.
Create an in-memory object for DeliveryRuleRequestHeaderAction.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderAction
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderAction
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleRequestHeaderActionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulerequestheaderactionobject
#>
function New-AzFrontDoorCdnRuleRequestHeaderActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderAction')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderAction')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(Mandatory, HelpMessage="Action to perform.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HeaderAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HeaderAction]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Append", "Overwrite", "Delete")]
+ [string]
$ParameterHeaderAction,
[Parameter(Mandatory, HelpMessage="Name of the header to modify.")]
[string]
$ParameterHeaderName,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName,
[Parameter(HelpMessage="Value for the specified action.")]
[string]
- $ParameterValue,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
+ $ParameterValue
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderAction]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderAction]::New()
if ($PSBoundParameters.ContainsKey('ParameterHeaderAction')) {
$Object.ParameterHeaderAction = $ParameterHeaderAction
@@ -55,12 +57,12 @@ function New-AzFrontDoorCdnRuleRequestHeaderActionObject {
if ($PSBoundParameters.ContainsKey('ParameterHeaderName')) {
$Object.ParameterHeaderName = $ParameterHeaderName
}
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
if ($PSBoundParameters.ContainsKey('ParameterValue')) {
$Object.ParameterValue = $ParameterValue
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
return $Object
}
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.ps1
index fba78c53ad98..b04b4c81f4d2 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleRequestHeaderCondition.
Create an in-memory object for DeliveryRuleRequestHeaderCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleRequestHeaderConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulerequestheaderconditionobject
#>
function New-AzFrontDoorCdnRuleRequestHeaderConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,24 +38,25 @@ function New-AzFrontDoorCdnRuleRequestHeaderConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestHeaderOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestHeaderOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="Name of Header to be matched.")]
[string]
$ParameterSelector,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestHeaderCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -71,8 +73,8 @@ function New-AzFrontDoorCdnRuleRequestHeaderConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestMethodConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestMethodConditionObject.ps1
index 156b96a9de2a..ef170ee6d265 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestMethodConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestMethodConditionObject.ps1
@@ -21,33 +21,36 @@ Create an in-memory object for DeliveryRuleRequestMethodCondition.
Create an in-memory object for DeliveryRuleRequestMethodCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestMethodCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestMethodCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleRequestMethodConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulerequestmethodconditionobject
#>
function New-AzFrontDoorCdnRuleRequestMethodConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestMethodCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestMethodCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "TRACE")]
[string[]]
$ParameterMatchValue,
[Parameter(HelpMessage="Describes if this is negate condition or not.")]
[bool]
$ParameterNegateCondition,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestMethodCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestMethodCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -58,8 +61,8 @@ function New-AzFrontDoorCdnRuleRequestMethodConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.ps1
index 307628c28c3e..d39fe60cc2de 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.ps1
@@ -21,33 +21,36 @@ Create an in-memory object for DeliveryRuleRequestSchemeCondition.
Create an in-memory object for DeliveryRuleRequestSchemeCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestSchemeCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestSchemeCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleRequestSchemeConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulerequestschemeconditionobject
#>
function New-AzFrontDoorCdnRuleRequestSchemeConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestSchemeCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestSchemeCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("HTTP", "HTTPS")]
[string[]]
$ParameterMatchValue,
[Parameter(HelpMessage="Describes if this is negate condition or not.")]
[bool]
$ParameterNegateCondition,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestSchemeCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestSchemeCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -58,8 +61,8 @@ function New-AzFrontDoorCdnRuleRequestSchemeConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestUriConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestUriConditionObject.ps1
index 271b6df85736..f26c112919d8 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestUriConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRequestUriConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleRequestUriCondition.
Create an in-memory object for DeliveryRuleRequestUriCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestUriCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestUriCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleRequestUriConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulerequesturiconditionobject
#>
function New-AzFrontDoorCdnRuleRequestUriConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestUriCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestUriCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,21 @@ function New-AzFrontDoorCdnRuleRequestUriConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestUriOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestUriOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
[Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("RequestUri")]
+ [string]
$Name
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestUriCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestUriCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,6 +66,9 @@ function New-AzFrontDoorCdnRuleRequestUriConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
if ($PSBoundParameters.ContainsKey('Name')) {
$Object.Name = $Name
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleResponseHeaderActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleResponseHeaderActionObject.ps1
index 88e6fdbdee72..f4a557867b15 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleResponseHeaderActionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleResponseHeaderActionObject.ps1
@@ -21,33 +21,35 @@ Create an in-memory object for DeliveryRuleResponseHeaderAction.
Create an in-memory object for DeliveryRuleResponseHeaderAction.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleResponseHeaderAction
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleResponseHeaderAction
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleResponseHeaderActionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleresponseheaderactionobject
#>
function New-AzFrontDoorCdnRuleResponseHeaderActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleResponseHeaderAction')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleResponseHeaderAction')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(Mandatory, HelpMessage="Action to perform.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HeaderAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HeaderAction]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Append", "Overwrite", "Delete")]
+ [string]
$ParameterHeaderAction,
[Parameter(Mandatory, HelpMessage="Name of the header to modify.")]
[string]
$ParameterHeaderName,
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName,
[Parameter(HelpMessage="Value for the specified action.")]
[string]
- $ParameterValue,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
+ $ParameterValue
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleResponseHeaderAction]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleResponseHeaderAction]::New()
if ($PSBoundParameters.ContainsKey('ParameterHeaderAction')) {
$Object.ParameterHeaderAction = $ParameterHeaderAction
@@ -55,12 +57,12 @@ function New-AzFrontDoorCdnRuleResponseHeaderActionObject {
if ($PSBoundParameters.ContainsKey('ParameterHeaderName')) {
$Object.ParameterHeaderName = $ParameterHeaderName
}
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
if ($PSBoundParameters.ContainsKey('ParameterValue')) {
$Object.ParameterValue = $ParameterValue
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
return $Object
}
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.ps1
index f0e727761403..75dccfb3c055 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.ps1
@@ -21,48 +21,49 @@ Create an in-memory object for DeliveryRuleRouteConfigurationOverrideAction.
Create an in-memory object for DeliveryRuleRouteConfigurationOverrideAction.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRouteConfigurationOverrideAction
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRouteConfigurationOverrideAction
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulerouteconfigurationoverrideactionobject
#>
function New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRouteConfigurationOverrideAction')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRouteConfigurationOverrideAction')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(HelpMessage="Caching behavior for the requests.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RuleCacheBehavior])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RuleCacheBehavior]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("HonorOrigin", "OverrideAlways", "OverrideIfOriginMissing")]
+ [string]
$CacheConfigurationCacheBehavior,
[Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss.")]
[string]
$CacheConfigurationCacheDuration,
[Parameter(HelpMessage="Indicates whether content compression is enabled. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RuleIsCompressionEnabled])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RuleIsCompressionEnabled]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ [string]
$CacheConfigurationIsCompressionEnabled,
[Parameter(HelpMessage="query parameters to include or exclude (comma separated).")]
[string]
$CacheConfigurationQueryParameter,
[Parameter(HelpMessage="Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RuleQueryStringCachingBehavior])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RuleQueryStringCachingBehavior]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("IgnoreQueryString", "UseQueryString", "IgnoreSpecifiedQueryStrings", "IncludeSpecifiedQueryStrings")]
+ [string]
$CacheConfigurationQueryStringCachingBehavior,
[Parameter(HelpMessage="Resource ID.")]
[string]
$OriginGroupId,
[Parameter(HelpMessage="Protocol this rule will use when forwarding traffic to backends.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ForwardingProtocol])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ForwardingProtocol]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("HttpOnly", "HttpsOnly", "MatchRequest")]
+ [string]
$OriginGroupOverrideForwardingProtocol,
[Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("RouteConfigurationOverride")]
+ [string]
$Name
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRouteConfigurationOverrideAction]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRouteConfigurationOverrideAction]::New()
if ($PSBoundParameters.ContainsKey('CacheConfigurationCacheBehavior')) {
$Object.CacheConfigurationCacheBehavior = $CacheConfigurationCacheBehavior
@@ -85,6 +86,9 @@ function New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject {
if ($PSBoundParameters.ContainsKey('OriginGroupOverrideForwardingProtocol')) {
$Object.OriginGroupOverrideForwardingProtocol = $OriginGroupOverrideForwardingProtocol
}
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
+ }
if ($PSBoundParameters.ContainsKey('Name')) {
$Object.Name = $Name
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleServerPortConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleServerPortConditionObject.ps1
index 496fbd53bc9c..4d7fed382959 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleServerPortConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleServerPortConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleServerPortCondition.
Create an in-memory object for DeliveryRuleServerPortCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleServerPortCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleServerPortCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleServerPortConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleserverportconditionobject
#>
function New-AzFrontDoorCdnRuleServerPortConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleServerPortCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleServerPortCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,22 @@ function New-AzFrontDoorCdnRuleServerPortConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ServerPortOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ServerPortOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleServerPortCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleServerPortCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,8 +67,8 @@ function New-AzFrontDoorCdnRuleServerPortConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleSocketAddrConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleSocketAddrConditionObject.ps1
index 9c3798e895c5..da2e791743b9 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleSocketAddrConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleSocketAddrConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleSocketAddrCondition.
Create an in-memory object for DeliveryRuleSocketAddrCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSocketAddrCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleSocketAddrCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleSocketAddrConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulesocketaddrconditionobject
#>
function New-AzFrontDoorCdnRuleSocketAddrConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSocketAddrCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleSocketAddrCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,22 @@ function New-AzFrontDoorCdnRuleSocketAddrConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SocketAddrOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SocketAddrOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "IPMatch")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSocketAddrCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleSocketAddrCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,8 +67,8 @@ function New-AzFrontDoorCdnRuleSocketAddrConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleSslProtocolConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleSslProtocolConditionObject.ps1
index f91fbd2d6e5c..5181ca6b6b7a 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleSslProtocolConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleSslProtocolConditionObject.ps1
@@ -21,34 +21,36 @@ Create an in-memory object for DeliveryRuleSslProtocolCondition.
Create an in-memory object for DeliveryRuleSslProtocolCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSslProtocolCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleSslProtocolCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleSslProtocolConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnrulesslprotocolconditionobject
#>
function New-AzFrontDoorCdnRuleSslProtocolConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSslProtocolCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleSslProtocolCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SslProtocol])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SslProtocol[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("TLSv1", "TLSv1.1", "TLSv1.2")]
+ [string[]]
$ParameterMatchValue,
[Parameter(HelpMessage="Describes if this is negate condition or not.")]
[bool]
$ParameterNegateCondition,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleSslProtocolCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleSslProtocolCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -59,8 +61,8 @@ function New-AzFrontDoorCdnRuleSslProtocolConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.ps1
index fcd885d6db5a..6a319dac55bb 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.ps1
@@ -16,17 +16,18 @@
<#
.Synopsis
-Create an in-memory object for DeliveryRuleUrlFileExtensionCondition.
+Create an in-memory object for DeliveryRuleRequestUriCondition.
.Description
-Create an in-memory object for DeliveryRuleUrlFileExtensionCondition.
+Create an in-memory object for DeliveryRuleRequestUriCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileExtensionCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestUriCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleUrlFileExtensionConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleurlfileextensionconditionobject
#>
function New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileExtensionCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileExtensionCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,22 @@ function New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileExtensionOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileExtensionOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileExtensionCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleRequestUriCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,8 +67,8 @@ function New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.ps1
index 58ebb1f7ecc6..99ebbf118f9e 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleUrlFileNameCondition.
Create an in-memory object for DeliveryRuleUrlFileNameCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileNameCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileNameCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleUrlFileNameConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleurlfilenameconditionobject
#>
function New-AzFrontDoorCdnRuleUrlFileNameConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileNameCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileNameCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,22 @@ function New-AzFrontDoorCdnRuleUrlFileNameConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileNameOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileNameOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileNameCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlFileNameCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,8 +67,8 @@ function New-AzFrontDoorCdnRuleUrlFileNameConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlPathConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlPathConditionObject.ps1
index f7b02b4a7385..3f1d6ca46b48 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlPathConditionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlPathConditionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for DeliveryRuleUrlPathCondition.
Create an in-memory object for DeliveryRuleUrlPathCondition.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlPathCondition
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlPathCondition
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleUrlPathConditionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleurlpathconditionobject
#>
function New-AzFrontDoorCdnRuleUrlPathConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlPathCondition')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlPathCondition')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,21 +38,22 @@ function New-AzFrontDoorCdnRuleUrlPathConditionObject {
[bool]
$ParameterNegateCondition,
[Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlPathOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlPathOperator]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Any", "Equal", "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "Wildcard", "RegEx")]
+ [string]
$ParameterOperator,
[Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Lowercase", "Uppercase", "Trim", "UrlDecode", "UrlEncode", "RemoveNulls")]
+ [string[]]
$ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleRemoteAddressConditionParameters", "DeliveryRuleRequestMethodConditionParameters", "DeliveryRuleQueryStringConditionParameters", "DeliveryRulePostArgsConditionParameters", "DeliveryRuleRequestUriConditionParameters", "DeliveryRuleRequestHeaderConditionParameters", "DeliveryRuleRequestBodyConditionParameters", "DeliveryRuleRequestSchemeConditionParameters", "DeliveryRuleUrlPathMatchConditionParameters", "DeliveryRuleUrlFileExtensionMatchConditionParameters", "DeliveryRuleUrlFilenameConditionParameters", "DeliveryRuleHttpVersionConditionParameters", "DeliveryRuleCookiesConditionParameters", "DeliveryRuleIsDeviceConditionParameters", "DeliveryRuleSocketAddrConditionParameters", "DeliveryRuleClientPortConditionParameters", "DeliveryRuleServerPortConditionParameters", "DeliveryRuleHostNameConditionParameters", "DeliveryRuleSslProtocolConditionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlPathCondition]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRuleUrlPathCondition]::New()
if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
$Object.ParameterMatchValue = $ParameterMatchValue
@@ -65,8 +67,8 @@ function New-AzFrontDoorCdnRuleUrlPathConditionObject {
if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
$Object.ParameterTransform = $ParameterTransform
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlRedirectActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlRedirectActionObject.ps1
index 35ddee90ad63..b28556793072 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlRedirectActionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlRedirectActionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for UrlRedirectAction.
Create an in-memory object for UrlRedirectAction.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectAction
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRedirectAction
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleUrlRedirectActionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleurlredirectactionobject
#>
function New-AzFrontDoorCdnRuleUrlRedirectActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectAction')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRedirectAction')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -43,21 +44,22 @@ function New-AzFrontDoorCdnRuleUrlRedirectActionObject {
[string]
$ParameterCustomQueryString,
[Parameter(HelpMessage="Protocol to use for the redirect. The default value is MatchRequest.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DestinationProtocol])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DestinationProtocol]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("MatchRequest", "Http", "Https")]
+ [string]
$ParameterDestinationProtocol,
[Parameter(Mandatory, HelpMessage="The redirect type the rule will use when redirecting traffic.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RedirectType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RedirectType]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Moved", "Found", "TemporaryRedirect", "PermanentRedirect")]
+ [string]
$ParameterRedirectType,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectAction]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRedirectAction]::New()
if ($PSBoundParameters.ContainsKey('ParameterCustomFragment')) {
$Object.ParameterCustomFragment = $ParameterCustomFragment
@@ -77,8 +79,8 @@ function New-AzFrontDoorCdnRuleUrlRedirectActionObject {
if ($PSBoundParameters.ContainsKey('ParameterRedirectType')) {
$Object.ParameterRedirectType = $ParameterRedirectType
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlRewriteActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlRewriteActionObject.ps1
index ec740ee8f2b6..a251aaa2e6b4 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlRewriteActionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlRewriteActionObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for UrlRewriteAction.
Create an in-memory object for UrlRewriteAction.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteAction
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRewriteAction
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleUrlRewriteActionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleurlrewriteactionobject
#>
function New-AzFrontDoorCdnRuleUrlRewriteActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteAction')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRewriteAction')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -39,14 +40,15 @@ function New-AzFrontDoorCdnRuleUrlRewriteActionObject {
[Parameter(Mandatory, HelpMessage="define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.")]
[string]
$ParameterSourcePattern,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteAction]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRewriteAction]::New()
if ($PSBoundParameters.ContainsKey('ParameterDestination')) {
$Object.ParameterDestination = $ParameterDestination
@@ -57,8 +59,8 @@ function New-AzFrontDoorCdnRuleUrlRewriteActionObject {
if ($PSBoundParameters.ContainsKey('ParameterSourcePattern')) {
$Object.ParameterSourcePattern = $ParameterSourcePattern
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlSigningActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlSigningActionObject.ps1
index dd6224821bda..c2282e9790bf 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlSigningActionObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRuleUrlSigningActionObject.ps1
@@ -21,30 +21,32 @@ Create an in-memory object for UrlSigningAction.
Create an in-memory object for UrlSigningAction.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningAction
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlSigningAction
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnRuleUrlSigningActionObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnruleurlsigningactionobject
#>
function New-AzFrontDoorCdnRuleUrlSigningActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningAction')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlSigningAction')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(HelpMessage="Algorithm to use for URL signing.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Algorithm])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Algorithm]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("SHA256")]
+ [string]
$ParameterAlgorithm,
[Parameter(HelpMessage="Defines which query string parameters in the url to be considered for expires, key id etc. .")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IUrlSigningParamIdentifier[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUrlSigningParamIdentifier[]]
$ParameterNameOverride,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", "DeliveryRuleRouteConfigurationOverrideActionParameters")]
+ [string]
+ [alias('Name')]
+ $ParameterTypeName
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningAction]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlSigningAction]::New()
if ($PSBoundParameters.ContainsKey('ParameterAlgorithm')) {
$Object.ParameterAlgorithm = $ParameterAlgorithm
@@ -52,8 +54,8 @@ function New-AzFrontDoorCdnRuleUrlSigningActionObject {
if ($PSBoundParameters.ContainsKey('ParameterNameOverride')) {
$Object.ParameterNameOverride = $ParameterNameOverride
}
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
+ if ($PSBoundParameters.ContainsKey('ParameterTypeName')) {
+ $Object.ParameterTypeName = $ParameterTypeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.ps1
index 108e727b12dd..28b7319aabc7 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for CustomerCertificateParameters.
Create an in-memory object for CustomerCertificateParameters.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomerCertificateParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CustomerCertificateParameters
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnSecretCustomerCertificateParametersObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnsecretcustomercertificateparametersobject
#>
function New-AzFrontDoorCdnSecretCustomerCertificateParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomerCertificateParameters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CustomerCertificateParameters')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,19 +38,19 @@ function New-AzFrontDoorCdnSecretCustomerCertificateParametersObject {
[string]
$SecretVersion,
[Parameter(HelpMessage="The list of SANs.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.ParameterBreakingChangeAttribute("SubjectAlternativeName", "14.5.0", "5.4.0", "2026/05/15", ChangeDescription = "The '-SubjectAlternativeName' parameter is being deprecated and will be removed in a future release, following the removal of the 'subjectAlternativeNames' property from the 'CustomerCertificateParameters' schema in the service contract.")]
[string[]]
$SubjectAlternativeName,
[Parameter(HelpMessage="Whether to use the latest version for the certificate.")]
[bool]
$UseLatestVersion,
- [Parameter(Mandatory, HelpMessage="The type of the secret resource.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SecretType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SecretType]
+ [Parameter(HelpMessage="The Type of Certificate.")]
+ [string]
$Type
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CustomerCertificateParameters]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.CustomerCertificateParameters]::New()
if ($PSBoundParameters.ContainsKey('SecretSourceId')) {
$Object.SecretSourceId = $SecretSourceId
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.ps1
index 4054ca2025c5..b4dc7708dd92 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.ps1
@@ -21,26 +21,29 @@ Create an in-memory object for AzureFirstPartyManagedCertificateParameters.
Create an in-memory object for AzureFirstPartyManagedCertificateParameters.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AzureFirstPartyManagedCertificateParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AzureFirstPartyManagedCertificateParameters
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnsecretfirstpartymanagedcertificateparametersobject
#>
function New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AzureFirstPartyManagedCertificateParameters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AzureFirstPartyManagedCertificateParameters')]
[CmdletBinding(PositionalBinding=$false)]
Param(
- [Parameter(Mandatory, HelpMessage="The type of the secret resource.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SecretType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SecretType]
+ [Parameter(HelpMessage="The list of SANs.")]
+ [string[]]
+ $SubjectAlternativeName,
+ [Parameter(HelpMessage="Type.")]
+ [string]
$Type
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.AzureFirstPartyManagedCertificateParameters]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AzureFirstPartyManagedCertificateParameters]::New()
- if ($PSBoundParameters.ContainsKey('Type')) {
- $Object.Type = $Type
+ if ($PSBoundParameters.ContainsKey('SubjectAlternativeName')) {
+ $Object.SubjectAlternativeName = $SubjectAlternativeName
}
return $Object
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.ps1
index e52e94cdba57..a0f317ad4442 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.ps1
@@ -21,27 +21,23 @@ Create an in-memory object for ManagedCertificateParameters.
Create an in-memory object for ManagedCertificateParameters.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ManagedCertificateParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ManagedCertificateParameters
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnSecretManagedCertificateParametersObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnsecretmanagedcertificateparametersobject
#>
function New-AzFrontDoorCdnSecretManagedCertificateParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ManagedCertificateParameters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ManagedCertificateParameters')]
[CmdletBinding(PositionalBinding=$false)]
Param(
-
- [Parameter(Mandatory, HelpMessage="The type of the secret resource.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SecretType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SecretType]
+ [Parameter(HelpMessage="Type.")]
+ [string]
$Type
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ManagedCertificateParameters]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ManagedCertificateParameters]::New()
- if ($PSBoundParameters.ContainsKey('Type')) {
- $Object.Type = $Type
- }
return $Object
}
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.ps1
index e543ba8c584e..798435fac680 100644
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for UrlSigningKeyParameters.
Create an in-memory object for UrlSigningKeyParameters.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningKeyParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlSigningKeyParameters
.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnSecretUrlSigningKeyParametersObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnsecreturlsigningkeyparametersobject
#>
function New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningKeyParameters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlSigningKeyParameters')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -39,14 +40,14 @@ function New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject {
[Parameter(HelpMessage="Version of the secret to be used.")]
[string]
$SecretVersion,
- [Parameter(Mandatory, HelpMessage="The type of the secret resource.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SecretType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SecretType]
+ [Parameter(HelpMessage="Type.")]
+ [string]
$Type
+
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningKeyParameters]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlSigningKeyParameters]::New()
if ($PSBoundParameters.ContainsKey('KeyId')) {
$Object.KeyId = $KeyId
@@ -57,9 +58,6 @@ function New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject {
if ($PSBoundParameters.ContainsKey('SecretVersion')) {
$Object.SecretVersion = $SecretVersion
}
- if ($PSBoundParameters.ContainsKey('Type')) {
- $Object.Type = $Type
- }
return $Object
}
}
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.ps1
deleted file mode 100644
index 6295a53b5c9a..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.ps1
+++ /dev/null
@@ -1,53 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for SecurityPolicyWebApplicationFirewallAssociation.
-.Description
-Create an in-memory object for SecurityPolicyWebApplicationFirewallAssociation.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyWebApplicationFirewallAssociation
-.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject
-#>
-function New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyWebApplicationFirewallAssociation')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="List of domains.")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IActivatedResourceReference[]]
- $Domain,
- [Parameter(HelpMessage="List of paths.")]
- [string[]]
- $PatternsToMatch
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyWebApplicationFirewallAssociation]::New()
-
- if ($PSBoundParameters.ContainsKey('Domain')) {
- $Object.Domain = $Domain
- }
- if ($PSBoundParameters.ContainsKey('PatternsToMatch')) {
- $Object.PatternsToMatch = $PatternsToMatch
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.ps1
deleted file mode 100644
index 034ce68828a9..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.ps1
+++ /dev/null
@@ -1,53 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for SecurityPolicyWebApplicationFirewallParameters.
-.Description
-Create an in-memory object for SecurityPolicyWebApplicationFirewallParameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyWebApplicationFirewallParameters
-.Link
-https://learn.microsoft.com/powershell/module/az.Cdn/new-azfrontdoorcdnsecuritypolicywebapplicationfirewallparametersobject
-#>
-function New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyWebApplicationFirewallParameters')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="Waf associations.")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ISecurityPolicyWebApplicationFirewallAssociation[]]
- $Association,
- [Parameter(HelpMessage="Resource ID.")]
- [string]
- $WafPolicyId
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.SecurityPolicyWebApplicationFirewallParameters]::New()
-
- if ($PSBoundParameters.ContainsKey('Association')) {
- $Object.Association = $Association
- }
- if ($PSBoundParameters.ContainsKey('WafPolicyId')) {
- $Object.WafPolicyId = $WafPolicyId
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/Remove-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/custom/Remove-AzCdnProfile.ps1
index f9026c28fd8b..4f212a065d7a 100644
--- a/src/Cdn/Cdn.Autorest/custom/Remove-AzCdnProfile.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Remove-AzCdnProfile.ps1
@@ -153,6 +153,21 @@ function Remove-AzCdnProfile {
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Remove-AzCdnProfile_Delete' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
process {
$hasAsJob = $PSBoundParameters.Remove('AsJob')
diff --git a/src/Cdn/Cdn.Autorest/custom/Remove-AzFrontDoorCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/custom/Remove-AzFrontDoorCdnProfile.ps1
index 479246ea94a8..077d11bb2c39 100644
--- a/src/Cdn/Cdn.Autorest/custom/Remove-AzFrontDoorCdnProfile.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Remove-AzFrontDoorCdnProfile.ps1
@@ -154,6 +154,22 @@ function Remove-AzFrontDoorCdnProfile {
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Remove-AzCdnProfile_Delete' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
+
process {
$hasAsJob = $PSBoundParameters.Remove('AsJob')
$hasNoWait = $PSBoundParameters.Remove('NoWait')
diff --git a/src/Cdn/Cdn.Autorest/custom/Start-AzFrontDoorCdnProfilePrepareMigration.ps1 b/src/Cdn/Cdn.Autorest/custom/Start-AzFrontDoorCdnProfilePrepareMigration.ps1
index 4aaf26146a84..96c317ad7d69 100644
--- a/src/Cdn/Cdn.Autorest/custom/Start-AzFrontDoorCdnProfilePrepareMigration.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Start-AzFrontDoorCdnProfilePrepareMigration.ps1
@@ -31,7 +31,7 @@ PS C:\> {{ Add code here }}
{{ Add output here }}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IMigrateResult
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IMigrateResult
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -46,7 +46,7 @@ https://learn.microsoft.com/powershell/module/az.cdn/start-azfrontdoorcdnprofile
#>
function Start-AzFrontDoorCdnProfilePrepareMigration {
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PreviewMessageAttribute("This cmdlet is using a preview API version and is subject to breaking change in a future release.")]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IMigrateResult])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IMigrateResult])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -67,20 +67,19 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
# Name of the new AFD Standard/Premium profile that need to be created.
${ProfileName},
- [Parameter(Mandatory)]
- [ValidateNotNull()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='MigrateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Standard_Verizon", "Premium_Verizon", "Custom_Verizon", "Standard_Akamai", "Standard_ChinaCdn", "Standard_Microsoft", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor", "Standard_955BandWidth_ChinaCdn", "Standard_AvgBandWidth_ChinaCdn", "StandardPlus_ChinaCdn", "StandardPlus_955BandWidth_ChinaCdn", "StandardPlus_AvgBandWidth_ChinaCdn")]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName]
+ [System.String]
# Name of the pricing tier.
${SkuName},
- [Parameter()]
+ [Parameter(ParameterSetName='MigrateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IMigrationWebApplicationFirewallMapping[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IMigrationWebApplicationFirewallMapping[]]
# Waf mapping for the migrated profile
- # To construct, see NOTES section for MIGRATIONWEBAPPLICATIONFIREWALLMAPPING properties and create a hash table.
${MigrationWebApplicationFirewallMapping},
[Parameter()]
@@ -90,21 +89,23 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
# Azure Subscription ID.
${SubscriptionId},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ManagedServiceIdentityType])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='MigrateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ManagedServiceIdentityType]
+ [System.String]
# Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
${IdentityType},
-
- [Parameter()]
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='MigrateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api40.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IManagedServiceIdentityUserAssignedIdentities]))]
[System.Collections.Hashtable]
# The set of user assigned identities associated with the resource.
# The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
# The dictionary values can be empty objects ({}) in requests.
- ${IdentityUserAssignedIdentity},
+ ${IdentityUserAssignedIdentity},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -165,6 +166,21 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Move-AzCdnProfile_MigrateExpanded' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
process {
if (!(Get-Module -ListAvailable -Name Az.FrontDoor)) {
@@ -221,7 +237,7 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
$allPoliciesWithWAF = New-Object System.Collections.Generic.HashSet[string]
$allPoliciesWithVault = New-Object System.Collections.Generic.HashSet[string]
foreach ($info in $frontDoorInfos) {
- $wafInfo = $info.WebApplicationFirewallPolicyLink
+ $wafInfo = $info.WebApplicationFirewallPolicyLinkId
if ($wafInfo) {
$allPoliciesWithWAF.Add($wafInfo.ToLower()) | Out-Null
}
@@ -238,12 +254,16 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
throw "MigrationWebApplicationFirewallMapping parameter instance should be equal to the number of WAF policy instance in the profile."
}
- if (($PSBoundParameters.ContainsKey('IdentityType')) -ne ($allPoliciesWithVault.count -gt 0)) {
- throw "MSIIdentity should be associated if the front door has Customer Certificates. If not, remove MSIIdentity parameter."
+ # We should raise a complaint if the customer did not enable managed identity when they have BYOC enabled.
+ # However, if the customer does not have BYOC but has specified a managed identity, we could ignore the validation for BYOC, no need to keep consistence with Portal behavior.
+ if (($allPoliciesWithVault.count -gt 0) -and !($PSBoundParameters.ContainsKey('IdentityType')))
+ {
+ throw "IdentityType parameter should be provided when the front door has Customer Certificates."
}
- Write-Host("The parameters have been successfully validated.")
- # Deal with Waf policy
+ Write-Host("The parameters have been validated successfully.")
+
+ # Step1: Deal with Waf policy
if ($PSBoundParameters.ContainsKey('MigrationWebApplicationFirewallMapping')) {
Write-Host("Starting to configure WAF policy upgrades.")
@@ -264,7 +284,7 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
}
}
- # Validate whether MigratedToId policy already exists in the subsrciption;
+ # Validate whether MigratedToId policy already exists in the subscription;
foreach ($policy in $wafPolicies) {
$migrateToWafId = $policy.MigratedToId
$migrateToWafArray = $policy.MigratedToId.split("/")
@@ -287,7 +307,7 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
Write-Host("WAF policy upgrades have been configured successfully.")
}
- # Create AFDx Profile
+ # Step2: Create AFDx Profile
# If create AfdX profile firstly, then an error ("Invalid migrated to waf reference.") will be thrown if the migrated-To-WAF is supposed to created. (not exists in current subscription)
Write-Host("Your new Front Door profile is being created. Please wait until the process has finished completely. This may take several minutes.")
$null = $PSBoundParameters.Remove('IdentityType')
@@ -296,15 +316,14 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
# No need to add this parameters here, cx may add this parameter when using this command.
# $PSBoundParameters.Add('ErrorAction', 'Stop')
- # Upgrade subcriptionId
+ # Upgrade subscriptionId
$PSBoundParameters['SubscriptionId'] = $subId
Az.Cdn.internal\Move-AzCdnProfile @PSBoundParameters
Write-Host("Your new Front Door profile with the configuration has been successfully created.")
- # Deal with MSI parameter
- # if ($PSBoundParameters.ContainsKey('IdentityType')) {
- if ($allPoliciesWithVault.count -gt 0) {
+ # Step 3: Deal with MSI parameter
+ if (${IdentityType}) {
Write-Host("Starting to enable managed identity.")
# Waiting for results of profile created return
@@ -312,13 +331,13 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
# 1. Enable MSI: get "principalId" from RP
$commandArgs = @{ ResourceGroupName = ${ResourceGroupName}; Name = ${ProfileName}; IdentityType = ${IdentityType}; ErrorAction = 'Stop'}
- if ($indentityType -ne "systemassigned") {
+ if ($IdentityType -ne "systemassigned") {
$commandArgs.Add('IdentityUserAssignedIdentity', ${IdentityUserAssignedIdentity})
}
$enableMSISuccessMessage = 'Enabling managed identity succeeded.'
$enableMSIRetryMessage = 'Retrying to enable managed identity...'
- $enableMSIErrorMessage = "Enableing managed identity failed."
+ $enableMSIErrorMessage = "Enabling managed identity failed."
$profileIdentity = RetryCommand -Command 'Update-AzFrontDoorCdnProfile' -CommandArgs $commandArgs -RetryTimes 6 -SecondsDelay 20 -SuccessMessage $enableMSISuccessMessage -RetryMessage $enableMSIRetryMessage -ErrorMessage $enableMSIErrorMessage
$identity = [System.Collections.ArrayList]@()
foreach ($id in $profileIdentity.IdentityUserAssignedIdentity.Values.PrincipalId) {
@@ -331,24 +350,31 @@ function Start-AzFrontDoorCdnProfilePrepareMigration {
$identity.Add($profileIdentity.IdentityPrincipalId) | Out-Null
}
- # Waiting for MSI granted access...
+ # Waiting for Enabling managed identity...
Start-Sleep(20)
- Write-Host("Starting to grant managed identity to key vault.")
- foreach ($vault in $allPoliciesWithVault) {
- foreach ($principal in $identity) {
- $grantAccessSuccessMessage = 'Granting managed identity to key vault succeeded.'
- $grantAccessRetryMessage = 'Retrying to grant managed identity to key vault...'
- $grantAccessErrorMessage = 'Granting managed identity to key vault failed.'
-
- $commandInfo = @{ VaultName = $vault; ObjectId = $principal; PermissionsToSecrets = 'Get'; PermissionsToCertificates = 'Get'; ErrorAction = 'Stop'; BypassObjectIdValidation = $true}
-
- # Set-AzKeyVaultAccessPolicy -VaultName $vault -ObjectId $principal -PermissionsToSecrets Get -PermissionsToCertificates Get
- # Adding the parameter `-BypassObjectIdValidation` to bypass the validation when using pipeline to do migration, the type of `-BypassObjectIdValidation` is 'SwitchParameter'.
- RetryCommand -Command 'Set-AzKeyVaultAccessPolicy' -CommandArgs $commandInfo -RetryTimes 6 -SecondsDelay 20 -SuccessMessage $grantAccessSuccessMessage -RetryMessage $grantAccessRetryMessage -ErrorMessage $grantAccessErrorMessage
+
+ # When the classic front door has BYOC, need to grant managed identity to the key vault.
+ if ($allPoliciesWithVault.count -gt 0)
+ {
+ Write-Host("Starting to grant managed identity to key vault.")
+ foreach ($vault in $allPoliciesWithVault) {
+ foreach ($principal in $identity) {
+ $grantAccessSuccessMessage = 'Granting managed identity to key vault succeeded.'
+ $grantAccessRetryMessage = 'Retrying to grant managed identity to key vault...'
+ $grantAccessErrorMessage = 'Granting managed identity to key vault failed.'
+
+ $commandInfo = @{ VaultName = $vault; ObjectId = $principal; PermissionsToSecrets = 'Get'; PermissionsToCertificates = 'Get'; ErrorAction = 'Stop'; BypassObjectIdValidation = $true}
+
+ # Set-AzKeyVaultAccessPolicy -VaultName $vault -ObjectId $principal -PermissionsToSecrets Get -PermissionsToCertificates Get
+ # Adding the parameter `-BypassObjectIdValidation` to bypass the validation when using pipeline to do migration, the type of `-BypassObjectIdValidation` is 'SwitchParameter'.
+ RetryCommand -Command 'Set-AzKeyVaultAccessPolicy' -CommandArgs $commandInfo -RetryTimes 6 -SecondsDelay 20 -SuccessMessage $grantAccessSuccessMessage -RetryMessage $grantAccessRetryMessage -ErrorMessage $grantAccessErrorMessage
+ }
}
- }
- Write-Host("Your have successfully granted managed identity to key vault.")
+ Write-Host("Your have successfully granted managed identity to key vault.")
+ }
+ } else {
+ Write-Debug("IdentityType parameter not provided and no BYOC for the current front door, skip Managed Identity step.")
}
Write-Host("The change need to be committed after this.")
@@ -491,7 +517,7 @@ function CreateNewWafPolicy {
# Remove the null/empty property
$validatedWafProperty = ValidateMigrationWafPolicyProperty -WafProperty $WafProperty
- # New a waf policy, copied from the Migrtae
+ # New a waf policy, copied from the Migrate
New-AzFrontDoorWafPolicy -ResourceGroupName $ResourceGroupName -Name $Name -Sku $sku @validatedWafProperty | Out-Null
}
@@ -564,4 +590,4 @@ function RetryCommand {
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Cdn/Cdn.Autorest/custom/Test-AzFrontDoorCdnProfileMigration.ps1 b/src/Cdn/Cdn.Autorest/custom/Test-AzFrontDoorCdnProfileMigration.ps1
index 009ca64b36e9..4f2801efbdea 100644
--- a/src/Cdn/Cdn.Autorest/custom/Test-AzFrontDoorCdnProfileMigration.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Test-AzFrontDoorCdnProfileMigration.ps1
@@ -25,13 +25,13 @@ PS C:\> {{ Add code here }}
PS C:\> {{ Add code here }}
{{ Add output here }}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ICanMigrateResult
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICanMigrateResult
.Link
https://learn.microsoft.com/powershell/module/az.cdn/test-azfrontdoorcdnprofilemigration
#>
function Test-AzFrontDoorCdnProfileMigration {
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PreviewMessageAttribute("This cmdlet is using a preview API version and is subject to breaking change in a future release.")]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ICanMigrateResult])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICanMigrateResult])]
[CmdletBinding(DefaultParameterSetName='CanExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -112,6 +112,21 @@ function Test-AzFrontDoorCdnProfileMigration {
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Invoke-AzCdnCanProfileMigrate_CanExpanded' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
process {
Write-Host("This could take a few seconds to a few mins depending on the complexity of your resource.")
diff --git a/src/Cdn/Cdn.Autorest/custom/Update-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/custom/Update-AzCdnProfile.ps1
index f80dca31132b..e5496b364f7d 100644
--- a/src/Cdn/Cdn.Autorest/custom/Update-AzCdnProfile.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Update-AzCdnProfile.ps1
@@ -31,7 +31,7 @@ PS C:\> {{ Add code here }}
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -56,7 +56,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.cdn/update-azcdnprofile
#>
function Update-AzCdnProfile {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -95,7 +95,7 @@ function Update-AzCdnProfile {
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfileUpdateParametersTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfileUpdateParametersTags]))]
[System.Collections.Hashtable]
# Profile tags
${Tag},
@@ -159,6 +159,21 @@ function Update-AzCdnProfile {
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Update-AzCdnProfile_UpdateExpanded' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
process {
$hasTag = $PSBoundParameters.Remove('Tag')
diff --git a/src/Cdn/Cdn.Autorest/custom/Update-AzFrontDoorCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/custom/Update-AzFrontDoorCdnProfile.ps1
index a73781967b5b..4ccf861db0ce 100644
--- a/src/Cdn/Cdn.Autorest/custom/Update-AzFrontDoorCdnProfile.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Update-AzFrontDoorCdnProfile.ps1
@@ -31,7 +31,7 @@ PS C:\> {{ Add code here }}
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -56,10 +56,12 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.cdn/update-azfrontdoorcdnprofile
#>
function Update-AzFrontDoorCdnProfile {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('ProfileName')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[System.String]
@@ -67,12 +69,16 @@ function Update-AzFrontDoorCdnProfile {
${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[System.String]
# Name of the Resource group within the Azure subscription.
${ResourceGroupName},
[Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -83,61 +89,78 @@ function Update-AzFrontDoorCdnProfile {
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
-
- [Parameter()]
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [System.String]
+ # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
+ ${IdentityType},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IManagedServiceIdentityUserAssignedIdentities]))]
+ [System.Collections.Hashtable]
+ # The set of user assigned identities associated with the resource.
+ # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ # The dictionary values can be empty objects ({}) in requests.
+ ${IdentityUserAssignedIdentity},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfileScrubbingRules[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfileScrubbingRules[]]
# List of log scrubbing rules applied to the Azure Front Door profile logs.
- # To construct, see NOTES section for LOGSCRUBBINGRULE properties and create a hash table.
${LogScrubbingRule},
-
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProfileScrubbingState])]
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProfileScrubbingState]
+ [System.String]
# State of the log scrubbing config.
# Default value is Enabled.
${LogScrubbingState},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
[System.Int32]
# Send and receive timeout on forwarding request to the origin.
# When timeout is reached, the request fails and returns.
${OriginResponseTimeoutSecond},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfileUpdateParametersTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfileUpdateParametersTags]))]
[System.Collections.Hashtable]
# Profile tags
${Tag},
-
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ManagedServiceIdentityType])]
+
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ManagedServiceIdentityType]
- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- ${IdentityType},
-
- [Parameter()]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api40.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The set of user assigned identities associated with the resource.
- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- # The dictionary values can be empty objects ({}) in requests.
- ${IdentityUserAssignedIdentity},
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -192,6 +215,22 @@ function Update-AzFrontDoorCdnProfile {
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Update-AzCdnProfile_UpdateExpanded' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
+
process {
$hasTag = $PSBoundParameters.Remove('Tag')
$hasOriginResponseTimeout = $PSBoundParameters.Remove('OriginResponseTimeoutSecond')
diff --git a/src/Cdn/Cdn.Autorest/custom/Update-AzFrontDoorCdnProfileSku.ps1 b/src/Cdn/Cdn.Autorest/custom/Update-AzFrontDoorCdnProfileSku.ps1
index cb0812fdb3c7..1744da22db9a 100644
--- a/src/Cdn/Cdn.Autorest/custom/Update-AzFrontDoorCdnProfileSku.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/Update-AzFrontDoorCdnProfileSku.ps1
@@ -29,9 +29,9 @@ PS C:\> {{ Add code here }}
{{ Add output here }}
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfileUpgradeParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfileUpgradeParameters
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -50,7 +50,7 @@ https://learn.microsoft.com/powershell/module/az.cdn/update-azfrontdoorcdnprofil
#>
function Update-AzFrontDoorCdnProfileSku {
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PreviewMessageAttribute("This cmdlet is using a preview API version and is subject to breaking change in a future release.")]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfile])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfile])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -74,7 +74,7 @@ function Update-AzFrontDoorCdnProfileSku {
[Parameter(Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IProfileUpgradeParameters]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfileUpgradeParameters]
# Parameters required for profile upgrade.
# To construct, see NOTES section for PROFILEUPGRADEPARAMETER properties and create a hash table.
${ProfileUpgradeParameter},
@@ -138,6 +138,21 @@ function Update-AzFrontDoorCdnProfileSku {
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)
+ dynamicparam {
+ # Change Safety: forward the wrapped generated cmdlet's dynamic parameters (-AcquirePolicyToken / -ChangeReference).
+ # Self-gates on enable-change-safety: the private cmdlet implements IDynamicParameters only when the module opted in.
+ $dynamicParameters = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+ $wrapped = Get-Command -Name 'Az.Cdn.private\Update-AzFrontDoorCdnProfileSku_Upgrade' -ErrorAction Ignore
+ if ($wrapped -and [System.Management.Automation.IDynamicParameters].IsAssignableFrom($wrapped.ImplementingType)) {
+ $instance = [System.Activator]::CreateInstance($wrapped.ImplementingType)
+ foreach ($entry in $instance.GetDynamicParameters().GetEnumerator()) {
+ if (-not $dynamicParameters.ContainsKey($entry.Key)) {
+ $dynamicParameters.Add($entry.Key, $entry.Value)
+ }
+ }
+ }
+ return $dynamicParameters
+ }
process {
if (!(Get-Module -ListAvailable -Name Az.FrontDoor)) {
@@ -176,14 +191,14 @@ function Update-AzFrontDoorCdnProfileSku {
Set-AzContext -Subscription ${SubscriptionId}
}
- # Validate the waf policy whether located in the same subscritpion as the profile.
+ # Validate the waf policy whether located in the same subscription as the profile.
$contextNew = Get-AzContext
if ($contextNew.Subscription.Id -ne $changeToWafPolicySubId)
{
- throw "The subscritpion of existing or created Premium WAF policy should be in the same subscription as the profile's."
+ throw "The subscription of existing or created Premium WAF policy should be in the same subscription as the profile's."
}
- # 2. Validate whether the policy already exists in the subsrciption
+ # 2. Validate whether the policy already exists in the subscription
try {
Get-AzFrontDoorWafPolicy -ResourceGroupName $changeToWafPolicyResourceGroup -Name $changeToWafPolicyName -ErrorAction Stop | Out-Null
} catch {
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleCacheExpirationActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleCacheExpirationActionObject.ps1
deleted file mode 100644
index bae51553cd7b..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleCacheExpirationActionObject.ps1
+++ /dev/null
@@ -1,61 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleCacheExpirationAction.
-.Description
-Create an in-memory object for DeliveryRuleCacheExpirationAction.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheExpirationAction
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleCacheExpirationActionObject
-#>
-function New-AzCdnDeliveryRuleCacheExpirationActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheExpirationAction')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="Caching behavior for the requests.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CacheBehavior])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CacheBehavior]
- $ParameterCacheBehavior,
- [Parameter(HelpMessage="The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss.")]
- [string]
- $ParameterCacheDuration,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheExpirationAction]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterCacheBehavior')) {
- $Object.ParameterCacheBehavior = $ParameterCacheBehavior
- }
- if ($PSBoundParameters.ContainsKey('ParameterCacheDuration')) {
- $Object.ParameterCacheDuration = $ParameterCacheDuration
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.ps1
deleted file mode 100644
index 5fbd7d260309..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.ps1
+++ /dev/null
@@ -1,61 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleCacheKeyQueryStringAction.
-.Description
-Create an in-memory object for DeliveryRuleCacheKeyQueryStringAction.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheKeyQueryStringAction
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleCacheKeyQueryStringActionObject
-#>
-function New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheKeyQueryStringAction')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="query parameters to include or exclude (comma separated).")]
- [string]
- $ParameterQueryParameter,
- [Parameter(Mandatory, HelpMessage="Caching behavior for the requests.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.QueryStringBehavior])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.QueryStringBehavior]
- $ParameterQueryStringBehavior,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCacheKeyQueryStringAction]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterQueryParameter')) {
- $Object.ParameterQueryParameter = $ParameterQueryParameter
- }
- if ($PSBoundParameters.ContainsKey('ParameterQueryStringBehavior')) {
- $Object.ParameterQueryStringBehavior = $ParameterQueryStringBehavior
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleCookiesConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleCookiesConditionObject.ps1
deleted file mode 100644
index f282a113b386..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleCookiesConditionObject.ps1
+++ /dev/null
@@ -1,80 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleCookiesCondition.
-.Description
-Create an in-memory object for DeliveryRuleCookiesCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCookiesCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleCookiesConditionObject
-#>
-function New-AzCdnDeliveryRuleCookiesConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCookiesCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CookiesOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CookiesOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="Name of Cookies to be matched.")]
- [string]
- $ParameterSelector,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleCookiesCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterSelector')) {
- $Object.ParameterSelector = $ParameterSelector
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleHttpVersionConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleHttpVersionConditionObject.ps1
deleted file mode 100644
index b11a913284d5..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleHttpVersionConditionObject.ps1
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleHttpVersionCondition.
-.Description
-Create an in-memory object for DeliveryRuleHttpVersionCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHttpVersionCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleHttpVersionConditionObject
-#>
-function New-AzCdnDeliveryRuleHttpVersionConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHttpVersionCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleHttpVersionCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleIsDeviceConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleIsDeviceConditionObject.ps1
deleted file mode 100644
index e3542b8e0ce9..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleIsDeviceConditionObject.ps1
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleIsDeviceCondition.
-.Description
-Create an in-memory object for DeliveryRuleIsDeviceCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleIsDeviceCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleIsDeviceConditionObject
-#>
-function New-AzCdnDeliveryRuleIsDeviceConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleIsDeviceCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleIsDeviceCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleObject.ps1
index 4a15d7519e96..0d6c5f0b8351 100644
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleObject.ps1
@@ -21,20 +21,21 @@ Create an in-memory object for DeliveryRule.
Create an in-memory object for DeliveryRule.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRule
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRule
.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdndeliveryruleobject
#>
function New-AzCdnDeliveryRuleObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRule')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRule')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(Mandatory, HelpMessage="A list of actions that are executed when all the conditions of a rule are satisfied.")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IDeliveryRuleAction1[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IDeliveryRuleAction[]]
$Action,
[Parameter(HelpMessage="A list of conditions that must be matched for the actions to be executed.")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IDeliveryRuleCondition[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IDeliveryRuleCondition[]]
$Condition,
[Parameter(HelpMessage="Name of the rule.")]
[string]
@@ -45,7 +46,7 @@ function New-AzCdnDeliveryRuleObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRule]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.DeliveryRule]::New()
if ($PSBoundParameters.ContainsKey('Action')) {
$Object.Action = $Action
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRulePostArgsConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRulePostArgsConditionObject.ps1
deleted file mode 100644
index 166694794292..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRulePostArgsConditionObject.ps1
+++ /dev/null
@@ -1,80 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRulePostArgsCondition.
-.Description
-Create an in-memory object for DeliveryRulePostArgsCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRulePostArgsCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRulePostArgsConditionObject
-#>
-function New-AzCdnDeliveryRulePostArgsConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRulePostArgsCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.PostArgsOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.PostArgsOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="Name of PostArg to be matched.")]
- [string]
- $ParameterSelector,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRulePostArgsCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterSelector')) {
- $Object.ParameterSelector = $ParameterSelector
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleQueryStringConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleQueryStringConditionObject.ps1
deleted file mode 100644
index 516805af0f37..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleQueryStringConditionObject.ps1
+++ /dev/null
@@ -1,74 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleQueryStringCondition.
-.Description
-Create an in-memory object for DeliveryRuleQueryStringCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleQueryStringCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleQueryStringConditionObject
-#>
-function New-AzCdnDeliveryRuleQueryStringConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleQueryStringCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.QueryStringOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.QueryStringOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleQueryStringCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRemoteAddressConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRemoteAddressConditionObject.ps1
deleted file mode 100644
index b6fbf5c0f4b7..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRemoteAddressConditionObject.ps1
+++ /dev/null
@@ -1,74 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleRemoteAddressCondition.
-.Description
-Create an in-memory object for DeliveryRuleRemoteAddressCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRemoteAddressCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleRemoteAddressConditionObject
-#>
-function New-AzCdnDeliveryRuleRemoteAddressConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRemoteAddressCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RemoteAddressOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RemoteAddressOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRemoteAddressCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestBodyConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestBodyConditionObject.ps1
deleted file mode 100644
index 5f71b6dd075a..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestBodyConditionObject.ps1
+++ /dev/null
@@ -1,74 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleRequestBodyCondition.
-.Description
-Create an in-memory object for DeliveryRuleRequestBodyCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestBodyCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleRequestBodyConditionObject
-#>
-function New-AzCdnDeliveryRuleRequestBodyConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestBodyCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestBodyOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestBodyOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestBodyCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestHeaderActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestHeaderActionObject.ps1
deleted file mode 100644
index 82dc825a23d2..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestHeaderActionObject.ps1
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleRequestHeaderAction.
-.Description
-Create an in-memory object for DeliveryRuleRequestHeaderAction.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderAction
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleRequestHeaderActionObject
-#>
-function New-AzCdnDeliveryRuleRequestHeaderActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderAction')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="Action to perform.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HeaderAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HeaderAction]
- $ParameterHeaderAction,
- [Parameter(Mandatory, HelpMessage="Name of the header to modify.")]
- [string]
- $ParameterHeaderName,
- [Parameter(HelpMessage="Value for the specified action.")]
- [string]
- $ParameterValue,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderAction]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterHeaderAction')) {
- $Object.ParameterHeaderAction = $ParameterHeaderAction
- }
- if ($PSBoundParameters.ContainsKey('ParameterHeaderName')) {
- $Object.ParameterHeaderName = $ParameterHeaderName
- }
- if ($PSBoundParameters.ContainsKey('ParameterValue')) {
- $Object.ParameterValue = $ParameterValue
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestHeaderConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestHeaderConditionObject.ps1
deleted file mode 100644
index cd66ad40330a..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestHeaderConditionObject.ps1
+++ /dev/null
@@ -1,80 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleRequestHeaderCondition.
-.Description
-Create an in-memory object for DeliveryRuleRequestHeaderCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleRequestHeaderConditionObject
-#>
-function New-AzCdnDeliveryRuleRequestHeaderConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestHeaderOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestHeaderOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="Name of Header to be matched.")]
- [string]
- $ParameterSelector,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestHeaderCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterSelector')) {
- $Object.ParameterSelector = $ParameterSelector
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestMethodConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestMethodConditionObject.ps1
deleted file mode 100644
index 45add23a17a9..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestMethodConditionObject.ps1
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleRequestMethodCondition.
-.Description
-Create an in-memory object for DeliveryRuleRequestMethodCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestMethodCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleRequestMethodConditionObject
-#>
-function New-AzCdnDeliveryRuleRequestMethodConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestMethodCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestMethodCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestSchemeConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestSchemeConditionObject.ps1
deleted file mode 100644
index 663cc4d255ab..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestSchemeConditionObject.ps1
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleRequestSchemeCondition.
-.Description
-Create an in-memory object for DeliveryRuleRequestSchemeCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestSchemeCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleRequestSchemeConditionObject
-#>
-function New-AzCdnDeliveryRuleRequestSchemeConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestSchemeCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestSchemeCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestUriConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestUriConditionObject.ps1
deleted file mode 100644
index b23ec338b9a4..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleRequestUriConditionObject.ps1
+++ /dev/null
@@ -1,74 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleRequestUriCondition.
-.Description
-Create an in-memory object for DeliveryRuleRequestUriCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestUriCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleRequestUriConditionObject
-#>
-function New-AzCdnDeliveryRuleRequestUriConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestUriCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestUriOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RequestUriOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleRequestUriCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleResponseHeaderActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleResponseHeaderActionObject.ps1
deleted file mode 100644
index 1f8b317e5190..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleResponseHeaderActionObject.ps1
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleResponseHeaderAction.
-.Description
-Create an in-memory object for DeliveryRuleResponseHeaderAction.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleResponseHeaderAction
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleResponseHeaderActionObject
-#>
-function New-AzCdnDeliveryRuleResponseHeaderActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleResponseHeaderAction')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="Action to perform.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HeaderAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HeaderAction]
- $ParameterHeaderAction,
- [Parameter(Mandatory, HelpMessage="Name of the header to modify.")]
- [string]
- $ParameterHeaderName,
- [Parameter(HelpMessage="Value for the specified action.")]
- [string]
- $ParameterValue,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleResponseHeaderAction]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterHeaderAction')) {
- $Object.ParameterHeaderAction = $ParameterHeaderAction
- }
- if ($PSBoundParameters.ContainsKey('ParameterHeaderName')) {
- $Object.ParameterHeaderName = $ParameterHeaderName
- }
- if ($PSBoundParameters.ContainsKey('ParameterValue')) {
- $Object.ParameterValue = $ParameterValue
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.ps1
deleted file mode 100644
index 33bc31a7964a..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.ps1
+++ /dev/null
@@ -1,74 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleUrlFileExtensionCondition.
-.Description
-Create an in-memory object for DeliveryRuleUrlFileExtensionCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileExtensionCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleUrlFileExtensionConditionObject
-#>
-function New-AzCdnDeliveryRuleUrlFileExtensionConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileExtensionCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileExtensionOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileExtensionOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileExtensionCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleUrlFileNameConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleUrlFileNameConditionObject.ps1
deleted file mode 100644
index 073caa007c1b..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleUrlFileNameConditionObject.ps1
+++ /dev/null
@@ -1,74 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleUrlFileNameCondition.
-.Description
-Create an in-memory object for DeliveryRuleUrlFileNameCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileNameCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleUrlFileNameConditionObject
-#>
-function New-AzCdnDeliveryRuleUrlFileNameConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileNameCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileNameOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlFileNameOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlFileNameCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleUrlPathConditionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleUrlPathConditionObject.ps1
deleted file mode 100644
index beb567c7da57..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnDeliveryRuleUrlPathConditionObject.ps1
+++ /dev/null
@@ -1,74 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for DeliveryRuleUrlPathCondition.
-.Description
-Create an in-memory object for DeliveryRuleUrlPathCondition.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlPathCondition
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnDeliveryRuleUrlPathConditionObject
-#>
-function New-AzCdnDeliveryRuleUrlPathConditionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlPathCondition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The match value for the condition of the delivery rule.")]
- [string[]]
- $ParameterMatchValue,
- [Parameter(HelpMessage="Describes if this is negate condition or not.")]
- [bool]
- $ParameterNegateCondition,
- [Parameter(Mandatory, HelpMessage="Describes operator to be matched.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlPathOperator])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.UrlPathOperator]
- $ParameterOperator,
- [Parameter(HelpMessage="List of transforms.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Transform[]]
- $ParameterTransform,
- [Parameter(Mandatory, HelpMessage="The name of the condition for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MatchVariable]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.DeliveryRuleUrlPathCondition]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterMatchValue')) {
- $Object.ParameterMatchValue = $ParameterMatchValue
- }
- if ($PSBoundParameters.ContainsKey('ParameterNegateCondition')) {
- $Object.ParameterNegateCondition = $ParameterNegateCondition
- }
- if ($PSBoundParameters.ContainsKey('ParameterOperator')) {
- $Object.ParameterOperator = $ParameterOperator
- }
- if ($PSBoundParameters.ContainsKey('ParameterTransform')) {
- $Object.ParameterTransform = $ParameterTransform
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnHealthProbeParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnHealthProbeParametersObject.ps1
index 2902dc73936b..daa3f0629923 100644
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnHealthProbeParametersObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnHealthProbeParametersObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for HealthProbeParameters.
Create an in-memory object for HealthProbeParameters.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HealthProbeParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.HealthProbeParameters
.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnHealthProbeParametersObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnhealthprobeparametersobject
#>
function New-AzCdnHealthProbeParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HealthProbeParameters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.HealthProbeParameters')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -37,17 +38,17 @@ function New-AzCdnHealthProbeParametersObject {
[string]
$ProbePath,
[Parameter(HelpMessage="Protocol to use for health probe.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProbeProtocol])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProbeProtocol]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("NotSet", "Http", "Https")]
+ [string]
$ProbeProtocol,
[Parameter(HelpMessage="The type of health probe request that is made.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HealthProbeRequestType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.HealthProbeRequestType]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("NotSet", "GET", "HEAD")]
+ [string]
$ProbeRequestType
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.HealthProbeParameters]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.HealthProbeParameters]::New()
if ($PSBoundParameters.ContainsKey('ProbeIntervalInSecond')) {
$Object.ProbeIntervalInSecond = $ProbeIntervalInSecond
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnLoadParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnLoadParametersObject.ps1
index dac7ac489fc0..667f27ff2b75 100644
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnLoadParametersObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnLoadParametersObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for LoadParameters.
Create an in-memory object for LoadParameters.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.LoadParameters
.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnLoadParametersObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnloadparametersobject
#>
function New-AzCdnLoadParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadParameters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.LoadParameters')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -36,7 +37,7 @@ function New-AzCdnLoadParametersObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.LoadParameters]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.LoadParameters]::New()
if ($PSBoundParameters.ContainsKey('ContentPath')) {
$Object.ContentPath = $ContentPath
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnManagedHttpsParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnManagedHttpsParametersObject.ps1
deleted file mode 100644
index 94a55ce0deac..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnManagedHttpsParametersObject.ps1
+++ /dev/null
@@ -1,69 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for CdnManagedHttpsParameters.
-.Description
-Create an in-memory object for CdnManagedHttpsParameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CdnManagedHttpsParameters
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnManagedHttpsParametersObject
-#>
-function New-AzCdnManagedHttpsParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CdnManagedHttpsParameters')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="Type of certificate used.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CertificateType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CertificateType]
- $CertificateSourceParameterCertificateType,
- [Parameter(Mandatory, HelpMessage="Defines the source of the SSL certificate.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CertificateSource])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CertificateSource]
- $CertificateSource,
- [Parameter(HelpMessage="TLS protocol version that will be used for Https.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MinimumTlsVersion])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MinimumTlsVersion]
- $MinimumTlsVersion,
- [Parameter(Mandatory, HelpMessage="Defines the TLS extension protocol that is used for secure delivery.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProtocolType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProtocolType]
- $ProtocolType
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.CdnManagedHttpsParameters]::New()
-
- if ($PSBoundParameters.ContainsKey('CertificateSourceParameterCertificateType')) {
- $Object.CertificateSourceParameterCertificateType = $CertificateSourceParameterCertificateType
- }
- if ($PSBoundParameters.ContainsKey('CertificateSource')) {
- $Object.CertificateSource = $CertificateSource
- }
- if ($PSBoundParameters.ContainsKey('MinimumTlsVersion')) {
- $Object.MinimumTlsVersion = $MinimumTlsVersion
- }
- if ($PSBoundParameters.ContainsKey('ProtocolType')) {
- $Object.ProtocolType = $ProtocolType
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnMigrationEndpointMappingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnMigrationEndpointMappingObject.ps1
index 0220f8c9726d..157fcdf2aea7 100644
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnMigrationEndpointMappingObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnMigrationEndpointMappingObject.ps1
@@ -21,25 +21,26 @@ Create an in-memory object for MigrationEndpointMapping.
Create an in-memory object for MigrationEndpointMapping.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationEndpointMapping
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.MigrationEndpointMapping
.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnMigrationEndpointMappingObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnmigrationendpointmappingobject
#>
function New-AzCdnMigrationEndpointMappingObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationEndpointMapping')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.MigrationEndpointMapping')]
[CmdletBinding(PositionalBinding=$false)]
Param(
- [Parameter(HelpMessage="The name of the old endpoint.")]
+ [Parameter(HelpMessage="Name of the classic CDN profile endpoint.")]
[string]
$MigratedFrom,
- [Parameter(HelpMessage="The name for the new endpoint.")]
+ [Parameter(HelpMessage="Name of the newly created migrated Azure Frontdoor Standard/Premium profile endpoint. This name will replace the name of the classic CDN endpoint resource.")]
[string]
$MigratedTo
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.MigrationEndpointMapping]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.MigrationEndpointMapping]::New()
if ($PSBoundParameters.ContainsKey('MigratedFrom')) {
$Object.MigratedFrom = $MigratedFrom
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnOriginGroupOverrideActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnOriginGroupOverrideActionObject.ps1
deleted file mode 100644
index fecb878b47d7..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnOriginGroupOverrideActionObject.ps1
+++ /dev/null
@@ -1,54 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for OriginGroupOverrideAction.
-.Description
-Create an in-memory object for OriginGroupOverrideAction.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupOverrideAction
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnOriginGroupOverrideActionObject
-#>
-function New-AzCdnOriginGroupOverrideActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupOverrideAction')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="Resource ID.")]
- [string]
- $OriginGroupId,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.OriginGroupOverrideAction]::New()
-
- if ($PSBoundParameters.ContainsKey('OriginGroupId')) {
- $Object.OriginGroupId = $OriginGroupId
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnPurgeParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnPurgeParametersObject.ps1
index 9eb727524eda..d9ad0d60faca 100644
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnPurgeParametersObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnPurgeParametersObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for PurgeParameters.
Create an in-memory object for PurgeParameters.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.PurgeParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.PurgeParameters
.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnPurgeParametersObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnpurgeparametersobject
#>
function New-AzCdnPurgeParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.PurgeParameters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.PurgeParameters')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -36,7 +37,7 @@ function New-AzCdnPurgeParametersObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.PurgeParameters]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.PurgeParameters]::New()
if ($PSBoundParameters.ContainsKey('ContentPath')) {
$Object.ContentPath = $ContentPath
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnResourceReferenceObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnResourceReferenceObject.ps1
index 1de52d618045..de23defd633e 100644
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnResourceReferenceObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnResourceReferenceObject.ps1
@@ -21,12 +21,13 @@ Create an in-memory object for ResourceReference.
Create an in-memory object for ResourceReference.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceReference
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ResourceReference
.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnResourceReferenceObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnresourcereferenceobject
#>
function New-AzCdnResourceReferenceObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceReference')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ResourceReference')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -36,7 +37,7 @@ function New-AzCdnResourceReferenceObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResourceReference]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ResourceReference]::New()
if ($PSBoundParameters.ContainsKey('Id')) {
$Object.Id = $Id
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.ps1
index 74f8785d3cd3..054206beb0bb 100644
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.ps1
@@ -21,21 +21,22 @@ Create an in-memory object for ResponseBasedOriginErrorDetectionParameters.
Create an in-memory object for ResponseBasedOriginErrorDetectionParameters.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResponseBasedOriginErrorDetectionParameters
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ResponseBasedOriginErrorDetectionParameters
.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnResponseBasedOriginErrorDetectionParametersObject
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azcdnresponsebasedoriginerrordetectionparametersobject
#>
function New-AzCdnResponseBasedOriginErrorDetectionParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResponseBasedOriginErrorDetectionParameters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ResponseBasedOriginErrorDetectionParameters')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(HelpMessage="The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IHttpErrorRangeParameters[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IHttpErrorRangeParameters[]]
$HttpErrorRange,
[Parameter(HelpMessage="Type of response errors for real user requests for which origin will be deemed unhealthy.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ResponseBasedDetectedErrorTypes])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ResponseBasedDetectedErrorTypes]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("None", "TcpErrorsOnly", "TcpAndHttpErrors")]
+ [string]
$ResponseBasedDetectedErrorType,
[Parameter(HelpMessage="The percentage of failed requests in the sample where failover should trigger.")]
[int]
@@ -43,7 +44,7 @@ function New-AzCdnResponseBasedOriginErrorDetectionParametersObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.ResponseBasedOriginErrorDetectionParameters]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ResponseBasedOriginErrorDetectionParameters]::New()
if ($PSBoundParameters.ContainsKey('HttpErrorRange')) {
$Object.HttpErrorRange = $HttpErrorRange
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUrlRedirectActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUrlRedirectActionObject.ps1
deleted file mode 100644
index 961ff7490b4f..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUrlRedirectActionObject.ps1
+++ /dev/null
@@ -1,86 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for UrlRedirectAction.
-.Description
-Create an in-memory object for UrlRedirectAction.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectAction
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnUrlRedirectActionObject
-#>
-function New-AzCdnUrlRedirectActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectAction')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.")]
- [string]
- $ParameterCustomFragment,
- [Parameter(HelpMessage="Host to redirect. Leave empty to use the incoming host as the destination host.")]
- [string]
- $ParameterCustomHostname,
- [Parameter(HelpMessage="The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.")]
- [string]
- $ParameterCustomPath,
- [Parameter(HelpMessage="The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. ? and & will be added automatically so do not include them.")]
- [string]
- $ParameterCustomQueryString,
- [Parameter(HelpMessage="Protocol to use for the redirect. The default value is MatchRequest.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DestinationProtocol])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DestinationProtocol]
- $ParameterDestinationProtocol,
- [Parameter(Mandatory, HelpMessage="The redirect type the rule will use when redirecting traffic.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RedirectType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.RedirectType]
- $ParameterRedirectType,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRedirectAction]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterCustomFragment')) {
- $Object.ParameterCustomFragment = $ParameterCustomFragment
- }
- if ($PSBoundParameters.ContainsKey('ParameterCustomHostname')) {
- $Object.ParameterCustomHostname = $ParameterCustomHostname
- }
- if ($PSBoundParameters.ContainsKey('ParameterCustomPath')) {
- $Object.ParameterCustomPath = $ParameterCustomPath
- }
- if ($PSBoundParameters.ContainsKey('ParameterCustomQueryString')) {
- $Object.ParameterCustomQueryString = $ParameterCustomQueryString
- }
- if ($PSBoundParameters.ContainsKey('ParameterDestinationProtocol')) {
- $Object.ParameterDestinationProtocol = $ParameterDestinationProtocol
- }
- if ($PSBoundParameters.ContainsKey('ParameterRedirectType')) {
- $Object.ParameterRedirectType = $ParameterRedirectType
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUrlRewriteActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUrlRewriteActionObject.ps1
deleted file mode 100644
index fe72a1a0f082..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUrlRewriteActionObject.ps1
+++ /dev/null
@@ -1,66 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for UrlRewriteAction.
-.Description
-Create an in-memory object for UrlRewriteAction.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteAction
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnUrlRewriteActionObject
-#>
-function New-AzCdnUrlRewriteActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteAction')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="Define the relative URL to which the above requests will be rewritten by.")]
- [string]
- $ParameterDestination,
- [Parameter(HelpMessage="Whether to preserve unmatched path. Default value is true.")]
- [bool]
- $ParameterPreserveUnmatchedPath,
- [Parameter(Mandatory, HelpMessage="define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.")]
- [string]
- $ParameterSourcePattern,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlRewriteAction]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterDestination')) {
- $Object.ParameterDestination = $ParameterDestination
- }
- if ($PSBoundParameters.ContainsKey('ParameterPreserveUnmatchedPath')) {
- $Object.ParameterPreserveUnmatchedPath = $ParameterPreserveUnmatchedPath
- }
- if ($PSBoundParameters.ContainsKey('ParameterSourcePattern')) {
- $Object.ParameterSourcePattern = $ParameterSourcePattern
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUrlSigningActionObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUrlSigningActionObject.ps1
deleted file mode 100644
index 0f2308a4451f..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUrlSigningActionObject.ps1
+++ /dev/null
@@ -1,61 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for UrlSigningAction.
-.Description
-Create an in-memory object for UrlSigningAction.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningAction
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnUrlSigningActionObject
-#>
-function New-AzCdnUrlSigningActionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningAction')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="Algorithm to use for URL signing.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Algorithm])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.Algorithm]
- $ParameterAlgorithm,
- [Parameter(HelpMessage="Defines which query string parameters in the url to be considered for expires, key id etc. .")]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.IUrlSigningParamIdentifier[]]
- $ParameterNameOverride,
- [Parameter(Mandatory, HelpMessage="The name of the action for the delivery rule.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.DeliveryRuleAction]
- $Name
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UrlSigningAction]::New()
-
- if ($PSBoundParameters.ContainsKey('ParameterAlgorithm')) {
- $Object.ParameterAlgorithm = $ParameterAlgorithm
- }
- if ($PSBoundParameters.ContainsKey('ParameterNameOverride')) {
- $Object.ParameterNameOverride = $ParameterNameOverride
- }
- if ($PSBoundParameters.ContainsKey('Name')) {
- $Object.Name = $Name
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUserManagedHttpsParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUserManagedHttpsParametersObject.ps1
deleted file mode 100644
index 6d55cab45d1a..000000000000
--- a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzCdnUserManagedHttpsParametersObject.ps1
+++ /dev/null
@@ -1,92 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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
-Create an in-memory object for UserManagedHttpsParameters.
-.Description
-Create an in-memory object for UserManagedHttpsParameters.
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UserManagedHttpsParameters
-.Link
-https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnUserManagedHttpsParametersObject
-#>
-function New-AzCdnUserManagedHttpsParametersObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UserManagedHttpsParameters')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="Resource group of the user's Key Vault containing the SSL certificate.")]
- [string]
- $CertificateSourceParameterResourceGroupName,
- [Parameter(Mandatory, HelpMessage="The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.")]
- [string]
- $CertificateSourceParameterSecretName,
- [Parameter(HelpMessage="The version(GUID) of Key Vault Secret in Key Vault.")]
- [string]
- $CertificateSourceParameterSecretVersion,
- [Parameter(Mandatory, HelpMessage="Subscription Id of the user's Key Vault containing the SSL certificate.")]
- [string]
- $CertificateSourceParameterSubscriptionId,
- [Parameter(Mandatory, HelpMessage="The name of the user's Key Vault containing the SSL certificate.")]
- [string]
- $CertificateSourceParameterVaultName,
- [Parameter(Mandatory, HelpMessage="Defines the source of the SSL certificate.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CertificateSource])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.CertificateSource]
- $CertificateSource,
- [Parameter(HelpMessage="TLS protocol version that will be used for Https.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MinimumTlsVersion])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.MinimumTlsVersion]
- $MinimumTlsVersion,
- [Parameter(Mandatory, HelpMessage="Defines the TLS extension protocol that is used for secure delivery.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProtocolType])]
- [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProtocolType]
- $ProtocolType
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240501Preview.UserManagedHttpsParameters]::New()
-
- if ($PSBoundParameters.ContainsKey('CertificateSourceParameterResourceGroupName')) {
- $Object.CertificateSourceParameterResourceGroupName = $CertificateSourceParameterResourceGroupName
- }
- if ($PSBoundParameters.ContainsKey('CertificateSourceParameterSecretName')) {
- $Object.CertificateSourceParameterSecretName = $CertificateSourceParameterSecretName
- }
- if ($PSBoundParameters.ContainsKey('CertificateSourceParameterSecretVersion')) {
- $Object.CertificateSourceParameterSecretVersion = $CertificateSourceParameterSecretVersion
- }
- if ($PSBoundParameters.ContainsKey('CertificateSourceParameterSubscriptionId')) {
- $Object.CertificateSourceParameterSubscriptionId = $CertificateSourceParameterSubscriptionId
- }
- if ($PSBoundParameters.ContainsKey('CertificateSourceParameterVaultName')) {
- $Object.CertificateSourceParameterVaultName = $CertificateSourceParameterVaultName
- }
- if ($PSBoundParameters.ContainsKey('CertificateSource')) {
- $Object.CertificateSource = $CertificateSource
- }
- if ($PSBoundParameters.ContainsKey('MinimumTlsVersion')) {
- $Object.MinimumTlsVersion = $MinimumTlsVersion
- }
- if ($PSBoundParameters.ContainsKey('ProtocolType')) {
- $Object.ProtocolType = $ProtocolType
- }
- return $Object
- }
-}
-
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.ps1
new file mode 100644
index 000000000000..365bad73e9c7
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.ps1
@@ -0,0 +1,75 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for AfdDomainHttpsParameters.
+.Description
+Create an in-memory object for AfdDomainHttpsParameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdDomainHttpsParameters
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdncustomdomaintlssettingparametersobject
+#>
+function New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdDomainHttpsParameters')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Defines the source of the SSL certificate.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("CustomerCertificate", "ManagedCertificate", "AzureFirstPartyManagedCertificate")]
+ [string]
+ $CertificateType,
+ [Parameter(HelpMessage="cipher suite set type that will be used for Https.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Customized", "TLS10_2019", "TLS12_2022", "TLS12_2023")]
+ [string]
+ $CipherSuiteSetType,
+ [Parameter(HelpMessage="Customized cipher suites object that will be used for Https when cipherSuiteSetType is Customized.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IAfdDomainHttpsCustomizedCipherSuiteSet]
+ $CustomizedCipherSuiteSet,
+ [Parameter(HelpMessage="TLS protocol version that will be used for Https when cipherSuiteSetType is Customized.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("TLS10", "TLS12", "TLS13")]
+ [string]
+ $MinimumTlsVersion,
+ [Parameter(HelpMessage="Resource reference to the secret. ie. subs/rg/profile/secret.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IResourceReference]
+ $Secret
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdDomainHttpsParameters]::New()
+
+ if ($PSBoundParameters.ContainsKey('CertificateType')) {
+ $Object.CertificateType = $CertificateType
+ }
+ if ($PSBoundParameters.ContainsKey('CipherSuiteSetType')) {
+ $Object.CipherSuiteSetType = $CipherSuiteSetType
+ }
+ if ($PSBoundParameters.ContainsKey('CustomizedCipherSuiteSet')) {
+ $Object.CustomizedCipherSuiteSet = $CustomizedCipherSuiteSet
+ }
+ if ($PSBoundParameters.ContainsKey('MinimumTlsVersion')) {
+ $Object.MinimumTlsVersion = $MinimumTlsVersion
+ }
+ if ($PSBoundParameters.ContainsKey('Secret')) {
+ $Object.Secret = $Secret
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnMigrationParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnMigrationParametersObject.ps1
new file mode 100644
index 000000000000..84d6027abae6
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnMigrationParametersObject.ps1
@@ -0,0 +1,67 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for MigrationParameters.
+.Description
+Create an in-memory object for MigrationParameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.MigrationParameters
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnmigrationparametersobject
+#>
+function New-AzFrontDoorCdnMigrationParametersObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.MigrationParameters')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Resource ID.")]
+ [string]
+ $ClassicResourceReferenceId,
+ [Parameter(HelpMessage="Waf mapping for the migrated profile.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IMigrationWebApplicationFirewallMapping[]]
+ $MigrationWebApplicationFirewallMapping,
+ [Parameter(Mandatory, HelpMessage="Name of the new profile that need to be created.")]
+ [string]
+ $ProfileName,
+ [Parameter(HelpMessage="Name of the pricing tier.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Standard_Verizon", "Premium_Verizon", "Custom_Verizon", "Standard_Akamai", "Standard_ChinaCdn", "Standard_Microsoft", "Standard_AzureFrontDoor", "Premium_AzureFrontDoor", "Standard_955BandWidth_ChinaCdn", "Standard_AvgBandWidth_ChinaCdn", "StandardPlus_ChinaCdn", "StandardPlus_955BandWidth_ChinaCdn", "StandardPlus_AvgBandWidth_ChinaCdn")]
+ [string]
+ $SkuName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.MigrationParameters]::New()
+
+ if ($PSBoundParameters.ContainsKey('ClassicResourceReferenceId')) {
+ $Object.ClassicResourceReferenceId = $ClassicResourceReferenceId
+ }
+ if ($PSBoundParameters.ContainsKey('MigrationWebApplicationFirewallMapping')) {
+ $Object.MigrationWebApplicationFirewallMapping = $MigrationWebApplicationFirewallMapping
+ }
+ if ($PSBoundParameters.ContainsKey('ProfileName')) {
+ $Object.ProfileName = $ProfileName
+ }
+ if ($PSBoundParameters.ContainsKey('SkuName')) {
+ $Object.SkuName = $SkuName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.ps1
new file mode 100644
index 000000000000..864a0f8027ac
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.ps1
@@ -0,0 +1,54 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for MigrationWebApplicationFirewallMapping.
+.Description
+Create an in-memory object for MigrationWebApplicationFirewallMapping.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.MigrationWebApplicationFirewallMapping
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnmigrationwebapplicationfirewallmappingobject
+#>
+function New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.MigrationWebApplicationFirewallMapping')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Resource ID.")]
+ [string]
+ $MigratedFromId,
+ [Parameter(HelpMessage="Resource ID.")]
+ [string]
+ $MigratedToId
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.MigrationWebApplicationFirewallMapping]::New()
+
+ if ($PSBoundParameters.ContainsKey('MigratedFromId')) {
+ $Object.MigratedFromId = $MigratedFromId
+ }
+ if ($PSBoundParameters.ContainsKey('MigratedToId')) {
+ $Object.MigratedToId = $MigratedToId
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.ps1
new file mode 100644
index 000000000000..aa75fe623a7f
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.ps1
@@ -0,0 +1,68 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for HealthProbeParameters.
+.Description
+Create an in-memory object for HealthProbeParameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.HealthProbeParameters
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnorigingrouphealthprobesettingobject
+#>
+function New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.HealthProbeParameters')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The number of seconds between health probes.Default is 240sec.")]
+ [int]
+ $ProbeIntervalInSecond,
+ [Parameter(HelpMessage="The path relative to the origin that is used to determine the health of the origin.")]
+ [string]
+ $ProbePath,
+ [Parameter(HelpMessage="Protocol to use for health probe.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("NotSet", "Http", "Https")]
+ [string]
+ $ProbeProtocol,
+ [Parameter(HelpMessage="The type of health probe request that is made.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("NotSet", "GET", "HEAD")]
+ [string]
+ $ProbeRequestType
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.HealthProbeParameters]::New()
+
+ if ($PSBoundParameters.ContainsKey('ProbeIntervalInSecond')) {
+ $Object.ProbeIntervalInSecond = $ProbeIntervalInSecond
+ }
+ if ($PSBoundParameters.ContainsKey('ProbePath')) {
+ $Object.ProbePath = $ProbePath
+ }
+ if ($PSBoundParameters.ContainsKey('ProbeProtocol')) {
+ $Object.ProbeProtocol = $ProbeProtocol
+ }
+ if ($PSBoundParameters.ContainsKey('ProbeRequestType')) {
+ $Object.ProbeRequestType = $ProbeRequestType
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.ps1
new file mode 100644
index 000000000000..99219fb4fed4
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.ps1
@@ -0,0 +1,60 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for LoadBalancingSettingsParameters.
+.Description
+Create an in-memory object for LoadBalancingSettingsParameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.LoadBalancingSettingsParameters
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnorigingrouploadbalancingsettingobject
+#>
+function New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.LoadBalancingSettingsParameters')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The additional latency in milliseconds for probes to fall into the lowest latency bucket.")]
+ [int]
+ $AdditionalLatencyInMillisecond,
+ [Parameter(HelpMessage="The number of samples to consider for load balancing decisions.")]
+ [int]
+ $SampleSize,
+ [Parameter(HelpMessage="The number of samples within the sample period that must succeed.")]
+ [int]
+ $SuccessfulSamplesRequired
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.LoadBalancingSettingsParameters]::New()
+
+ if ($PSBoundParameters.ContainsKey('AdditionalLatencyInMillisecond')) {
+ $Object.AdditionalLatencyInMillisecond = $AdditionalLatencyInMillisecond
+ }
+ if ($PSBoundParameters.ContainsKey('SampleSize')) {
+ $Object.SampleSize = $SampleSize
+ }
+ if ($PSBoundParameters.ContainsKey('SuccessfulSamplesRequired')) {
+ $Object.SuccessfulSamplesRequired = $SuccessfulSamplesRequired
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.ps1
new file mode 100644
index 000000000000..2093d37e216d
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.ps1
@@ -0,0 +1,54 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for ProfileChangeSkuWafMapping.
+.Description
+Create an in-memory object for ProfileChangeSkuWafMapping.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileChangeSkuWafMapping
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnprofilechangeskuwafmappingobject
+#>
+function New-AzFrontDoorCdnProfileChangeSkuWafMappingObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileChangeSkuWafMapping')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Resource ID.")]
+ [string]
+ $ChangeToWafPolicyId,
+ [Parameter(Mandatory, HelpMessage="The security policy name.")]
+ [string]
+ $SecurityPolicyName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileChangeSkuWafMapping]::New()
+
+ if ($PSBoundParameters.ContainsKey('ChangeToWafPolicyId')) {
+ $Object.ChangeToWafPolicyId = $ChangeToWafPolicyId
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityPolicyName')) {
+ $Object.SecurityPolicyName = $SecurityPolicyName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileLogScrubbingObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileLogScrubbingObject.ps1
new file mode 100644
index 000000000000..36bceb6c8814
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileLogScrubbingObject.ps1
@@ -0,0 +1,55 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for ProfileLogScrubbing.
+.Description
+Create an in-memory object for ProfileLogScrubbing.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileLogScrubbing
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnprofilelogscrubbingobject
+#>
+function New-AzFrontDoorCdnProfileLogScrubbingObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileLogScrubbing')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="List of log scrubbing rules applied to the Azure Front Door profile logs.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfileScrubbingRules[]]
+ $ScrubbingRule,
+ [Parameter(HelpMessage="State of the log scrubbing config. Default value is Enabled.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ [string]
+ $State
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileLogScrubbing]::New()
+
+ if ($PSBoundParameters.ContainsKey('ScrubbingRule')) {
+ $Object.ScrubbingRule = $ScrubbingRule
+ }
+ if ($PSBoundParameters.ContainsKey('State')) {
+ $Object.State = $State
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileScrubbingRulesObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileScrubbingRulesObject.ps1
new file mode 100644
index 000000000000..555d6b79697e
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileScrubbingRulesObject.ps1
@@ -0,0 +1,62 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for ProfileScrubbingRules.
+.Description
+Create an in-memory object for ProfileScrubbingRules.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileScrubbingRules
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnprofilescrubbingrulesobject
+#>
+function New-AzFrontDoorCdnProfileScrubbingRulesObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileScrubbingRules')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="The variable to be scrubbed from the logs.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("RequestIPAddress", "RequestUri", "QueryStringArgNames")]
+ [string]
+ $MatchVariable,
+ [Parameter(HelpMessage="When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.")]
+ [string]
+ $Selector,
+ [Parameter(HelpMessage="Defines the state of a log scrubbing rule. Default value is enabled.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ [string]
+ $State
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileScrubbingRules]::New()
+
+ if ($PSBoundParameters.ContainsKey('MatchVariable')) {
+ $Object.MatchVariable = $MatchVariable
+ }
+ if ($PSBoundParameters.ContainsKey('Selector')) {
+ $Object.Selector = $Selector
+ }
+ if ($PSBoundParameters.ContainsKey('State')) {
+ $Object.State = $State
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileUpgradeParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileUpgradeParametersObject.ps1
new file mode 100644
index 000000000000..0d9dc0ed6173
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnProfileUpgradeParametersObject.ps1
@@ -0,0 +1,48 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for ProfileUpgradeParameters.
+.Description
+Create an in-memory object for ProfileUpgradeParameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileUpgradeParameters
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnprofileupgradeparametersobject
+#>
+function New-AzFrontDoorCdnProfileUpgradeParametersObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileUpgradeParameters')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Web Application Firewall (WAF) and security policy mapping for the profile upgrade.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IProfileChangeSkuWafMapping[]]
+ $WafMappingList
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ProfileUpgradeParameters]::New()
+
+ if ($PSBoundParameters.ContainsKey('WafMappingList')) {
+ $Object.WafMappingList = $WafMappingList
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnPurgeParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnPurgeParametersObject.ps1
new file mode 100644
index 000000000000..c006d640f42e
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnPurgeParametersObject.ps1
@@ -0,0 +1,54 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for AfdPurgeParameters.
+.Description
+Create an in-memory object for AfdPurgeParameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdPurgeParameters
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnpurgeparametersobject
+#>
+function New-AzFrontDoorCdnPurgeParametersObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdPurgeParameters')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="The path to the content to be purged. Can describe a file path or a wild card directory.")]
+ [string[]]
+ $ContentPath,
+ [Parameter(HelpMessage="List of domains.")]
+ [string[]]
+ $Domain
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.AfdPurgeParameters]::New()
+
+ if ($PSBoundParameters.ContainsKey('ContentPath')) {
+ $Object.ContentPath = $ContentPath
+ }
+ if ($PSBoundParameters.ContainsKey('Domain')) {
+ $Object.Domain = $Domain
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnResourceReferenceObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnResourceReferenceObject.ps1
new file mode 100644
index 000000000000..11d98594ae35
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnResourceReferenceObject.ps1
@@ -0,0 +1,48 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for ResourceReference.
+.Description
+Create an in-memory object for ResourceReference.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ResourceReference
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnresourcereferenceobject
+#>
+function New-AzFrontDoorCdnResourceReferenceObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ResourceReference')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Resource ID.")]
+ [string]
+ $Id
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ResourceReference]::New()
+
+ if ($PSBoundParameters.ContainsKey('Id')) {
+ $Object.Id = $Id
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.ps1
new file mode 100644
index 000000000000..74ecefceb303
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.ps1
@@ -0,0 +1,60 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for SecurityPolicyWebApplicationFirewallAssociation.
+.Description
+Create an in-memory object for SecurityPolicyWebApplicationFirewallAssociation.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecurityPolicyWebApplicationFirewallAssociation
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnsecuritypolicywebapplicationfirewallassociationobject
+#>
+function New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecurityPolicyWebApplicationFirewallAssociation')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="List of domains.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IActivatedResourceReference[]]
+ $Domain,
+ [Parameter(HelpMessage="List of paths.")]
+ [string[]]
+ $PatternsToMatch,
+ [Parameter(HelpMessage="List of routes.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IResourceReference[]]
+ $Route
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecurityPolicyWebApplicationFirewallAssociation]::New()
+
+ if ($PSBoundParameters.ContainsKey('Domain')) {
+ $Object.Domain = $Domain
+ }
+ if ($PSBoundParameters.ContainsKey('PatternsToMatch')) {
+ $Object.PatternsToMatch = $PatternsToMatch
+ }
+ if ($PSBoundParameters.ContainsKey('Route')) {
+ $Object.Route = $Route
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.ps1 b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.ps1
new file mode 100644
index 000000000000..44fdff8346e2
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/autogen-model-cmdlets/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.ps1
@@ -0,0 +1,60 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create an in-memory object for SecurityPolicyWebApplicationFirewallParameters.
+.Description
+Create an in-memory object for SecurityPolicyWebApplicationFirewallParameters.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecurityPolicyWebApplicationFirewallParameters
+.Link
+https://learn.microsoft.com/powershell/module/Az.Cdn/new-azfrontdoorcdnsecuritypolicywebapplicationfirewallparametersobject
+#>
+function New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecurityPolicyWebApplicationFirewallParameters')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Waf associations.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ISecurityPolicyWebApplicationFirewallAssociation[]]
+ $Association,
+ [Parameter(HelpMessage="Indicates if this is a profile-level WAF policy.")]
+ [bool]
+ $IsProfileLevel,
+ [Parameter(HelpMessage="Resource ID.")]
+ [string]
+ $WafPolicyId
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.SecurityPolicyWebApplicationFirewallParameters]::New()
+
+ if ($PSBoundParameters.ContainsKey('Association')) {
+ $Object.Association = $Association
+ }
+ if ($PSBoundParameters.ContainsKey('IsProfileLevel')) {
+ $Object.IsProfileLevel = $IsProfileLevel
+ }
+ if ($PSBoundParameters.ContainsKey('WafPolicyId')) {
+ $Object.WafPolicyId = $WafPolicyId
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Cdn/Cdn.Autorest/custom/common/Utils.ps1 b/src/Cdn/Cdn.Autorest/custom/common/Utils.ps1
index 88389a7391ef..f7de378fc3ac 100644
--- a/src/Cdn/Cdn.Autorest/custom/common/Utils.ps1
+++ b/src/Cdn/Cdn.Autorest/custom/common/Utils.ps1
@@ -1,6 +1,6 @@
function ISFrontDoorCdnProfile([string]$SkuName) {
- if ($SkuName -eq [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName]::PremiumAzureFrontDoor -or
- $SkuName -eq [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.SkuName]::StandardAzureFrontDoor) {
+ if ($SkuName -eq "Standard_AzureFrontDoor" -or
+ $SkuName -eq "Premium_AzureFrontDoor") {
return $true
}else{
return $false
diff --git a/src/Cdn/Cdn.Autorest/custom/locationCompat/LocationCompat.cs b/src/Cdn/Cdn.Autorest/custom/locationCompat/LocationCompat.cs
new file mode 100644
index 000000000000..637620e4e03d
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/custom/locationCompat/LocationCompat.cs
@@ -0,0 +1,46 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models
+{
+ public partial interface ICustomDomain { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface ICustomDomainInternal { string Location { get; set; } }
+ public partial class CustomDomain { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string ICustomDomainInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface IOrigin { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface IOriginInternal { string Location { get; set; } }
+ public partial class Origin { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string IOriginInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface IOriginGroup { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface IOriginGroupInternal { string Location { get; set; } }
+ public partial class OriginGroup { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string IOriginGroupInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface IAfdDomain { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface IAfdDomainInternal { string Location { get; set; } }
+ public partial class AfdDomain { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string IAfdDomainInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface IAfdOrigin { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface IAfdOriginInternal { string Location { get; set; } }
+ public partial class AfdOrigin { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string IAfdOriginInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface IAfdOriginGroup { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface IAfdOriginGroupInternal { string Location { get; set; } }
+ public partial class AfdOriginGroup { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string IAfdOriginGroupInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface IRoute { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface IRouteInternal { string Location { get; set; } }
+ public partial class Route { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string IRouteInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface IRule { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface IRuleInternal { string Location { get; set; } }
+ public partial class Rule { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string IRuleInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface ISecret { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface ISecretInternal { string Location { get; set; } }
+ public partial class Secret { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string ISecretInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface ISecurityPolicy { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface ISecurityPolicyInternal { string Location { get; set; } }
+ public partial class SecurityPolicy { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string ISecurityPolicyInternal.Location { get => this._location; set => this._location = value ?? null; } }
+
+ public partial interface IMigrateResult { [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.Info(Required = false, ReadOnly = true, Read = true, Create = false, Update = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; } }
+ internal partial interface IMigrateResultInternal { string Location { get; set; } }
+ public partial class MigrateResult { private string _location; [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Origin(Microsoft.Azure.PowerShell.Cmdlets.Cdn.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value ?? null; } string IMigrateResultInternal.Location { get => this._location; set => this._location = value ?? null; } }
+}
diff --git a/src/Cdn/Cdn.Autorest/docs/Add-AzCdnEdgeActionAttachment.md b/src/Cdn/Cdn.Autorest/docs/Add-AzCdnEdgeActionAttachment.md
new file mode 100644
index 000000000000..296539605163
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/docs/Add-AzCdnEdgeActionAttachment.md
@@ -0,0 +1,284 @@
+---
+external help file:
+Module Name: Az.Cdn
+online version: https://learn.microsoft.com/powershell/module/az.cdn/add-azcdnedgeactionattachment
+schema: 2.0.0
+---
+
+# Add-AzCdnEdgeActionAttachment
+
+## SYNOPSIS
+A long-running operation for adding an EdgeAction attachment.
+
+## SYNTAX
+
+### AddExpanded (Default)
+```
+Add-AzCdnEdgeActionAttachment -EdgeActionName -ResourceGroupName
+ -AttachedResourceId [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait]
+ [-Confirm] [-WhatIf] []
+```
+
+### Add
+```
+Add-AzCdnEdgeActionAttachment -EdgeActionName -ResourceGroupName
+ -Body [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait]
+ [-Confirm] [-WhatIf] []
+```
+
+### AddViaIdentity
+```
+Add-AzCdnEdgeActionAttachment -InputObject -Body
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] []
+```
+
+### AddViaIdentityExpanded
+```
+Add-AzCdnEdgeActionAttachment -InputObject -AttachedResourceId
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] []
+```
+
+### AddViaJsonFilePath
+```
+Add-AzCdnEdgeActionAttachment -EdgeActionName -ResourceGroupName -JsonFilePath
+ [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
+ []
+```
+
+### AddViaJsonString
+```
+Add-AzCdnEdgeActionAttachment -EdgeActionName -ResourceGroupName -JsonString
+ [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
+ []
+```
+
+## DESCRIPTION
+A long-running operation for adding an EdgeAction attachment.
+
+## EXAMPLES
+
+### Example 1: Add an EdgeAction attachment
+```powershell
+Add-AzCdnEdgeActionAttachment -ResourceGroupName testps-rg-da16jm -EdgeActionName edgeaction001 -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testps-rg-da16jm/providers/Microsoft.Cdn/profiles/fdp001/ruleSets/ruleset001/rules/rule001"
+```
+
+Adds the specified Front Door rule as an attachment to the EdgeAction resource.
+
+## PARAMETERS
+
+### -AsJob
+Run the command as a job
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -AttachedResourceId
+The attached resource Id
+
+```yaml
+Type: System.String
+Parameter Sets: AddExpanded, AddViaIdentityExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Body
+.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IEdgeActionAttachment
+Parameter Sets: Add, AddViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The DefaultProfile parameter is not functional.
+Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -EdgeActionName
+The name of the Edge Action
+
+```yaml
+Type: System.String
+Parameter Sets: Add, AddExpanded, AddViaJsonFilePath, AddViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
+Parameter Sets: AddViaIdentity, AddViaIdentityExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -JsonFilePath
+Path of Json file supplied to the Add operation
+
+```yaml
+Type: System.String
+Parameter Sets: AddViaJsonFilePath
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -JsonString
+Json string supplied to the Add operation
+
+```yaml
+Type: System.String
+Parameter Sets: AddViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -NoWait
+Run the command asynchronously
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: Add, AddExpanded, AddViaJsonFilePath, AddViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+The value must be an UUID.
+
+```yaml
+Type: System.String
+Parameter Sets: Add, AddExpanded, AddViaJsonFilePath, AddViaJsonString
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
+
+### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IEdgeActionAttachment
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IEdgeActionAttachmentResponse
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Cdn/Cdn.Autorest/help/Az.Cdn.md b/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md
similarity index 84%
rename from src/Cdn/Cdn.Autorest/help/Az.Cdn.md
rename to src/Cdn/Cdn.Autorest/docs/Az.Cdn.md
index 4008964da23c..0b66bff27f5e 100644
--- a/src/Cdn/Cdn.Autorest/help/Az.Cdn.md
+++ b/src/Cdn/Cdn.Autorest/docs/Az.Cdn.md
@@ -1,6 +1,6 @@
---
Module Name: Az.Cdn
-Module Guid: f9fae843-9c26-4513-9442-17f4379802bf
+Module Guid: ead40551-b7cf-4116-bc7c-ef684cadec24
Download Help Link: https://learn.microsoft.com/powershell/module/az.cdn
Help Version: 1.0.0.0
Locale: en-US
@@ -11,12 +11,18 @@ Locale: en-US
Microsoft Azure PowerShell: Cdn cmdlets
## Az.Cdn Cmdlets
+### [Add-AzCdnEdgeActionAttachment](Add-AzCdnEdgeActionAttachment.md)
+A long-running operation for adding an EdgeAction attachment.
+
### [Clear-AzCdnEndpointContent](Clear-AzCdnEndpointContent.md)
Removes a content from CDN.
### [Clear-AzFrontDoorCdnEndpointContent](Clear-AzFrontDoorCdnEndpointContent.md)
Removes a content from AzureFrontDoor.
+### [Deploy-AzCdnEdgeActionVersionCode](Deploy-AzCdnEdgeActionVersionCode.md)
+A long-running operation to deploy versioncode to EdgeActionVersion resource.
+
### [Disable-AzCdnCustomDomainCustomHttps](Disable-AzCdnCustomDomainCustomHttps.md)
Disable https delivery of the custom domain.
@@ -29,6 +35,18 @@ Commit the migrated Azure Front Door(Standard/Premium) profile..
### [Get-AzCdnCustomDomain](Get-AzCdnCustomDomain.md)
Gets an existing custom domain within an endpoint.
+### [Get-AzCdnEdgeAction](Get-AzCdnEdgeAction.md)
+Get EdgeAction resource
+
+### [Get-AzCdnEdgeActionExecutionFilter](Get-AzCdnEdgeActionExecutionFilter.md)
+Get EdgeActionExecutionFilter resource
+
+### [Get-AzCdnEdgeActionVersion](Get-AzCdnEdgeActionVersion.md)
+Get EdgeActionVersion resource
+
+### [Get-AzCdnEdgeActionVersionCode](Get-AzCdnEdgeActionVersionCode.md)
+A long-running operation to get versioncode deployed to EdgeActionVersion resource.
+
### [Get-AzCdnEdgeNode](Get-AzCdnEdgeNode.md)
Edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users.
@@ -38,6 +56,9 @@ Gets an existing CDN endpoint with the specified endpoint name under the specifi
### [Get-AzCdnEndpointResourceUsage](Get-AzCdnEndpointResourceUsage.md)
Checks the quota and usage of geo filters and custom domains under the given endpoint.
+### [Get-AzCdnManagedRuleSet](Get-AzCdnManagedRuleSet.md)
+Lists all available managed rule sets.
+
### [Get-AzCdnOrigin](Get-AzCdnOrigin.md)
Gets an existing origin within an endpoint.
@@ -52,7 +73,7 @@ Checks the quota and actual usage of endpoints under the given Azure Front Door
### [Get-AzCdnProfileSupportedOptimizationType](Get-AzCdnProfileSupportedOptimizationType.md)
Gets the supported optimization types for the current profile.
-A user can create an endpoint with an optimization type from the listed values.
+A user can list an endpoint with an optimization type from the listed values.
### [Get-AzCdnSubscriptionResourceUsage](Get-AzCdnSubscriptionResourceUsage.md)
Check the quota and actual usage of the CDN profiles under the given subscription.
@@ -73,7 +94,7 @@ Gets an existing origin within an origin group.
Gets an existing origin group within a profile.
### [Get-AzFrontDoorCdnOriginGroupResourceUsage](Get-AzFrontDoorCdnOriginGroupResourceUsage.md)
-Checks the quota and actual usage of endpoints under the given Azure Front Door profile..
+Checks the quota and actual usage of endpoints under the given Azure Front Door profile.
### [Get-AzFrontDoorCdnProfile](Get-AzFrontDoorCdnProfile.md)
Gets an Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified profile name under the specified subscription and resource group.
@@ -91,7 +112,7 @@ Gets an existing delivery rule within a rule set.
Gets an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, resource group and profile.
### [Get-AzFrontDoorCdnRuleSetResourceUsage](Get-AzFrontDoorCdnRuleSetResourceUsage.md)
-Checks the quota and actual usage of endpoints under the given Azure Front Door profile..
+Checks the quota and actual usage of endpoints under the given Azure Front Door profile.
### [Get-AzFrontDoorCdnSecret](Get-AzFrontDoorCdnSecret.md)
Gets an existing Secret within a profile.
@@ -114,7 +135,7 @@ Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile.
This step prepares the profile for migration and will be followed by Commit to finalize the migration.
### [New-AzCdnCustomDomain](New-AzCdnCustomDomain.md)
-Creates a new custom domain within an endpoint.
+Create a new custom domain within an endpoint.
### [New-AzCdnDeliveryRuleCacheExpirationActionObject](New-AzCdnDeliveryRuleCacheExpirationActionObject.md)
Create an in-memory object for DeliveryRuleCacheExpirationAction.
@@ -173,8 +194,17 @@ Create an in-memory object for DeliveryRuleUrlFileNameCondition.
### [New-AzCdnDeliveryRuleUrlPathConditionObject](New-AzCdnDeliveryRuleUrlPathConditionObject.md)
Create an in-memory object for DeliveryRuleUrlPathCondition.
+### [New-AzCdnEdgeAction](New-AzCdnEdgeAction.md)
+Create EdgeAction resource
+
+### [New-AzCdnEdgeActionExecutionFilter](New-AzCdnEdgeActionExecutionFilter.md)
+Create EdgeActionExecutionFilter resource
+
+### [New-AzCdnEdgeActionVersion](New-AzCdnEdgeActionVersion.md)
+Create EdgeActionVersion version
+
### [New-AzCdnEndpoint](New-AzCdnEndpoint.md)
-Creates a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
+Create a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
### [New-AzCdnHealthProbeParametersObject](New-AzCdnHealthProbeParametersObject.md)
Create an in-memory object for HealthProbeParameters.
@@ -189,10 +219,10 @@ Create an in-memory object for CdnManagedHttpsParameters.
Create an in-memory object for MigrationEndpointMapping.
### [New-AzCdnOrigin](New-AzCdnOrigin.md)
-Creates a new origin within the specified endpoint.
+Create a new origin within the specified endpoint.
### [New-AzCdnOriginGroup](New-AzCdnOriginGroup.md)
-Creates a new origin group within the specified endpoint.
+Create a new origin group within the specified endpoint.
### [New-AzCdnOriginGroupOverrideActionObject](New-AzCdnOriginGroupOverrideActionObject.md)
Create an in-memory object for OriginGroupOverrideAction.
@@ -222,13 +252,13 @@ Create an in-memory object for UrlSigningAction.
Create an in-memory object for UserManagedHttpsParameters.
### [New-AzFrontDoorCdnCustomDomain](New-AzFrontDoorCdnCustomDomain.md)
-Creates a new domain within the specified profile.
+Create a new domain within the specified profile.
### [New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject](New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.md)
-Create an in-memory object for AFDDomainHttpsParameters.
+Create an in-memory object for AfdDomainHttpsParameters.
### [New-AzFrontDoorCdnEndpoint](New-AzFrontDoorCdnEndpoint.md)
-Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
+Create a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
### [New-AzFrontDoorCdnMigrationParametersObject](New-AzFrontDoorCdnMigrationParametersObject.md)
Create an in-memory object for MigrationParameters.
@@ -237,10 +267,10 @@ Create an in-memory object for MigrationParameters.
Create an in-memory object for MigrationWebApplicationFirewallMapping.
### [New-AzFrontDoorCdnOrigin](New-AzFrontDoorCdnOrigin.md)
-Creates a new origin within the specified origin group.
+Create a new origin within the specified origin group.
### [New-AzFrontDoorCdnOriginGroup](New-AzFrontDoorCdnOriginGroup.md)
-Creates a new origin group within the specified profile.
+Create a new origin group within the specified profile.
### [New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject](New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.md)
Create an in-memory object for HealthProbeParameters.
@@ -270,10 +300,10 @@ Create an in-memory object for AfdPurgeParameters.
Create an in-memory object for ResourceReference.
### [New-AzFrontDoorCdnRoute](New-AzFrontDoorCdnRoute.md)
-Creates a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
+Create a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
### [New-AzFrontDoorCdnRule](New-AzFrontDoorCdnRule.md)
-Creates a new delivery rule within the specified rule set.
+Create a new delivery rule within the specified rule set.
### [New-AzFrontDoorCdnRuleClientPortConditionObject](New-AzFrontDoorCdnRuleClientPortConditionObject.md)
Create an in-memory object for DeliveryRuleClientPortCondition.
@@ -327,7 +357,7 @@ Create an in-memory object for DeliveryRuleRouteConfigurationOverrideAction.
Create an in-memory object for DeliveryRuleServerPortCondition.
### [New-AzFrontDoorCdnRuleSet](New-AzFrontDoorCdnRuleSet.md)
-Creates a new rule set within the specified profile.
+Create or create a batch rule set within the specified profile along with the rules associate to it.
### [New-AzFrontDoorCdnRuleSocketAddrConditionObject](New-AzFrontDoorCdnRuleSocketAddrConditionObject.md)
Create an in-memory object for DeliveryRuleSocketAddrCondition.
@@ -336,7 +366,7 @@ Create an in-memory object for DeliveryRuleSocketAddrCondition.
Create an in-memory object for DeliveryRuleSslProtocolCondition.
### [New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject](New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.md)
-Create an in-memory object for DeliveryRuleUrlFileExtensionCondition.
+Create an in-memory object for DeliveryRuleRequestUriCondition.
### [New-AzFrontDoorCdnRuleUrlFileNameConditionObject](New-AzFrontDoorCdnRuleUrlFileNameConditionObject.md)
Create an in-memory object for DeliveryRuleUrlFileNameCondition.
@@ -354,7 +384,7 @@ Create an in-memory object for UrlRewriteAction.
Create an in-memory object for UrlSigningAction.
### [New-AzFrontDoorCdnSecret](New-AzFrontDoorCdnSecret.md)
-Creates a new Secret within the specified profile.
+Create a new Secret within the specified profile.
### [New-AzFrontDoorCdnSecretCustomerCertificateParametersObject](New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.md)
Create an in-memory object for CustomerCertificateParameters.
@@ -369,7 +399,7 @@ Create an in-memory object for ManagedCertificateParameters.
Create an in-memory object for UrlSigningKeyParameters.
### [New-AzFrontDoorCdnSecurityPolicy](New-AzFrontDoorCdnSecurityPolicy.md)
-Creates a new security policy within the specified profile.
+Create a new security policy within the specified profile.
### [New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject](New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.md)
Create an in-memory object for SecurityPolicyWebApplicationFirewallAssociation.
@@ -380,6 +410,18 @@ Create an in-memory object for SecurityPolicyWebApplicationFirewallParameters.
### [Remove-AzCdnCustomDomain](Remove-AzCdnCustomDomain.md)
Deletes an existing custom domain within an endpoint.
+### [Remove-AzCdnEdgeAction](Remove-AzCdnEdgeAction.md)
+Delete EdgeAction resource
+
+### [Remove-AzCdnEdgeActionAttachment](Remove-AzCdnEdgeActionAttachment.md)
+A long-running operation for deleting an EdgeAction attachment that returns no content.
+
+### [Remove-AzCdnEdgeActionExecutionFilter](Remove-AzCdnEdgeActionExecutionFilter.md)
+Delete EdgeActionExecutionFilter resource
+
+### [Remove-AzCdnEdgeActionVersion](Remove-AzCdnEdgeActionVersion.md)
+Delete EdgeActionVersion resource
+
### [Remove-AzCdnEndpoint](Remove-AzCdnEndpoint.md)
Deletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
@@ -469,40 +511,49 @@ Validates the custom domain mapping to ensure it maps to the correct Azure Front
### [Test-AzFrontDoorCdnProfileMigration](Test-AzFrontDoorCdnProfileMigration.md)
Check if a classic AFD instance can be migrated to Azure Front Door(Standard/Premium) profile.
+### [Update-AzCdnEdgeAction](Update-AzCdnEdgeAction.md)
+Update EdgeAction resource
+
+### [Update-AzCdnEdgeActionExecutionFilter](Update-AzCdnEdgeActionExecutionFilter.md)
+Update EdgeActionExecutionFilter resource
+
+### [Update-AzCdnEdgeActionVersion](Update-AzCdnEdgeActionVersion.md)
+Update EdgeActionVersion resource
+
### [Update-AzCdnEndpoint](Update-AzCdnEndpoint.md)
-Updates an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
+Update an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Only tags can be updated after creating an endpoint.
-To update origins, use the Update Origin operation.
-To update origin groups, use the Update Origin group operation.
-To update custom domains, use the Update Custom Domain operation.
+To update origins, use the update Origin operation.
+To update origin groups, use the update Origin group operation.
+To update custom domains, use the update Custom Domain operation.
### [Update-AzCdnOrigin](Update-AzCdnOrigin.md)
-Updates an existing origin within an endpoint.
+Update an existing origin within an endpoint.
### [Update-AzCdnOriginGroup](Update-AzCdnOriginGroup.md)
-Updates an existing origin group within an endpoint.
+Update an existing origin group within an endpoint.
### [Update-AzCdnProfile](Update-AzCdnProfile.md)
Updates an existing CDN profile with the specified profile name under the specified subscription and resource group.
### [Update-AzFrontDoorCdnCustomDomain](Update-AzFrontDoorCdnCustomDomain.md)
-Updates an existing domain within a profile.
+Update an existing domain within a profile.
### [Update-AzFrontDoorCdnCustomDomainValidationToken](Update-AzFrontDoorCdnCustomDomainValidationToken.md)
-Updates the domain validation token.
+Refresh the domain validation token.
### [Update-AzFrontDoorCdnEndpoint](Update-AzFrontDoorCdnEndpoint.md)
-Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
+Update an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Only tags can be updated after creating an endpoint.
-To update origins, use the Update Origin operation.
-To update origin groups, use the Update Origin group operation.
-To update domains, use the Update Custom Domain operation.
+To update origins, use the update Origin operation.
+To update origin groups, use the update Origin group operation.
+To update domains, use the update Custom Domain operation.
### [Update-AzFrontDoorCdnOrigin](Update-AzFrontDoorCdnOrigin.md)
-Updates an existing origin within an origin group.
+Update an existing origin within an origin group.
### [Update-AzFrontDoorCdnOriginGroup](Update-AzFrontDoorCdnOriginGroup.md)
-Updates an existing origin group within a profile.
+Update an existing origin group within a profile.
### [Update-AzFrontDoorCdnProfile](Update-AzFrontDoorCdnProfile.md)
Updates an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified profile name under the specified subscription and resource group.
@@ -511,11 +562,17 @@ Updates an existing Azure Front Door Standard or Azure Front Door Premium or CDN
Upgrade a profile from Standard_AzureFrontDoor to Premium_AzureFrontDoor.
### [Update-AzFrontDoorCdnRoute](Update-AzFrontDoorCdnRoute.md)
-Updates an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
+Update an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
### [Update-AzFrontDoorCdnRule](Update-AzFrontDoorCdnRule.md)
-Updates an existing delivery rule within a rule set.
+Update an existing delivery rule within a rule set.
+
+### [Update-AzFrontDoorCdnRuleSet](Update-AzFrontDoorCdnRuleSet.md)
+Update or update a batch rule set within the specified profile along with the rules associate to it.
+
+### [Update-AzFrontDoorCdnSecret](Update-AzFrontDoorCdnSecret.md)
+Update a new Secret within the specified profile.
### [Update-AzFrontDoorCdnSecurityPolicy](Update-AzFrontDoorCdnSecurityPolicy.md)
-Updates an existing security policy within a profile.
+Patch an existing security policy within a profile.
diff --git a/src/Cdn/Cdn.Autorest/docs/Clear-AzCdnEndpointContent.md b/src/Cdn/Cdn.Autorest/docs/Clear-AzCdnEndpointContent.md
new file mode 100644
index 000000000000..915a74c5a934
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/docs/Clear-AzCdnEndpointContent.md
@@ -0,0 +1,352 @@
+---
+external help file:
+Module Name: Az.Cdn
+online version: https://learn.microsoft.com/powershell/module/az.cdn/clear-azcdnendpointcontent
+schema: 2.0.0
+---
+
+# Clear-AzCdnEndpointContent
+
+## SYNOPSIS
+Removes a content from CDN.
+
+## SYNTAX
+
+### PurgeExpanded (Default)
+```
+Clear-AzCdnEndpointContent -EndpointName -ProfileName -ResourceGroupName
+ -ContentPath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait]
+ [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### Purge
+```
+Clear-AzCdnEndpointContent -EndpointName -ProfileName -ResourceGroupName
+ -ContentFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob]
+ [-NoWait] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaIdentity
+```
+Clear-AzCdnEndpointContent -InputObject -ContentFilePath
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaIdentityExpanded
+```
+Clear-AzCdnEndpointContent -InputObject -ContentPath [-DefaultProfile ]
+ [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaIdentityProfile
+```
+Clear-AzCdnEndpointContent -EndpointName -ProfileInputObject
+ -ContentFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm]
+ [-WhatIf] []
+```
+
+### PurgeViaIdentityProfileExpanded
+```
+Clear-AzCdnEndpointContent -EndpointName -ProfileInputObject -ContentPath
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaJsonFilePath
+```
+Clear-AzCdnEndpointContent -EndpointName -ProfileName -ResourceGroupName
+ -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru]
+ [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaJsonString
+```
+Clear-AzCdnEndpointContent -EndpointName -ProfileName -ResourceGroupName
+ -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru]
+ [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Removes a content from CDN.
+
+## EXAMPLES
+
+### Example 1: Removes a content from CDN endpoint using Parameter "ContentPath"
+```powershell
+Clear-AzCdnEndpointContent -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001 -ContentPath @("/movies/*","/pictures/pic1.jpg")
+```
+
+Removes a content from CDN endpoint using Parameter "ContentPath"
+
+### Example 2: Removes a content from CDN endpoint using Parameter "ContentFilePath"
+```powershell
+$contentPath = @("/movies/amazing.mp4","/pictures/pic1.jpg")
+$contentFilePath = New-AzCdnPurgeParametersObject -ContentPath $contentPath
+Clear-AzCdnEndpointContent -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001 -ContentFilePath $contentFilePath
+```
+
+Removes a content from CDN endpoint using Parameter "ContentFilePath"
+
+## PARAMETERS
+
+### -AsJob
+Run the command as a job
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ContentFilePath
+Parameters required for content purge.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IPurgeParameters
+Parameter Sets: Purge, PurgeViaIdentity, PurgeViaIdentityProfile
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ContentPath
+The path to the content to be purged.
+Can describe a file path or a wild card directory.
+
+```yaml
+Type: System.String[]
+Parameter Sets: PurgeExpanded, PurgeViaIdentityExpanded, PurgeViaIdentityProfileExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The DefaultProfile parameter is not functional.
+Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -EndpointName
+Name of the endpoint under the profile which is unique globally.
+
+```yaml
+Type: System.String
+Parameter Sets: Purge, PurgeExpanded, PurgeViaIdentityProfile, PurgeViaIdentityProfileExpanded, PurgeViaJsonFilePath, PurgeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
+Parameter Sets: PurgeViaIdentity, PurgeViaIdentityExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -JsonFilePath
+Path of Json file supplied to the Purge operation
+
+```yaml
+Type: System.String
+Parameter Sets: PurgeViaJsonFilePath
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -JsonString
+Json string supplied to the Purge operation
+
+```yaml
+Type: System.String
+Parameter Sets: PurgeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -NoWait
+Run the command asynchronously
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -PassThru
+Returns true when the command succeeds
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ProfileInputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
+Parameter Sets: PurgeViaIdentityProfile, PurgeViaIdentityProfileExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ProfileName
+Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group.
+
+```yaml
+Type: System.String
+Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+The value must be an UUID.
+
+```yaml
+Type: System.String
+Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
+
+### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IPurgeParameters
+
+## OUTPUTS
+
+### System.Boolean
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Cdn/Cdn.Autorest/docs/Clear-AzFrontDoorCdnEndpointContent.md b/src/Cdn/Cdn.Autorest/docs/Clear-AzFrontDoorCdnEndpointContent.md
new file mode 100644
index 000000000000..b5eabebfe1e0
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/docs/Clear-AzFrontDoorCdnEndpointContent.md
@@ -0,0 +1,368 @@
+---
+external help file:
+Module Name: Az.Cdn
+online version: https://learn.microsoft.com/powershell/module/az.cdn/clear-azfrontdoorcdnendpointcontent
+schema: 2.0.0
+---
+
+# Clear-AzFrontDoorCdnEndpointContent
+
+## SYNOPSIS
+Removes a content from AzureFrontDoor.
+
+## SYNTAX
+
+### PurgeExpanded (Default)
+```
+Clear-AzFrontDoorCdnEndpointContent -EndpointName -ProfileName -ResourceGroupName
+ -ContentPath [-SubscriptionId ] [-Domain ] [-DefaultProfile ] [-AsJob]
+ [-NoWait] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### Purge
+```
+Clear-AzFrontDoorCdnEndpointContent -EndpointName -ProfileName -ResourceGroupName
+ -Content [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait]
+ [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaIdentity
+```
+Clear-AzFrontDoorCdnEndpointContent -InputObject -Content
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaIdentityExpanded
+```
+Clear-AzFrontDoorCdnEndpointContent -InputObject -ContentPath [-Domain ]
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaIdentityProfile
+```
+Clear-AzFrontDoorCdnEndpointContent -EndpointName -ProfileInputObject
+ -Content [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm]
+ [-WhatIf] []
+```
+
+### PurgeViaIdentityProfileExpanded
+```
+Clear-AzFrontDoorCdnEndpointContent -EndpointName -ProfileInputObject
+ -ContentPath [-Domain ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru]
+ [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaJsonFilePath
+```
+Clear-AzFrontDoorCdnEndpointContent -EndpointName -ProfileName -ResourceGroupName
+ -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru]
+ [-Confirm] [-WhatIf] []
+```
+
+### PurgeViaJsonString
+```
+Clear-AzFrontDoorCdnEndpointContent -EndpointName -ProfileName -ResourceGroupName
+ -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru]
+ [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Removes a content from AzureFrontDoor.
+
+## EXAMPLES
+
+### Example 1: Clear the content of an AzureFrontDoor endpoint using Parameter "ContentPath"
+```powershell
+Clear-AzFrontDoorCdnEndpointContent -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001 -ContentPath /a
+```
+
+Clear the content of an AzureFrontDoor endpoint using Parameter "ContentPath"
+
+### Example 2: Clear the content of an AzureFrontDoor endpoint using Parameter "Content"
+```powershell
+$contentPath = "/a"
+$content = New-AzFrontDoorCdnPurgeParametersObject -ContentPath $contentPath
+Clear-AzFrontDoorCdnEndpointContent -ResourceGroupName testps-rg-afdx -ProfileName cdn001 -EndpointName endpointTest001 -Content $content
+```
+
+Clear the content of an AzureFrontDoor endpoint using Parameter "Content"
+
+## PARAMETERS
+
+### -AsJob
+Run the command as a job
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Content
+Parameters required for content purge.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IAfdPurgeParameters
+Parameter Sets: Purge, PurgeViaIdentity, PurgeViaIdentityProfile
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ContentPath
+The path to the content to be purged.
+Can describe a file path or a wild card directory.
+
+```yaml
+Type: System.String[]
+Parameter Sets: PurgeExpanded, PurgeViaIdentityExpanded, PurgeViaIdentityProfileExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The DefaultProfile parameter is not functional.
+Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+
+```yaml
+Type: System.Management.Automation.PSObject
+Parameter Sets: (All)
+Aliases: AzureRMContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Domain
+List of domains.
+
+```yaml
+Type: System.String[]
+Parameter Sets: PurgeExpanded, PurgeViaIdentityExpanded, PurgeViaIdentityProfileExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -EndpointName
+Name of the endpoint under the profile which is unique globally.
+
+```yaml
+Type: System.String
+Parameter Sets: Purge, PurgeExpanded, PurgeViaIdentityProfile, PurgeViaIdentityProfileExpanded, PurgeViaJsonFilePath, PurgeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
+Parameter Sets: PurgeViaIdentity, PurgeViaIdentityExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -JsonFilePath
+Path of Json file supplied to the Purge operation
+
+```yaml
+Type: System.String
+Parameter Sets: PurgeViaJsonFilePath
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -JsonString
+Json string supplied to the Purge operation
+
+```yaml
+Type: System.String
+Parameter Sets: PurgeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -NoWait
+Run the command asynchronously
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -PassThru
+Returns true when the command succeeds
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ProfileInputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
+Parameter Sets: PurgeViaIdentityProfile, PurgeViaIdentityProfileExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ProfileName
+Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group.
+
+```yaml
+Type: System.String
+Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+The value must be an UUID.
+
+```yaml
+Type: System.String
+Parameter Sets: Purge, PurgeExpanded, PurgeViaJsonFilePath, PurgeViaJsonString
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IAfdPurgeParameters
+
+### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
+
+## OUTPUTS
+
+### System.Boolean
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Cdn/Cdn.Autorest/docs/Deploy-AzCdnEdgeActionVersionCode.md b/src/Cdn/Cdn.Autorest/docs/Deploy-AzCdnEdgeActionVersionCode.md
new file mode 100644
index 000000000000..a95b4f396afc
--- /dev/null
+++ b/src/Cdn/Cdn.Autorest/docs/Deploy-AzCdnEdgeActionVersionCode.md
@@ -0,0 +1,341 @@
+---
+external help file:
+Module Name: Az.Cdn
+online version: https://learn.microsoft.com/powershell/module/az.cdn/deploy-azcdnedgeactionversioncode
+schema: 2.0.0
+---
+
+# Deploy-AzCdnEdgeActionVersionCode
+
+## SYNOPSIS
+A long-running operation to deploy versioncode to EdgeActionVersion resource.
+
+## SYNTAX
+
+### DeployExpanded (Default)
+```
+Deploy-AzCdnEdgeActionVersionCode -EdgeActionName -ResourceGroupName -Version
+ -Content -Name [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait]
+ [-Confirm] [-WhatIf] []
+```
+
+### Deploy
+```
+Deploy-AzCdnEdgeActionVersionCode -EdgeActionName -ResourceGroupName -Version
+ -Body [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm]
+ [-WhatIf] []
+```
+
+### DeployViaIdentity
+```
+Deploy-AzCdnEdgeActionVersionCode -InputObject -Body
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] []
+```
+
+### DeployViaIdentityEdgeAction
+```
+Deploy-AzCdnEdgeActionVersionCode -EdgeActionInputObject -Version -Body
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] []
+```
+
+### DeployViaIdentityEdgeActionExpanded
+```
+Deploy-AzCdnEdgeActionVersionCode -EdgeActionInputObject -Version -Content