azure-cloud-shell

Sync data between azure database and local database using cloud power shell

早过忘川 提交于 2021-01-29 15:20:39
问题 We are trying to sync an azure database and local SQL database using power shell. We are referencing the following URL for the sync process. https://docs.microsoft.com/en-us/azure/azure-sql/database/scripts/sql-data-sync-sync-data-between-azure-onprem Up to the database schema section, we can execute the script successfully. But when we execute the following code it is showing an error. $newSchema = [AzureSqlSyncGroupSchemaModel]::new() Error is “InvalidOperation: Unable to find type

ansible playbook for Azure network security group - Error: missing required arguments

≯℡__Kan透↙ 提交于 2020-12-15 05:32:11
问题 Following YAML playbook for creating Azure Network Security Group DOES specify the priority arguments. But I still get the following error when running the playbook in Azure Cloud Shell . What may be the cause of the error and how can we fix it? Remark: I see a similar issue posted on GitHub here. Create_network_security_group.yaml : --- - hosts: localhost tasks: - azure_rm_securitygroup: resource_group: rg-cs-ansible name: nsg-cs-web rules: - name: 'allow_rdp' protocol: Tcp destination_port

ansible playbook for Azure network security group - Error: missing required arguments

随声附和 提交于 2020-12-15 05:31:40
问题 Following YAML playbook for creating Azure Network Security Group DOES specify the priority arguments. But I still get the following error when running the playbook in Azure Cloud Shell . What may be the cause of the error and how can we fix it? Remark: I see a similar issue posted on GitHub here. Create_network_security_group.yaml : --- - hosts: localhost tasks: - azure_rm_securitygroup: resource_group: rg-cs-ansible name: nsg-cs-web rules: - name: 'allow_rdp' protocol: Tcp destination_port

Why Azure Cloud Shell is creating resource group in default subscription?

我与影子孤独终老i 提交于 2020-12-06 12:59:21
问题 I changed the subscription of the current session in Azure Cloud Shell to a different subscription using Set-AzContext as follows. But when I create a Resource Group using Ansible playbook in the same session of Azure Cloud Shell, the resource group is still created in default subscription, why? Set-AzContext -SubscriptionId "myOtherSubscription" Above command successfully changed the subscription from default to myOtherSubscription and showed the result as follows: Name Account

SSH into Linux VM on Azure using cloud shell [closed]

时光毁灭记忆、已成空白 提交于 2019-12-25 00:09:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I would love to use the Azure cloud shell to SSH into my Linux VMs on Azure, they don't have a public IP and they are on a Virtual Network. Does anyone know of a way I can do this? 回答1: use the Azure cloud shell to ssh into my Linux VM's on Azure, they don't have a public IP and they are on a Virtual Network. It's

How do you use Revoke-AzureADUserAllRefershToken with Azure AD B2C?

我的未来我决定 提交于 2019-12-24 01:45:11
问题 I saw this answer and update (Revocation endpoint in Azure AD B2C) but I'm not sure how to use this with Azure AD B2C. I've opened up an Azure Cloud Shell and it comes back that the object ID does not exist. I'm running this from my parent Azure directory because I could not open up an Azure Cloud Shell inside my Azure AD B2C directory (it said "No valid subscription found"). Do you have to run this command from within the Azure AD B2C directory? If so how do I link a subscription so that I

Set-AzContext works in Azure Cloud Shell but doesn't in Azure PowerShell

我是研究僧i 提交于 2019-12-22 17:08:29
问题 When i execute following command Clear-AzureProfile Connect-AzAccount -TenantID xxxxxxxxxxxxxxxxxxx Set-AzContext -SubscriptionId xxxxxxxxxxxxxxxxxxx in Azure PowerShell i get this error. Set-AzContext : Please provide a valid tenant or a valid subscription. At line:6 char:1 + Set-AzContext -SubscriptionId xxxxxxxxxxxxxxxxxxx and if i run the same command in Azure Cloud Shell it works Name Account SubscriptionName Environment TenantId xxxx xxxxxxx xxxx xxxx xxxx I switched from free-trial to

Azure Cloud Shell File Share Contains 5GB IMG File

a 夏天 提交于 2019-12-12 17:33:24
问题 I created a PowerShell cloud shell in Azure portal, configured to use an existing general purpose v2 storage account. Created a new file share and gave it a name. When I look inside the file share, I can see a folder ".cloudconsole" with one file inside "acc_[name].img". The size of the file is 5GB. Question: What is this ".img" file for? Will there be cost associated by having this file in the storage account? 回答1: The cloud shell needs Azure File Share to act as clouddrive that store file.

How to fix Azure Cloud Shell error “MissingSubscriptionRegistration - The subscription is not registered to use namespace 'Microsoft.Storage'”

廉价感情. 提交于 2019-12-11 08:29:31
问题 I've just tried to use the fancy new Azure Cloud Shell announced at Build 2017 but I'm getting the following error (as a json message): { "error": { "code": "MissingSubscriptionRegistration", "message": "The subscription is not registered to use namespace 'Microsoft.Storage'" } } I've googled this and found answers that suggest I need to register a resource provider with: Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Storage or azure provider register Microsoft.Storage ...but