用户组:游客
New-AzureReservedIP – ReservedIPName“MyWebsiteIP” –Label “WebsiteIP” –Location “Japan West” 复制代码
New-AzureVMConfig -Name"WebAppVM" -InstanceSize Small -ImageName $images[130].ImageName |Add-AzureProvisioningConfig -Windows -AdminUsername $username -Password $password| New-AzureVM -ServiceName "MaheshWebApp" -ReservedIPName"MyWebSiteIP" -Location "Japan West"复制代码
<?xml version="1.0" encoding="utf-8"?> <ServiceConfiguration serviceName="ReservedIPSample" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="4" osVersion="*" schemaVersion="2014-01.2.3"> <Role name="WebRole1"> <Instances count="1" /> <ConfigurationSettings> <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true" /> </ConfigurationSettings> </Role> <NetworkConfiguration> <AddressAssignments> <ReservedIPs> <ReservedIP name="MyWebSiteIP"/> </ReservedIPs> </AddressAssignments> </NetworkConfiguration> </ServiceConfiguration>复制代码
Remove-AzureReservedIP -ReservedIPName"MyWebSiteIP" -Force 复制代码
New-AzureVM :BadRequest :The deploymentcontains VirtualNetwork DemoVNET that belongs to an Affinity Group andReservedIP that belongs to a region.This combination is not allowed.复制代码
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
经常参与各类话题的讨论,发帖内容较有主见
经常帮助其他会员答疑
积极宣传本站,为本站带来更多注册会员
积极宣传本站,为本站带来更多的用户访问量
长期对论坛的繁荣而不断努力,或多次提出建设性意见
活跃且尽责职守的版主
为论坛做出突出贡献的会员
版主
666
主题
1249
帖子
322
粉丝
查看 »