问题标签 [azure-rm]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
powershell - SQL Azure powershell commands not recognized anymore. Deprecated?
Already discussed at: Get-AzureSqlDatabaseServer : The term 'Get-AzureSqlDatabaseServer' is not recognized as the name of a cmdlet
I just need to be sure if this behavior is due to the whole Azure Services Management deprecated ? Replaced by AzureRM or is it something else ?
azure - 停止 Azure 站点 Web 作业
在停止站点之前,我需要停止正在运行的网络作业。我可以在 AzureRM ( Stop-AzureRmWebApp
) 中停止该站点。我很困惑为什么停止网站不会停止运行网络作业(如果网站关闭,它们将如何运行)?
通过阅读和查看 MS 的文档,我没有看到停止网络作业的 RM 命令。我看到的所有细节都是一年或更久以前的。是否有任何更新可以通过脚本执行此操作?Kudo/Portal 不是选项。
azure - Azure Set-AzureStorageBlobContent 更改大小块
我想知道如何使用命令 {Set-AzureStorageBlobContent} 上传 blob 大小,将其块大小更改为 100 MB,因为我遇到的问题是我超过了 blob 存储中允许的 50.000 个块。
azure - 检索 Azure VM 的公共 IP 地址的更简单方法
使用特定 VM 的名称/资源组,我试图获取 VM 的公共 IP 地址。
此代码有效,但与其他 AzureRM cmdlet 相比显得笨拙。
是否有更快/更容易/更短的方式访问这些信息?
powershell - Get-AzureDeployment 未返回预期结果
我试图获取所有已部署的 Azure 云服务,特别是寻找服务名称及其标签字段。我正在使用 cmdlet Get-AzureDeployment,但它没有返回所需的结果。
使用的 cmdlet: $getResultForMyService = Get-AzureDeployment -ServiceName "myservicelistedincloudservice" -Slot "Production"
我得到的输出是
在运行 Get-AzureDeployment cmdlet 之前,我尝试确保上下文使用了正确的订阅。但这也没有帮助。
PS C:\WINDOWS\system32> set-azurermcontext -SubscriptionName MySubscription
仅供参考,我已经安装了最新版本,并且在执行上述 cmdlet 之前,我还导入了 Azure 模块。仅供参考,以下是我的 PS 版本详细信息:
我还按照 MS 文档链接中的服务管理模块的安装说明进行操作,但这也无济于事 - https://docs.microsoft.com/en-us/powershell/azure/servicemanagement/install-azure-ps?view=azuresmps -4.0.0
PS C:\WINDOWS\system32> $psversiontable
名称 值
---- -----
PSVersion 5.1.17763.1
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.1 CLRVersion
4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
任何列出云服务的指针将不胜感激。
azure - Azure PowerShell 无法在私有代理上的 Azure Dev Ops 中运行
我在我的 Windows Server 2012 R2 构建服务器上安装了一个 64 位私有代理。我已将此连接到 Azure Dev Ops。在构建服务器上,我只安装了 5.6.0 版 AzureRM,因为这是我要运行的脚本所必需的。如果您有兴趣,请参阅我的另一个问题:如何为 Azure Sql 数据库弹性池中的所有数据库设置 PITR?
如果我在 Azure DevOps 中创建一个 Azure PowerShell v3 任务来运行以下内联脚本:
Get-Module -Name AzureRM* -ListAvailable
我收到此错误:
如果我以构建服务器帐户的身份登录构建服务器并打开一个 PowerShell 窗口,它工作正常。它在 Azure DevOps 中的普通 PowerShell 任务中也能正常工作。
我的 PowerShell 脚本需要在 Azure 帐户的上下文中运行,我该如何实现?
编辑
我已经尝试过 Azure PowerShell 任务 v1 和 v2,但没有成功。我还尝试将版本选项部分中的 PowerShell 版本指定为 5.6 版以及最新安装的版本。这些都不起作用。
azure-devops - 如何获取管理员用户 kubeconfig
我正在使用 azure aks 并使用 terraform 模块部署它,我已成功执行。以下文件。
https://www.hashicorp.com/blog/kubernetes-cluster-with-aks-and-terraform
但问题是我想保存管理员用户的kubeconfig。下面是我写的代码。我无法获取管理员用户的 kubeconfig 文件。
我需要管理员用户的 kubeconfig。
azure - AzureRmVM - 获取虚拟机公共 IP 地址
我正在尝试为我的 Azure 订阅中的所有虚拟机获取 IP 地址。虽然我获得了所有 NIC 的 IP 地址,但我似乎无法为我的 VM 获得它们。我正在使用 AzureRm 和 powershell 来获取此信息。
如何使用 AzureRm 获取 Azure 中所有 VM 的 IP 地址?