zoukankan      html  css  js  c++  java
  • [Azure][PowerShell][ASM][03]Cloud Service

    $mySubscriptionName=“订阅名称"

    Select-AzureSubscription -SubscriptionName $mySubscriptionName 

     

    $myLocation = "China North" 

    $myServiceName = ""   

    New-AzureService -Location $myLocation -ServiceName $myServiceName 

     

    $myLocation = "China East" 

    $myServiceName = ""   

    New-AzureService -Location $myLocation -ServiceName $myServiceName  

     

    # Get-AzureService | Format-List ServiceName, Label, Location 

    # Remove-AzureService -ServiceName $myServiceName -Force -Verbose 

     

     

    .  浏览云服务

    Get-AzureService | Select-Object -Property ServiceName, Location,`

    @{Name='ProdIP';Expression={(Get-AzureDeployment -Slot Production `

    -ServiceName $_.ServiceName).VirtualIPs[0].Address}} | Format-Table -AutoSize

     

     

     

    If ((Test-AzureName -Name $ServiceName -Service)) {  

        Write-Host "Create Cloud Service ..." $ServiceName  -ForegroundColor Green  

        # New-AzureService -Location $myLocation -ServiceName $ServiceName 

        }Else {Write-Host "The specified DNS name is already taken or invalid. Try another ServiceName" -ForegroundColor Red} 

     

    # Cleanup  

    # Get-AzureService |Format-List ServiceName, Label, Location 

    # Remove-AzureService -ServiceName $ServiceName -Force -Verbose 

     

    Get-AzureService | Select-Object -Property ServiceName, Location,`

       @{Name='ProdIP';Expression={(Get-AzureDeployment -Slot Production `

       -ServiceName $_.ServiceName).VirtualIPs[0].Address}} | Format-Table -AutoSize

  • 相关阅读:
    SQL2005的CTE
    分列顯示
    2005数据库结构显示
    十进制/十八进制的互转换(此方法应用于所有进制与10进制的转换)
    2005自动生成数据库的清空脚本
    阻塞分析
    通过在 Web 表单中维持对象的 ViewState (视图状态)
    cs文件调用aspx页面js函数
    Repeater绑定后格式化某字段
    Fireworks中制作炫光效果
  • 原文地址:https://www.cnblogs.com/wuzhenzhou/p/5807106.html
Copyright © 2011-2022 走看看