azcli | Different scripts to test Azure technologies | Azure library
kandi X-RAY | azcli Summary
kandi X-RAY | azcli Summary
Different scripts to test Azure technologies using the Azure CLI
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azcli
azcli Key Features
azcli Examples and Code Snippets
Community Discussions
Trending Discussions on azcli
QUESTION
I am using ARM Deploymentscripts AzCli. Can we use az rest
in ARM deployment scripts?
I am getting Forbidden({"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation."
ANSWER
Answered 2021-May-19 at 02:39I can reproduce your issue on my side, it means your user-assigned identity(MSI) does not have enough permissions to create the AD App via Microsoft Graph in your tenant.
To solve this issue, just give an AAD admin role e.g. Application administrator
to the service principal of your MSI, follow the steps below.
1.Navigate to the Azure Active Directory
in the portal -> Roles and administrators
-> click Application administrator
.
2.Click Add assignments
-> Select member(s)
-> search for the name of your MSI -> add it.
Note: You can also give the Microsoft Graph application permission Application.ReadWrite.All
to the MSI instead of Application administrator
, won't say too much here, if you are interested in it, let me know, I can post it.
Besides, if you just want to create the AD App with Azure CLI, actually no need to use az rest
manually, you can use the built-in command az ad app create
directly.
Test sample:
QUESTION
I am trying to follow this post to deploy a "model" in Azure.
A code snipet is as follows and the model, which is simply a function adding 2 numbers, seems to register fine. I don't even use the model to isolate the problem after 1000s of attempts as this scoring code shows:
...ANSWER
Answered 2021-May-14 at 15:53Great to see people putting the R SDK through it's paces!
The vignette you're using is obviously a great way to get started. It seems you're almost all the way through without a hitch.
Deployment is always tricky, and I'm not expert myself. I'd point you to this guide on troubleshooting deployment locally. Similar functionality exists for the R SDK, namely: local_webservice_deployment_config()
.
So I think you change your example to this:
QUESTION
I have a powershell script that creates an Azure App Registration and Service Principal and gives it permissions in a Management Group. A majority of it functions properly; the issue i'm having with the script is granting admin consent to the permissions granted to the application registration.
In the script below you'll notice i'll attempt by calling to the api via an az rest
command but this returns a unary operator expected '--'
. Has anyone had any luck with using the az cli in Azure Cloud Shell and programmatically granting admin consent on app registrations?
ANSWER
Answered 2021-Apr-12 at 05:43If you want to complete Azure AD admin consent with Azure CLI, you can use the command az ad app permission admin-consent
. For more details, please refer to here.
For example
QUESTION
Is it possible to access these CNAME and other entries through some sort of scripting? I tried using a logic app but could only access the resource group, name, subscription id, etc. but not the more detailed information such as the record sets that are displayed when 'overview' is selected in a given DNS zone.
Perhaps AzCLI or powershell? Any push in the right direction would be greatly appreciated.
...ANSWER
Answered 2021-Jan-19 at 02:09You can get the DNS records with the Azure CLI or PowerShell.
For example, to list the DNS records in your private DNS zone, run the PowerShell command Get-AzPrivateDnsRecordSet:
QUESTION
I have a project designed to launch PowerShell scripts to run in Azure VMs using AZCLI with the following structure
...ANSWER
Answered 2021-Jan-06 at 07:59Regarding the issue, please refer to the following code
My project structure
QUESTION
Ideally I would like to be able to create a script like a .azcli which I could run locally against the CosmosDB emulator and then use the same script in my devops pipeline to upsert resources to Azure.
Here is my current CLI commands.
deploy-cosmos.azcli
...ANSWER
Answered 2020-May-25 at 11:51Try:
QUESTION
I'm trying to delete virtual machine and it's associated resources in Azure using azcli from a shell script. I've succeeded in deleting the machine, then deleted its disks, and then facing issues deleting the network interface (NIC), the Public IP of the machine and its network security group (NSG) from the script. When I run the azcli commands that delete the NIC, the public IP and the NSG from a cmd, manually, one by one - it works and deletes them. However, the same commands not work when running inside a shell script.
I'm attaching the script with all the commands:
...ANSWER
Answered 2020-Mar-21 at 20:12Solved! I had problems with my 3 variables "$VM_NAMEPublicIP", "$VM_NAMEVMNic", "$VM_NAMENSG" - so I created 3 variables from the above way: NIC=$VM_NAME$VMNic, etc. It worked!
QUESTION
I have one DevOps project which has a build pipeline and a release pipeline. creation of build pipeline, DevOps project, container registry, service connection, and Kubernetes cluster is automated using terraform, ARM templates and AZCLI. I could not find any way to store the release pipeline as a code. Is there any way to do that? I want to know how other people are dealing with this? Is there something I am missing?
...ANSWER
Answered 2020-Jan-27 at 02:44I could not find any way to store the release pipeline as a code. Is there any way to do that? I want to know how other people are dealing with this? Is there something I am missing?
Looks like you're looking for multi-stage Yaml pipelines like Daniel commented above. For now, we can't directly create release pipeline as Yaml format, but we can use multi-stage Yaml for both CI and CD.
To use that option, we need to enable the Multi-stage pipelines in Preview Features.
You may get more useful info from this issue and this blog. Hope it helps.
QUESTION
Several resources, such as AKS clusters, require a service principal (AAD application) to be created. Can this be done via template? or only via the az ad sp
set of commands in the AZCLI?
ANSWER
Answered 2019-Jul-16 at 00:56No, ARM template does not support to create the service principal(AAD Application), ARM template is for azure resources in the subscription, the service principal(AAD Application) is under the AAD tenant, it is not the resource in the subscription.
For more details about ARM, you could refer to this link.
QUESTION
my question is about a Xamarin forms application. To log my user in, I've followed the following tutorial :
In order to use the user identity later in my application, I need to get my user e-mail address after connection.
The method I actually use returns me a 401 error. Does someone know how to fix my problem ?
the login method used to connect the user (in the android app):
...ANSWER
Answered 2019-May-13 at 11:46I finally found a way to retrieve all the informations I needed
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azcli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page