File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,34 @@ ZoneRedundant : true
317
317
318
318
This command creates a new instance with external administrator properties and azure active directory only authentication enabled.
319
319
320
+ ### Example 9: Create a new instance with TDE CMK
321
+ ``` powershell
322
+ New-AzSqlInstance -Name managedInstance1 -ResourceGroupName ResourceGroup01 -Location westcentralus -AdministratorCredential (Get-Credential) -SubnetId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name" -LicenseType LicenseIncluded -StorageSizeInGB 1024 -VCore 16 -SkuName GP_Gen4 -DnsZonePartner "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/managedInstances/partnerServerForDnsZone" -AssignIdentity -IdentityType "UserAssigned" -PrimaryUserAssignedIdentityId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity01" -UserAssignedIdentityId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity01" -KeyId "https://contoso.vault.azure.net/keys/contosokey/01234567890123456789012345678901"
323
+ ```
324
+
325
+ ``` output
326
+ Location : westcentralus
327
+ Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/managedInstances/managedInstance1
328
+ ResourceGroupName : resourcegroup01
329
+ ManagedInstanceName : managedInstance1
330
+ Tags :
331
+ Identity : Microsoft.Azure.Management.Sql.Models.ResourceIdentity
332
+ Sku : Microsoft.Azure.Management.Internal.Resources.Models.Sku
333
+ FullyQualifiedDomainName : managedInstance1.wcusxxxxxxxxxxxxx.database.windows.net
334
+ AdministratorLogin : adminLogin1
335
+ AdministratorPassword :
336
+ SubnetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name
337
+ LicenseType : LicenseIncluded
338
+ VCores : 16
339
+ StorageSizeInGB : 1024
340
+ DnsZone : ad35cna0mw
341
+ InstancePoolName :
342
+ KeyId : https://contoso.vault.azure.net/keys/contosokey/01234567890123456789012345678901
343
+ PrimaryUserAssignedIdentityId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity01
344
+ ```
345
+
346
+ This command creates a new managed instance with TDE CMK enabled.
347
+
320
348
## PARAMETERS
321
349
322
350
### -AdministratorCredential
Original file line number Diff line number Diff line change @@ -79,6 +79,26 @@ AzureADOnlyAuthentication : True
79
79
80
80
This command creates a version 12 Azure SQL Database server with external administrator properties and azure active directory only authentication enabled.
81
81
82
+ ### Example 3: Create a new Azure SQL Database server with TDE CMK
83
+ ``` powershell
84
+ New-AzSqlServer -ResourceGroupName "ResourceGroup01" -Location "East US" -ServerName "server01" -ServerVersion "12.0" -SqlAdministratorCredentials (Get-Credential) -AssignIdentity -IdentityType "UserAssigned" -PrimaryUserAssignedIdentityId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity01" -UserAssignedIdentityId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity01" -KeyId "https://contoso.vault.azure.net/keys/contosokey/01234567890123456789012345678901"
85
+ ```
86
+
87
+ ``` output
88
+ ResourceGroupName : resourcegroup01
89
+ ServerName : server01
90
+ Location : East US
91
+ SqlAdministratorLogin : adminLogin
92
+ SqlAdministratorPassword :
93
+ ServerVersion : 12.0
94
+ Tags :
95
+ Identity : Microsoft.Azure.Management.Sql.Models.ResourceIdentity
96
+ KeyId : https://contoso.vault.azure.net/keys/contosokey/01234567890123456789012345678901
97
+ PrimaryUserAssignedIdentityId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity01
98
+ ```
99
+
100
+ This command creates a version 12 Azure SQL Database server with TDE CMK enabled.
101
+
82
102
## PARAMETERS
83
103
84
104
### -AsJob
You can’t perform that action at this time.
0 commit comments