可以使用以下几种模式的来的切换状态
1 PS C:\WINDOWS\system32> Switch-AzureMode 2 3 cmdlet Switch-AzureMode at command pipeline position 1 4 Supply values for the following parameters: 5 (Type !? for Help.) 6 Name: !? 7 Name of the mode to switch to. Valid values are AzureServiceManagement and AzureResourceManager 8 Name: AzureResourceManager 9 PS C:\WINDOWS\system32> Switch-AzureMode AzureServiceManagement 10 PS C:\WINDOWS\system32> Switch-AzureMode AzureResourceManager 11 PS C:\WINDOWS\system32>
可以使用以下命令常看的处于何种状态
Name: PS C:\WINDOWS\system32> get-command *-AzureMode CommandType Name ModuleName ----------- ---- ---------- Cmdlet Switch-AzureMode AzureResourceManager
PS C:\WINDOWS\system32> Switch-AzureMode AzureServiceManagement PS C:\WINDOWS\system32> get-command *-AzureMode CommandType Name ModuleName ----------- ---- ---------- Cmdlet Switch-AzureMode Azure PS C:\WINDOWS\system32>
显示在ResourceManager下的Powershell命令列表
1 PS C:\WINDOWS\system32> Get-Command -Module AzureResourceManager | Get-Help | Format-Table Name, Synopsis 2 3 Name Synopsis 4 ---- -------- 5 Add-AzureAccount Adds the Azure account to Windows PowerShell 6 Add-AzureEnvironment Creates an Azure environment 7 Clear-AzureProfile Clears an Azure profile 8 Disable-AzureSqlDatabaseDirectAccess Disables the option to directly access to an Azure Sql d... 9 Disable-AzureSqlDatabaseServerDirectAccess Disables direct access to all Azure Sql databases that u... 10 Enable-AzureSqlDatabaseDirectAccess Enables the option to directly access to an Azure Sql da... 11 Enable-AzureSqlDatabaseServerDirectAccess Enables direct access to all Azure Sql databases that us... 12 Get-AzureAccount Gets Azure accounts that are available to Azure PowerShell. 13 Get-AzureADGroup Filters active directory groups. 14 Get-AzureADGroupMember Get a group members. 15 Get-AzureADServicePrincipal Filters active directory service principals. 16 Get-AzureADUser Filters active directory users. 17 Get-AzureBatchAccount 18 Get-AzureBatchAccountKeys 19 Get-AzureDataFactory Gets information about Data Factory. 20 Get-AzureDataFactoryGateway Gets information about logical gateways in Data Factory. 21 Get-AzureDataFactoryHub Gets information about hubs in Data Factory. 22 Get-AzureDataFactoryLinkedService Gets information about linked services in Data Factory. 23 Get-AzureDataFactoryPipeline Gets information about pipelines in Data Factory. 24 Get-AzureDataFactoryRun Gets runs for a data slice of a table in Data Factory. 25 Get-AzureDataFactorySlice Gets data slices for a table in Data Factory. 26 Get-AzureDataFactoryTable Gets information about tables in Data Factory. 27 Get-AzureEnvironment Gets Azure environments 28 Get-AzureLocation Gets the resource types and the Azure data center locati... 29 Get-AzurePublishSettingsFile Downloads the publish settings file for an Azure subscri... 30 Get-AzureRedisCache Gets details about a single cache or all caches in the s... 31 Get-AzureRedisCacheKey Gets the accesskeys for the specified redis cache. 32 Get-AzureResource Gets Azure resources 33 Get-AzureResourceGroup Gets Azure resource groups 34 Get-AzureResourceGroupDeployment Gets the deployments in a resource group. 35 Get-AzureResourceGroupGalleryTemplate Gets resource group templates in the gallery 36 Get-AzureResourceGroupLog Gets the deployment log for a resource group 37 Get-AzureRoleAssignment Filters role assignments. 38 Get-AzureRoleDefinition Filters role definitions. 39 Get-AzureSqlDatabaseAuditingPolicy Gets an Azure Sql database's auditing policy. 40 Get-AzureSqlDatabaseServerAuditingPolicy Gets an Azure Sql server's auditing policy. 41 Get-AzureSubscription Gets Azure subscriptions in Azure account. 42 Get-AzureTag Gets predefined Azure tags 43 Import-AzurePublishSettingsFile Imports a publish settings file that lets you manage you... 44 New-AzureBatchAccount 45 New-AzureBatchAccountKey 46 New-AzureDataFactory Creates a data factory. 47 New-AzureDataFactoryEncryptValue Encrypts sensitive data. 48 New-AzureDataFactoryGateway Creates a gateway for Data Factory. 49 New-AzureDataFactoryGatewayKey Creates a gateway key for Data Factory. 50 New-AzureDataFactoryHub Creates a hub for Data Factory. 51 New-AzureDataFactoryLinkedService Links a data store or a cloud service to Data Factory. 52 New-AzureDataFactoryPipeline Creates a pipeline in Data Factory. 53 New-AzureDataFactoryTable Creates a table in Data Factory. 54 New-AzureRedisCache Creates a new redis cache. 55 New-AzureRedisCacheKey Regenerates the access key of a redis cache. 56 New-AzureResource Creates a new resource in a resource group 57 New-AzureResourceGroup Creates an Azure resource group and its resources 58 New-AzureResourceGroupDeployment Add an Azure deployment to a resource group. 59 New-AzureRoleAssignment Create a role assignment to some principals at a given s... 60 New-AzureTag Creates a predefined Azure tag or adds values to an exis... 61 Remove-AzureAccount Deletes an Azure account from Windows PowerShell. 62 Remove-AzureBatchAccount 63 Remove-AzureDataFactory Removes a data factory. 64 Remove-AzureDataFactoryGateway Removes a gateway from Data Factory. 65 Remove-AzureDataFactoryHub Removes a hub from Data Factory. 66 Remove-AzureDataFactoryLinkedService Removes a linked service from Data Factory. 67 Remove-AzureDataFactoryPipeline Removes a pipeline from Data Factory. 68 Remove-AzureDataFactoryTable Removes a table from Data Factory. 69 Remove-AzureEnvironment Deletes an Azure environment from Windows PowerShell 70 Remove-AzureRedisCache Remove redis cache if exists. 71 Remove-AzureResource Deletes a resource 72 Remove-AzureResourceGroup Deletes a resource group. 73 Remove-AzureRoleAssignment Removes a role assignment. 74 Remove-AzureSqlDatabaseAuditing Disables an Azure Sql database's auditing. 75 Remove-AzureSqlDatabaseServerAuditing Disables auditing of all the databases that rely on the ... 76 Remove-AzureSubscription Deletes an Azure subscription from Windows PowerShell. 77 Remove-AzureTag Deletes predefined Azure tags or values 78 Resume-AzureDataFactoryPipeline Resumes a suspended pipeline in Data Factory. 79 Save-AzureDataFactoryLog Downloads log files from HDInsight processing. 80 Save-AzureResourceGroupGalleryTemplate Saves a gallery template to a JSON file 81 Select-AzureSubscription Changes the current and default Azure subscriptions 82 Set-AzureBatchAccount 83 Set-AzureDataFactoryGateway Sets the description for a gateway in Data Factory. 84 Set-AzureDataFactoryPipelineActivePeriod Configures the active period for data slices. 85 Set-AzureDataFactorySliceStatus Sets the status of slices for a table in Data Factory. 86 Set-AzureEnvironment Changes the properties of an Azure environment 87 Set-AzureRedisCache Set redis cache updatable parameters. 88 Set-AzureResource Changes the properties of an Azure resource. 89 Set-AzureResourceGroup Changes the properties of a resource group 90 Set-AzureSqlDatabaseAuditingPolicy Sets an Azure Sql database's auditing policy. 91 Set-AzureSqlDatabaseServerAuditingPolicy Sets an Azure Sql database server's auditing policy. 92 Set-AzureSubscription Creates or changes an Azure subscription 93 Stop-AzureResourceGroupDeployment Cancels a resource group deployment 94 Suspend-AzureDataFactoryPipeline Suspends a pipeline in Data Factory. 95 Switch-AzureMode Switches between the Azure and Azure Resource Manager mo... 96 Test-AzureResourceGroupTemplate Detects errors in a resource group template or template ... 97 Use-AzureSqlDatabaseServerAuditingPolicy Marks an Azure Sql database as using its server's auditi...