Comments (11)
I am seeing same behavior on the Terminal. Each line runs individually. I used "Run Selected Text in Active Terminal" as suggested.
from vscode-azurecli.
Any updates on this issue? Multiline statements still do not seem to work.
from vscode-azurecli.
It doesn't work when running the command in the background with the results shown in a side-by-side editor.
It does work when you put a \
at the end of all but the last line and use Run Selected Text in Active Terminal
.
from vscode-azurecli.
The line continuation character for PowerShell is `, not \. I missed you are using PowerShell.
from vscode-azurecli.
I am seeing same behavior on the Terminal. Each line runs individually. I used "Run Selected Text in Active Terminal" as suggested.
I've having the same issue.
from vscode-azurecli.
@mataralhawiti Are you using PowerShell or some Unix shell? Note that PowerShell uses ` (backtick) at the end of each but the last line. Unix shells use \
(backslash).
from vscode-azurecli.
@mataralhawiti Are you using PowerShell or some Unix shell? Note that PowerShell uses
(backtick) at the end of each but the last line. Unix shells use
` (backslash).
I'm using the vs code (run line in terminal ) - windows machine
here's my code :
az group create --location westeurope\
--name rg_playground2\
--tags owner:'Matar' for:airflow'
The error :
--name rg_playground2
'--name' is not recognized as an internal or external command,
operable program or batch file.
from vscode-azurecli.
If you are using PowerShell in the terminal you need to replace the backslashes with backticks. If you are using CMD you need to replace the backslashes with carets (^). The different shells have different line continuation characters.
from vscode-azurecli.
thanks it works now
from vscode-azurecli.
Hi, I have the following command that is not working in Powershell 7.0.3 (Windows10, Visual Studio Code terminal).
az role definition update --role-definition '{ `
"Name": "Custom Network Contributor Role", `
"IsCustom": true, `
"Description": "Can do operations on NICs and join subnets", `
"Actions": [ `
"*/read", `
], `
"NotActions": [], `
"DataActions": [], `
"NotDataActions": [], `
"AssignableScopes": [ `
"/subscriptions/---guid---", `
"/subscriptions/---another-guid---" `
] `
}'
I get the following error:
Expecting property name enclosed in double quotes: line 1 column 3 (char 2)
I tried with backticks, backslashes, with and without single quotes. Nothing works.
from vscode-azurecli.
Same for me: the ` does not work with PowerShell 7.3.0, but works with previous versions.
Welcome to the world of Microsoft standards and backward compatibility!
Some things never change.
from vscode-azurecli.
Related Issues (20)
- Intellisense doesn't work if users home directory has space in it HOT 2
- How to run the selected text ? and what is the keyboard short cut to do the same? HOT 2
- Intellisense gives different results based on when you trigger it HOT 2
- No intellisense/autocomplete for azcli HOT 5
- Add support for Variables
- not recognizing 'new region' folding formats
- Extension not found under linux extensions tab HOT 3
- intellisense is working very slow
- The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. HOT 2
- IntelliSense hangs HOT 1
- How to reference variable name from Intellisense
- Create a subnet under a virtual network.
- Support Workspace Trust
- Support virtual workspaces
- az cli az tag works in VSC powershell, fails in VSC bash HOT 2
- Intellisense doesn't work for newly installed az cli extension
- [feature request] enable witch azure accounts / subscriptions
- IntelliSense feature fail in the Azure CLI's vscode extension HOT 2
- This repo is missing important files
- Marketplace readme image broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-azurecli.